diff options
| author | Quentin Aristote <quentin@aristote.fr> | 2023-02-11 18:12:03 +0100 |
|---|---|---|
| committer | Quentin Aristote <quentin@aristote.fr> | 2023-02-15 21:55:27 +0100 |
| commit | 0afbdaa261653e73a4f2f39d7529114989474a64 (patch) | |
| tree | 08df68b6c1a92708566e0e716d11d619e37d1621 /nixos/services.nix | |
| parent | 7714f2c6a4c77e616fd3c64868c10337b9ca3a1e (diff) | |
factor out common configuration options
Diffstat (limited to 'nixos/services.nix')
| -rw-r--r-- | nixos/services.nix | 28 |
1 files changed, 0 insertions, 28 deletions
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; -} |
