diff --git a/hosts/monolith.nix b/hosts/monolith.nix index fa3f901..6d4d951 100644 --- a/hosts/monolith.nix +++ b/hosts/monolith.nix @@ -65,17 +65,6 @@ networking.hostName = "monolith"; # Define your hostname. # swap - systemd.services = { - create-swapfile = { - serviceConfig.Type = "oneshot"; - wantedBy = [ "swap-swapfile.swap" ]; - script = '' - ${pkgs.coreutils}/bin/truncate -s 0 /swap/swapfile - ${pkgs.e2fsprogs}/bin/chattr +C /swap/swapfile - ${pkgs.btrfs-progs}/bin/btrfs property set /swap/swapfile compression none - ''; - }; - }; fileSystems."/swap" = { device = "/dev/disk/by-label/BTRFS_ROOT"; fsType = "btrfs";