2022-07-12 08:37:28 +02:00
|
|
|
{ pkgs, config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.eboskma.users.erwin;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.eboskma.users.erwin = { enable = mkEnableOption "user account for Erwin"; };
|
|
|
|
|
|
|
|
imports = [ ./desktop.nix ];
|
|
|
|
|
|
|
|
config = mkIf (cfg.enable) {
|
2021-11-12 07:23:46 +01:00
|
|
|
|
2022-07-12 08:37:28 +02:00
|
|
|
users.users.erwin = {
|
|
|
|
isNormalUser = true;
|
|
|
|
home = "/home/erwin";
|
2022-08-09 17:03:48 +02:00
|
|
|
extraGroups = [ "wheel" "adm" "audio" "video" "dialout" ];
|
2022-07-12 08:37:28 +02:00
|
|
|
shell = pkgs.fish;
|
|
|
|
openssh.authorizedKeys.keyFiles = [
|
|
|
|
(pkgs.fetchurl {
|
|
|
|
url = "https://github.com/eboskma.keys";
|
2022-09-27 20:40:17 +02:00
|
|
|
sha256 = "z/4lQnFuSkq8O0eunnkXIAH3x3ii9qVr9hxh4/8jBkc=";
|
2022-07-12 08:37:28 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
nix.settings.allowed-users = [ "erwin" ];
|
|
|
|
};
|
2021-11-12 07:23:46 +01:00
|
|
|
}
|