summaryrefslogtreecommitdiff
path: root/os/srv/nix-helper.nix
diff options
context:
space:
mode:
authoradikro <adikro@disroot.org>2026-02-12 23:04:24 +0100
committeradikro <adikro@disroot.org>2026-02-12 23:04:24 +0100
commit512483106110b5f9209bb03238d44b991fe15d22 (patch)
tree94b53e9e610053d4584f00799843c901d10e0b19 /os/srv/nix-helper.nix
parent9868584ddabad45a9964ae9bf64d109963fd1e3d (diff)
thinkpad configuration finalization
Diffstat (limited to 'os/srv/nix-helper.nix')
-rw-r--r--os/srv/nix-helper.nix25
1 files changed, 19 insertions, 6 deletions
diff --git a/os/srv/nix-helper.nix b/os/srv/nix-helper.nix
index 63b3182..0bb819a 100644
--- a/os/srv/nix-helper.nix
+++ b/os/srv/nix-helper.nix
@@ -1,4 +1,10 @@
-{ config, lib, pkgs, username, ... }:
+{
+ config,
+ lib,
+ pkgs,
+ username,
+ ...
+}:
let
cfg = config.os.srv.nix-helper;
in
@@ -6,18 +12,25 @@ 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" ];
+ 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.sessionVariables = {
+ # NH_OS_FLAKE = "/etc/nixos";
+ # };
environment.systemPackages = with pkgs; [
nix-output-monitor