2023-11-13 18:26:20 +03:00
|
|
|
|
{ config
|
|
|
|
|
, pkgs
|
|
|
|
|
, lib
|
|
|
|
|
, inputs
|
|
|
|
|
, extraHomeModule ? null
|
|
|
|
|
, extraJanHomeModule ? null
|
|
|
|
|
, ...
|
|
|
|
|
}:
|
2022-10-08 22:45:35 +03:00
|
|
|
|
|
2023-07-03 23:16:31 +03:00
|
|
|
|
|
|
|
|
|
let
|
|
|
|
|
data = import ../../../data.nix;
|
|
|
|
|
in
|
2022-10-08 22:45:35 +03:00
|
|
|
|
{
|
2022-10-17 22:27:23 +03:00
|
|
|
|
nixpkgs.overlays = lib.mkAfter [
|
|
|
|
|
inputs.myneovim.overlays.default
|
|
|
|
|
inputs.nil.overlays.default
|
2022-11-25 00:23:31 +03:00
|
|
|
|
inputs.vnetod.overlays.default
|
|
|
|
|
inputs.wired.overlays.default
|
2022-10-10 07:52:41 +03:00
|
|
|
|
];
|
2022-10-08 22:45:35 +03:00
|
|
|
|
|
2022-10-17 22:27:23 +03:00
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
|
2022-10-08 22:45:35 +03:00
|
|
|
|
users.users.jan = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [
|
|
|
|
|
"wheel" # Enable ‘sudo’ for the user.
|
2022-10-10 07:46:24 +03:00
|
|
|
|
(lib.mkIf config.networking.networkmanager.enable "networkmanager")
|
|
|
|
|
(lib.mkIf config.virtualisation.docker.enable "docker")
|
2023-03-15 22:52:13 +03:00
|
|
|
|
(lib.mkIf config.services.transmission.enable "transmission")
|
|
|
|
|
(lib.mkIf config.services.kubo.enable "ipfs")
|
2022-10-08 22:45:35 +03:00
|
|
|
|
];
|
|
|
|
|
shell = pkgs.zsh;
|
2023-11-30 16:44:36 +03:00
|
|
|
|
hashedPasswordFile = config.age.secrets.users-jan-passfile.path;
|
2023-07-03 23:16:31 +03:00
|
|
|
|
|
|
|
|
|
openssh.authorizedKeys.keys = data.publicKeys.users.jan;
|
2022-10-08 22:45:35 +03:00
|
|
|
|
};
|
|
|
|
|
|
2022-10-18 00:42:23 +03:00
|
|
|
|
home-manager.users.jan = { lib, ... }: {
|
|
|
|
|
imports = [
|
|
|
|
|
inputs.wired.homeManagerModules.default
|
|
|
|
|
./home.nix
|
|
|
|
|
extraHomeModule
|
2023-11-13 18:26:20 +03:00
|
|
|
|
extraJanHomeModule
|
2022-10-18 00:42:23 +03:00
|
|
|
|
];
|
2022-10-08 22:45:35 +03:00
|
|
|
|
|
2022-10-18 00:42:23 +03:00
|
|
|
|
home.stateVersion = config.system.stateVersion;
|
2022-10-08 22:45:35 +03:00
|
|
|
|
};
|
|
|
|
|
|
2022-10-09 21:25:07 +03:00
|
|
|
|
nix.settings.trusted-users = lib.mkAfter [ "jan" ];
|
2022-10-10 11:59:05 +03:00
|
|
|
|
|
2023-03-18 23:38:11 +03:00
|
|
|
|
age.secrets.users-jan-passfile.file = ../../../secrets/users-jan-passfile.age;
|
2022-10-08 22:45:35 +03:00
|
|
|
|
}
|