Fixe
This commit is contained in:
parent
6f5a549bac
commit
a0dbe07b77
2 changed files with 3 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ device, swapSize ? 16 }:
|
||||
{ device, swapSize ? "16G" }:
|
||||
{
|
||||
disko.devices = {
|
||||
disk.${device} = {
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
type = "lvm_vg";
|
||||
lvs = { # lvcreate
|
||||
swap = { # Logical Volume = "swap", /dev/vg1/swap
|
||||
size = "${swapSize}G";
|
||||
size = swapSize;
|
||||
content = {
|
||||
type = "swap";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@
|
|||
system = x86;
|
||||
pkgs = andrej-pc-pkgs nixpkgs;
|
||||
modules = [
|
||||
(import ./disko/ext4-swap.nix {device = "/dev/sda"; swapSize = 16;})
|
||||
(import ./disko/ext4-swap.nix {device = "/dev/sda"; swapSize = "16G";})
|
||||
(import ./disko/ext4.nix {device = "/dev/sdb";})
|
||||
./nixos/hosts/andrej-pc/configuration.nix
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue