added swap

This commit is contained in:
twoneis 2024-06-02 14:33:53 +02:00
parent e6d8a20baa
commit d314bb8e94
2 changed files with 8 additions and 6 deletions

View file

@ -30,6 +30,8 @@
};
};
swapDevices = [ { device = "/swap/swapfile"; } ];
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";

12
flake.lock generated
View file

@ -261,11 +261,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1717309923,
"narHash": "sha256-HQtbTnEPzB15ZgBXjAEoJtFL3rvrQ84LUcEsTKYvHRs=",
"lastModified": 1717331199,
"narHash": "sha256-f0eDtnf8Ncf1EcR3FD0i6+egL+FG3xrYyWgEXV8HllY=",
"owner": "sodiboo",
"repo": "niri-flake",
"rev": "1816a6baef864c6877d4516ab62ca2e720c0b787",
"rev": "de2e8e14b665901e7bdd52534a076e35d2150fbf",
"type": "github"
},
"original": {
@ -368,11 +368,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1716991068,
"narHash": "sha256-Av0UWCCiIGJxsZ6TFc+OiKCJNqwoxMNVYDBChmhjNpo=",
"lastModified": 1717159533,
"narHash": "sha256-oamiKNfr2MS6yH64rUn99mIZjc45nGJlj9eGth/3Xuw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "25cf937a30bf0801447f6bf544fc7486c6309234",
"rev": "a62e6edd6d5e1fa0329b8653c801147986f8d446",
"type": "github"
},
"original": {