enable home-manager

This commit is contained in:
mjallen18
2024-02-06 14:51:07 -06:00
parent 7faaca1b4f
commit b17a4d51fc
5 changed files with 111 additions and 12 deletions

View File

@@ -32,11 +32,15 @@ in
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = false;
boot.loader.systemd-boot.configurationLimit = 5;
boot.loader.systemd-boot.configurationLimit = 2;
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.efi.efiSysMountPoint = "/boot";
# boot.plymouth.enable = true;
boot.bootspec.enable = true;
boot.consoleLogLevel = 3;
boot.kernelParams = [
"quiet" "amdgpu.ppfeaturemask=0xffffffff"
];
boot.lanzaboote = {
enable = true;
@@ -227,6 +231,31 @@ in
};
};
security.sudo = {
enable = true;
extraRules = [{
commands = [
{
command = "${pkgs.systemd}/bin/systemctl suspend";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/reboot";
options = [ "NOPASSWD" ];
}
{
command = "${pkgs.systemd}/bin/poweroff";
options = [ "NOPASSWD" ];
}
{
command = "/home/matt/reset_wifi";
options = [ "NOPASSWD" ];
}
];
groups = [ "wheel" ];
}];
};
# Some programs need SUID wrappers, can be configured further or are
# started in user sessions.
# programs.mtr.enable = true;