From 0afbdaa261653e73a4f2f39d7529114989474a64 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Sat, 11 Feb 2023 18:12:03 +0100 Subject: factor out common configuration options --- nixos/services.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 nixos/services.nix (limited to 'nixos/services.nix') diff --git a/nixos/services.nix b/nixos/services.nix deleted file mode 100644 index 908913c..0000000 --- a/nixos/services.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ lib, config, pkgs, ... }: - -{ - # List services that you want to enable: - - # Enable the OpenSSH daemon. - # services.openssh.enable = true; - - systemd.services = { - nix-gc-remove-dead-roots = { - enable = true; - description = "Remove dead symlinks in /nix/var/nix/gcroots"; - - serviceConfig.Type = "oneshot"; - - script = "find /nix/var/nix/gcroots -xtype l -delete"; - - before = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; - wantedBy = lib.mkIf config.nix.gc.automatic [ "nix-gc.service" ]; - }; - - nixos-upgrade.unitConfig = { - CPUWeight = 1; - }; - }; - - # virtualisation.docker.enable = true; -} -- cgit v1.2.3