mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-27 15:54:58 +08:00
14 lines
301 B
Nix
14 lines
301 B
Nix
{ flake, ... }: {
|
|
# For no-prompt Ctrl+Shift+B in VSCode
|
|
security.sudo.extraRules = [
|
|
{
|
|
users = [ flake.config.me.username ];
|
|
commands = [
|
|
{
|
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
|
options = [ "NOPASSWD" ];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}
|