updated toggleable user

This commit is contained in:
2025-10-04 12:19:47 -05:00
parent beda19afd3
commit af8b6a522e
2 changed files with 16 additions and 2 deletions

View File

@@ -27,6 +27,20 @@
# enable user # enable user
users.blake.enable = true; users.blake.enable = true;
# passwordless rebuild
security.sudo.extraRules = [
{
users = [ "blake" ];
commands = [
{
command = "${config.system.build.nixos-rebuild}";
options = [ "NOPASSWD" ];
}
];
}
];
# use the systemd-boot EFI boot loader. # use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true; boot.loader.efi.canTouchEfiVariables = true;

View File

@@ -13,9 +13,9 @@
}; };
config = lib.mkIf config.blake.enable { config = lib.mkIf config.users.blake.enable {
# create blake user # create blake user
users.users.${config.blake.username} = { users.users.${config.users.blake.username} = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable sudo for the user. extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable sudo for the user.
shell = pkgs.zsh; shell = pkgs.zsh;