nixos-config/features/self-ide.nix
2021-11-03 20:12:50 -04:00

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" ];
}
];
}
];
}