Nix configurations for my personal machines (Linux & macOS)

feat: add `nh`

ovyerus.com ca01c0c9 110ce862

verified
Changed files
+16 -4
modules
+4 -4
modules/plasma.nix
···
sddm.enable = true;
sddm.wayland.enable = true;
-
autoLogin = {
-
enable = true;
-
user = "ovy";
-
};
};
services.desktopManager.plasma6.enable = true;
···
sddm.enable = true;
sddm.wayland.enable = true;
+
# autoLogin = {
+
# enable = true;
+
# user = "ovy";
+
# };
};
services.desktopManager.plasma6.enable = true;
+12
modules/programs/desktop-cli.nix
···
rage
systemctl-tui
];
}
···
rage
systemctl-tui
];
+
+
nixos.ifEnabled = {myconfig, ...}: {
+
programs.nh = {
+
enable = true;
+
flake = "/home/${myconfig.constants.username}/.config/nixos";
+
};
+
};
+
+
darwin.ifEnabled = {myconfig, ...}: {
+
environment.systemPackages = [pkgs.nh];
+
environment.variables.NH_FLAKE = "/Users/${myconfig.constants.username}/.config/nix-darwin";
+
};
}