This commit is contained in:
2025-04-11 07:44:12 +02:00
commit b2186d35a0
13 changed files with 479 additions and 0 deletions

24
users.nix Normal file
View File

@@ -0,0 +1,24 @@
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, pkgs, ... }: {
# Define a user account. Don't forget to set a password with passwd.
users.users.root = {
openssh.authorizedKeys.keyFiles = [
ssh/auth_keys_root
];
};
users.users.${config.vars.username} = {
isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user.
openssh.authorizedKeys.keyFiles = [
(builtins.toPath "/etc/nixos/ssh/auth_keys_${config.vars.username}")
];
# packages = with pkgs; [
# firefox
# tree
# ];
};
}