renamed snowbelle.nix and seperated blake.nix
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
../../users/blake/blake.nix
|
||||
../../modules/ssh.nix
|
||||
../../modules/docker.nix
|
||||
../../modules/syncthing.nix
|
||||
@@ -28,34 +29,23 @@
|
||||
programs.zsh.enable = true;
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
|
||||
# define blake group
|
||||
users.groups.blake = {};
|
||||
|
||||
# create blake user
|
||||
users.users.blake = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable ‘sudo’ for the user.
|
||||
shell = pkgs.zsh;
|
||||
group = "blake";
|
||||
};
|
||||
|
||||
|
||||
# package install list
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
vim
|
||||
rsync
|
||||
wget
|
||||
git
|
||||
iptables
|
||||
nftables
|
||||
nettools
|
||||
neofetch
|
||||
btop
|
||||
];
|
||||
|
||||
# enable flakes
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
# enable nvidia gpu passthrough to docker
|
||||
#hardware.nvidia-container-toolkit.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
networking.firewall.allowedTCPPorts = [
|
||||
22 # ssh
|
||||
Reference in New Issue
Block a user