add userspace tools and passwdless sudo
This commit is contained in:
@@ -26,7 +26,8 @@ echo "files:"
|
||||
git status --short
|
||||
read -rp "commit message: " commit_msg
|
||||
echo "rebuilding nixos with flake.nix..."
|
||||
if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
|
||||
#if ! sudo nixos-rebuild switch --flake .#"$hostname" 2>&1 | tee "$logfile"; then
|
||||
if ! nh os switch 2>&1 | tee "$logfile"; then
|
||||
echo "rebuild failed; exited with no commit"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -91,6 +91,10 @@
|
||||
command = "/run/current-system/sw/bin/tailscale";
|
||||
options = ["NOPASSWD"];
|
||||
}
|
||||
{
|
||||
command = "/etc/profiles/per-user/blake/bin/nh";
|
||||
options = ["NOPASSWD"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
@@ -15,7 +15,10 @@ in {
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.${program} = {
|
||||
enable = true;
|
||||
flake = "${home_dir}/.nix/flake.nix";
|
||||
flake = "${home_dir}/.nix";
|
||||
};
|
||||
|
||||
# add deps to userspace cause they are cool
|
||||
home.packages = with pkgs; [nix-output-monitor nvd];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user