summaryrefslogtreecommitdiff
path: root/sys/srv/nix-helper.nix
diff options
context:
space:
mode:
Diffstat (limited to 'sys/srv/nix-helper.nix')
-rw-r--r--sys/srv/nix-helper.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/srv/nix-helper.nix b/sys/srv/nix-helper.nix
new file mode 100644
index 0000000..fc81ddb
--- /dev/null
+++ b/sys/srv/nix-helper.nix
@@ -0,0 +1,24 @@
+{ config, lib, pkgs, ... }:
+let
+ cfg = config.szpont.sys.srv.nix-helper;
+in
+{
+ options.szpont.sys.srv.nix-helper.enable = lib.mkEnableOption "enables nix-helper";
+
+ config = lib.mkIf cfg.enable {
+ nix.settings = {
+ trusted-users = [ "root" "adam" ];
+ experimental-features = [ "nix-command" "flakes" ];
+ };
+
+ programs.nh = {
+ enable = true;
+ flake = "/etc/nixos";
+ };
+
+ environment.systemPackages = with pkgs; [
+ nix-output-monitor
+ nvd
+ ];
+ };
+}