update configuration.nix

This commit is contained in:
♥ Minnie ♥ 2023-05-25 00:54:04 +08:00
parent 73df95d8ad
commit a29c09636d
2 changed files with 16 additions and 25 deletions

View file

@ -115,14 +115,12 @@
networking = { networking = {
hostName = "fuchsia"; hostName = "fuchsia";
domain = "kanto.dev"; domain = "kanto.dev";
# Connect to networks
networkmanager.enable = true; networkmanager.enable = true;
# Open ports in the firewall. # firewall = {
firewall = { # enable = true;
enable = true; # allowedTCPPorts = [ ];
allowedTCPPorts = [ ]; # allowedUDPPorts = [ ];
allowedUDPPorts = [ ]; # };
};
}; };
fonts = { fonts = {
@ -227,7 +225,6 @@
# Users # Users
users.users.sajenim = { users.users.sajenim = {
isNormalUser = true; isNormalUser = true;
description = "Jasmine Marie Wilson";
extraGroups = [ "audio" "docker" "networkmanager" "wheel" ]; extraGroups = [ "audio" "docker" "networkmanager" "wheel" ];
shell = pkgs.zsh; shell = pkgs.zsh;
}; };

View file

@ -109,9 +109,12 @@
networking = { networking = {
hostName = "lavender"; hostName = "lavender";
domain = "kanto.dev"; domain = "kanto.dev";
networkmanager = { networkmanager.enable = true;
enable = true; # firewall = {
}; # enable = true;
# allowedTCPPorts = [ ];
# allowedUDPPorts = [ ];
# };
}; };
environment = { environment = {
@ -139,7 +142,9 @@
# Enable the OpenSSH daemon. # Enable the OpenSSH daemon.
openssh = { openssh = {
enable = true; enable = true;
# Disable root login.
permitRootLogin = "no"; permitRootLogin = "no";
# Disable password login (Require keys).
passwordAuthentication = false; passwordAuthentication = false;
}; };
}; };
@ -147,23 +152,12 @@
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.admin = { users.users.admin = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "docker" "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
shell = pkgs.zsh; shell = pkgs.zsh;
openssh.authorizedKeys.keyFiles = [ ../fuchsia/id_ed25519_sk.pub ]; openssh.authorizedKeys.keyFiles = [ ../fuchsia/id_ed25519_sk.pub ];
}; };
# Open ports in the firewall. # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
# networking.firewall.allowedTCPPorts = [ ... ]; system.stateVersion = "22.11";
# networking.firewall.allowedUDPPorts = [ ... ];
# Or disable the firewall altogether.
# networking.firewall.enable = false;
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave
# this value at the release version of the first install of this system.
# Before changing this value read the documentation for this option
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
system.stateVersion = "22.11"; # Did you read the comment?
} }