summaryrefslogtreecommitdiff
path: root/os/srv/nix-helper.nix
diff options
context:
space:
mode:
authoradi <adikro@disroot.org>2026-07-29 17:09:58 +0200
committeradi <adikro@disroot.org>2026-07-29 17:09:58 +0200
commit39a2b09c27bb74c9e59d1772764f901e3c8fb9e4 (patch)
tree0ba58e6fbf086a85d875df1c10f6d23bc3bbc7da /os/srv/nix-helper.nix
parent8a820cacee1ff07ae7397d053b26e66f7086a4a4 (diff)
revamped flake.nix, removed homelab specific modulesstaging
Diffstat (limited to 'os/srv/nix-helper.nix')
-rw-r--r--os/srv/nix-helper.nix40
1 files changed, 0 insertions, 40 deletions
diff --git a/os/srv/nix-helper.nix b/os/srv/nix-helper.nix
deleted file mode 100644
index 5e5e133..0000000
--- a/os/srv/nix-helper.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{
- config,
- lib,
- pkgs,
- username,
- ...
-}:
-let
- cfg = config.os.srv.nix-helper;
-in
-{
- options.os.srv.nix-helper.enable = lib.mkEnableOption "enables nix-helper";
- config = lib.mkIf cfg.enable {
- nix.settings = {
- trusted-users = [
- "root"
- "${username}"
- ];
- experimental-features = [
- "nix-command"
- "flakes"
- ];
- };
-
- programs.nh = {
- enable = true;
- flake = "/etc/nixos";
- clean.extraArgs = "--keep 5";
- };
-
- environment.sessionVariables = {
- NH_OS_FLAKE = "/etc/nixos";
- };
-
- environment.systemPackages = with pkgs; [
- nix-output-monitor
- nvd
- ];
- };
-}