Riley Apeldoorn
75603bd327
- Move trivial modules to `services.nix` - Gather user-related config in `users.nix` - Move loading of shared home-manager config into `shared/core`
29 lines
760 B
Nix
29 lines
760 B
Nix
# Manage user settings that don't specifically fit anywhere else.
|
|
|
|
{ pkgs, config, home-manager, lib, ... }: {
|
|
|
|
imports = [
|
|
home-manager.nixosModules.home-manager
|
|
];
|
|
|
|
config.home-manager.users."riley" = {
|
|
imports = [ ../home ];
|
|
isNixos = true;
|
|
home.stateVersion = lib.mkDefault config.system.stateVersion;
|
|
};
|
|
|
|
config.users.users."riley" = {
|
|
# TODO: Switch to a less ancient shell
|
|
shell = pkgs.bash;
|
|
isNormalUser = true;
|
|
extraGroups = [
|
|
# User is sudoer
|
|
"wheel"
|
|
];
|
|
# Authorize `riley` user on other machines to SSH into this machine.
|
|
openssh.authorizedKeys.keyFiles =
|
|
let userKey = sys: ../../system/${sys}/keys/riley.pub;
|
|
in map userKey [ "dev-lt-63" "strawberry" "lime" ];
|
|
};
|
|
|
|
}
|