mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 11:47:12 +08:00
...
This commit is contained in:
parent
ffd1560386
commit
4548d99a0a
3 changed files with 19 additions and 1 deletions
|
|
@ -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`.
|
||||
5
home.nix
5
home.nix
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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 = [ ... ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue