This commit is contained in:
Sridhar Ratnakumar 2021-04-16 21:46:04 -04:00
parent ffd1560386
commit 4548d99a0a
3 changed files with 19 additions and 1 deletions

View file

@ -2,3 +2,5 @@ This repository contains the Nix / NixOS configuration for all of my systems. St
- `home.nix`: Only install things that are needed in all platforms (VMs, VPS, WSL2, etc.)
- `flake.nix`: Install things I need natively on NixOS desktop & laptop computers
VSCode note: `Ctrl+Shift+B` will run `sudo nixos-rebuild switch`.

View file

@ -18,7 +18,10 @@ in
cachix
tig
gh
# nix-thunk
procs # no more: ps -ef | grep
ytop
tealdeer
# ^ easy to forget these; write SRS?
];
programs = {

View file

@ -80,6 +80,19 @@
openssh.enable = true;
};
security.sudo.extraRules = [
{
users = [ "srid" ];
commands = [
{
command = "/run/current-system/sw/bin/nixos-rebuild";
options = [ "NOPASSWD" ];
}
];
}
];
# Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ];
# networking.firewall.allowedUDPPorts = [ ... ];