add swap
This commit is contained in:
parent
3b50015cb9
commit
5381b594e8
2 changed files with 10 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
|
||||
```
|
||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/disk-config.nix
|
||||
sudo nix --experimental-features "nix-command flakes" run github:nix-community/disko/latest -- --mode disko /tmp/nix-priv/src/hosts/pickwick/disko.nix
|
||||
```
|
||||
|
||||
- https://github.com/iynaix/dotfiles/blob/13c2fcec880d292726f52be1075277d521caf3a7/nixos/zfs.nix
|
||||
|
|
|
|||
|
|
@ -47,8 +47,17 @@
|
|||
"defaults"
|
||||
"umask=0077"
|
||||
];
|
||||
extraArgs = [ "-n" "BOOT" ];
|
||||
};
|
||||
};
|
||||
swap = {
|
||||
size = "108G";
|
||||
content = {
|
||||
type = "swap";
|
||||
discardPolicy = "both";
|
||||
resumeDevice = true;
|
||||
};
|
||||
};
|
||||
zfs = {
|
||||
size = "100%";
|
||||
content = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue