summaryrefslogtreecommitdiff
path: root/os/srv/nix-helper.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2025-12-24 16:21:00 +0100
committeradikro <adikro@disroot.org>2025-12-24 16:21:00 +0100
commit6aaa5993e4c1cfb205ed555d958702f9bba1770d (patch)
tree3af8cf20967cf10542edd2e51232b1da70002fde /os/srv/nix-helper.nix
parent2ceabfd1d1dc03ca895e960048b73a82e29e45e8 (diff)
a bunch of changes, renames sys to os and refactored some of the logic
Diffstat (limited to 'os/srv/nix-helper.nix')
-rw-r--r--os/srv/nix-helper.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/os/srv/nix-helper.nix b/os/srv/nix-helper.nix
new file mode 100644
index 0000000..6a64201
--- /dev/null
+++ b/os/srv/nix-helper.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, username, ... }:
+let
+ cfg = config.sys.srv.nix-helper;
+in
+{
+ options.sys.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";
+ };
+
+ environment.systemPackages = with pkgs; [
+ nix-output-monitor
+ nvd
+ ];
+ };
+}