eustachius: user experiments
This commit is contained in:
parent
910cb992f8
commit
89e314d3bb
1 changed files with 9 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
}: let
|
}: let
|
||||||
vars = import ../../vars.nix;
|
vars = import ../../vars.nix;
|
||||||
in {
|
in {
|
||||||
|
imports = [../common/global/locale.nix];
|
||||||
# NixOS wants to enable GRUB by default
|
# NixOS wants to enable GRUB by default
|
||||||
boot.loader.grub.enable = false;
|
boot.loader.grub.enable = false;
|
||||||
# Enables the generation of /boot/extlinux/extlinux.conf
|
# Enables the generation of /boot/extlinux/extlinux.conf
|
||||||
|
@ -90,7 +91,7 @@ in {
|
||||||
|
|
||||||
# put your own configuration here, for example ssh keys:
|
# put your own configuration here, for example ssh keys:
|
||||||
users.mutableUsers = true;
|
users.mutableUsers = true;
|
||||||
users.users.${vars.user} = {
|
users.users.nixos = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
password = "changeme";
|
password = "changeme";
|
||||||
extraGroups = ["wheel" "docker"];
|
extraGroups = ["wheel" "docker"];
|
||||||
|
@ -105,5 +106,12 @@ in {
|
||||||
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIINCjLoirHMos7c9lRatWtSYAk68xbUGc8vPU0wFxIzj openpgp:0x7430326E"
|
"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";
|
system.stateVersion = "23.11";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue