From d65fa178abfb8d85295099adef907f6e4a296a07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 16 Oct 2022 21:13:25 -0300 Subject: [PATCH] remove swapfile script, as it's now a part of nixos --- hosts/monolith.nix | 11 ----------- 1 file changed, 11 deletions(-) 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";