about summary refs log tree commit diff
path: root/modules/nixos/profiles/headless.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/nixos/profiles/headless.nix')
-rw-r--r--modules/nixos/profiles/headless.nix46
1 files changed, 0 insertions, 46 deletions
diff --git a/modules/nixos/profiles/headless.nix b/modules/nixos/profiles/headless.nix
deleted file mode 100644
index f3f3572..0000000
--- a/modules/nixos/profiles/headless.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{
-  config,
-  lib,
-  pkgs,
-  ...
-}:
-with lib;
-let
-  cfg = config.nixfiles.modules.profiles.headless;
-in
-{
-  config = mkIf cfg.enable {
-    nixfiles.modules = {
-      openssh.server.enable = true;
-      endlessh-go.enable = true;
-
-      fail2ban.enable = true;
-
-      node-exporter.enable = true;
-      promtail.enable = false; # FIXME High RAM usage.
-    };
-
-    # Pin version to prevent any surprises. Try keeping this up-to-date[1] with
-    # the latest LTS release + hardened patches (just in case).
-    #
-    # [1]: https://kernel.org
-    boot.kernelPackages = pkgs.linuxPackages_6_6_hardened;
-
-    nix = {
-      gc = {
-        automatic = true;
-        dates = "weekly";
-        options = "--delete-older-than 30d";
-      };
-
-      optimise = {
-        automatic = true;
-        dates = [ "daily" ];
-      };
-    };
-
-    services.udisks2.enable = false;
-
-    xdg.sounds.enable = false;
-  };
-}

Consider giving Nix/NixOS a try! <3