more config of the ares nixos setup
This commit is contained in:
parent
8c58ede652
commit
dc9a1fc847
2 changed files with 4 additions and 5 deletions
|
@ -25,7 +25,7 @@
|
|||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
networking.defaultGateway.address = "192.168.1.1";
|
||||
networking.interfaces.enp3s0.ipv4.addresses = [{
|
||||
networking.interfaces.enp1s0.ipv4.addresses = [{
|
||||
address = "192.168.1.23";
|
||||
prefixLength = 24;
|
||||
}];
|
||||
|
@ -72,12 +72,12 @@
|
|||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.libinput.enable = true;
|
||||
|
||||
security.sudo.wheelNeedsPassword = false;
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.ares = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user.
|
||||
openssh.authorizedKeys.keys = [
|
||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAGKOGZKJO31YZem1OTZtIg3fKaatbFmqmRNRD+K9GpX rgl002@student.uib.no"
|
||||
"sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBDpeouwzFZoYA7AYARaJ/qdQHORJB2h1V73PXQYEAI7sDrc3kYwgZPbrZ3pGkGKaHBl45kiV6SYsC7191OCwIl8AAAAEc3NoOg== A"
|
||||
"sk-ecdsa-sha2-nistp256@openssh.com AAAAInNrLWVjZHNhLXNoYTItbmlzdHAyNTZAb3BlbnNzaC5jb20AAAAIbmlzdHAyNTYAAABBBHlAtX4mBifZZ8u6sJckCgA6skwN7aamVK+lQuXLQ6kQWJy7GlEXEmoR9RW/0UIrQYLC+wd8Q5MROkYpn+cHLSoAAAAEc3NoOg== B"
|
||||
];
|
||||
|
@ -90,15 +90,14 @@
|
|||
vim
|
||||
tailscale
|
||||
python3
|
||||
disko
|
||||
];
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
# programs.firefox.enable = true;
|
||||
|
||||
services.tailscale.enable = true;
|
||||
# Enable the OpenSSH daemon.
|
||||
services.openssh.settings.PermitRootLogin = "no";
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
# environment.systemPackages = with pkgs; [
|
||||
|
@ -120,6 +119,7 @@
|
|||
services.openssh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
PermitRootLogin = "no";
|
||||
PasswordAuthentication = true;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -14,7 +14,6 @@
|
|||
# Import the previous configuration.nix we used,
|
||||
# so the old configuration file still takes effect
|
||||
./configuration.nix
|
||||
./nginx.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue