share user configuration between systems

This commit is contained in:
Haak Saxberg 2022-07-31 23:06:16 -07:00
parent 35545242ac
commit 9be3527af1
3 changed files with 22 additions and 30 deletions

View file

@ -10,6 +10,7 @@
# Include the results of the hardware scan.
./hardware-configuration.nix
./glibc-locale-paths.nix
../common/users.nix
];
# Use the systemd-boot EFI boot loader.
@ -183,22 +184,6 @@
location.provider = "geoclue2";
# Define a user account. Don't forget to set a password with passwd.
users.users.haak = {
isNormalUser = true;
extraGroups = [
"wheel" # Enable sudo for the user.
"networkmanager" # Allow the user to manage networks
];
};
security.sudo.wheelNeedsPassword = false;
users.extraUsers.haak = {
shell = pkgs.zsh;
};
nix.settings.trusted-users = [ "root" "haak" ];
# This value determines the NixOS release with which your system is to be
# compatible, in order to avoid breaking some software such as database
# servers. You should change this only after NixOS release notes say you