mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-28 16:36:28 +08:00
19 lines
450 B
Nix
19 lines
450 B
Nix
{ pkgs, inputs, ... }: {
|
|
# For no-prompt Ctrl+Shift+B in VSCode
|
|
security.sudo.extraRules = [
|
|
{
|
|
users = [ "srid" ];
|
|
commands = [
|
|
{
|
|
command = "/run/current-system/sw/bin/nixos-rebuild";
|
|
options = [ "NOPASSWD" ];
|
|
}
|
|
# HACK: See thin.nix power commands
|
|
{
|
|
command = "/run/current-system/sw/bin/systemctl";
|
|
options = [ "NOPASSWD" ];
|
|
}
|
|
];
|
|
}
|
|
];
|
|
}
|