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 = {
|
disko.devices = {
|
||||||
disk.${device} = {
|
disk.${device} = {
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
type = "lvm_vg";
|
type = "lvm_vg";
|
||||||
lvs = { # lvcreate
|
lvs = { # lvcreate
|
||||||
swap = { # Logical Volume = "swap", /dev/vg1/swap
|
swap = { # Logical Volume = "swap", /dev/vg1/swap
|
||||||
size = "${swapSize}G";
|
size = swapSize;
|
||||||
content = {
|
content = {
|
||||||
type = "swap";
|
type = "swap";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@
|
||||||
system = x86;
|
system = x86;
|
||||||
pkgs = andrej-pc-pkgs nixpkgs;
|
pkgs = andrej-pc-pkgs nixpkgs;
|
||||||
modules = [
|
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";})
|
(import ./disko/ext4.nix {device = "/dev/sdb";})
|
||||||
./nixos/hosts/andrej-pc/configuration.nix
|
./nixos/hosts/andrej-pc/configuration.nix
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue