From 89e314d3bb215b2236cbbbdca8bb53a6d499b672 Mon Sep 17 00:00:00 2001 From: GHOSCHT <31184695+GHOSCHT@users.noreply.github.com> Date: Sun, 2 Jun 2024 11:11:03 +0200 Subject: [PATCH] eustachius: user experiments --- hosts/eustachius/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/hosts/eustachius/default.nix b/hosts/eustachius/default.nix index aa82713..358ae5c 100644 --- a/hosts/eustachius/default.nix +++ b/hosts/eustachius/default.nix @@ -5,6 +5,7 @@ }: let vars = import ../../vars.nix; in { + imports = [../common/global/locale.nix]; # NixOS wants to enable GRUB by default boot.loader.grub.enable = false; # Enables the generation of /boot/extlinux/extlinux.conf @@ -90,7 +91,7 @@ in { # put your own configuration here, for example ssh keys: users.mutableUsers = true; - users.users.${vars.user} = { + users.users.nixos = { isNormalUser = true; password = "changeme"; extraGroups = ["wheel" "docker"]; @@ -105,5 +106,12 @@ in { "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINCjLoirHMos7c9lRatWtSYAk68xbUGc8vPU0wFxIzj openpgp:0x7430326E" ]; }; + users.users.admin = { + isNormalUser = true; + extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. + hashedPassword = "blablabla"; # generate with `mkpasswd` + }; + nix.settings.trusted-users = ["admin" "ghoscht" "nixos"]; + system.stateVersion = "23.11"; }