2024-04-11 20:15:47 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-07-30 20:42:59 +02:00
|
|
|
machineProps,
|
2024-04-11 20:15:47 +02:00
|
|
|
sopsHmModule,
|
|
|
|
...
|
|
|
|
}:
|
2023-10-22 17:12:42 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
imports = [
|
2024-07-30 20:42:59 +02:00
|
|
|
../common
|
2023-10-22 17:12:42 +02:00
|
|
|
./sound.nix
|
|
|
|
./desktop.nix
|
|
|
|
./bluetooth.nix
|
2024-08-03 22:17:23 +02:00
|
|
|
./wireshark.nix
|
2023-10-22 17:12:42 +02:00
|
|
|
];
|
|
|
|
|
2024-08-01 21:40:51 +02:00
|
|
|
config =
|
|
|
|
{
|
|
|
|
programs.dconf.enable = true;
|
|
|
|
security.polkit.enable = true;
|
|
|
|
services.dbus.enable = true;
|
2023-10-22 17:12:42 +02:00
|
|
|
|
2024-08-01 21:40:51 +02:00
|
|
|
fonts.fontconfig.enable = true;
|
2023-10-22 17:12:42 +02:00
|
|
|
|
2024-08-01 21:40:51 +02:00
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
}
|
|
|
|
// (
|
|
|
|
if machineProps.enableHomeManager then
|
2024-04-11 20:15:47 +02:00
|
|
|
{
|
2024-08-01 21:40:51 +02:00
|
|
|
home-manager.useGlobalPkgs = true;
|
|
|
|
home-manager.useUserPackages = true;
|
|
|
|
home-manager.sharedModules = [
|
|
|
|
./home-manager
|
|
|
|
sopsHmModule
|
|
|
|
];
|
|
|
|
home-manager.extraSpecialArgs = {
|
|
|
|
keymap = config.console.keyMap;
|
|
|
|
isNvidiaGpu = (config.my.hardware.gpu == "nvidia");
|
|
|
|
};
|
2024-08-02 21:05:28 +02:00
|
|
|
home-manager.users = builtins.mapAttrs (name: value: {
|
|
|
|
imports = [ value.hmConfig ];
|
|
|
|
|
|
|
|
home.username = name;
|
|
|
|
home.homeDirectory = "/home/${name}";
|
|
|
|
home.stateVersion = machineProps.stateVersion;
|
|
|
|
programs.home-manager.enable = true;
|
|
|
|
programs.fish.enable = value.shell == pkgs.fish;
|
|
|
|
}) config.my.users;
|
2024-04-11 20:15:47 +02:00
|
|
|
}
|
2024-08-01 21:40:51 +02:00
|
|
|
else
|
|
|
|
{ }
|
|
|
|
);
|
2023-10-22 17:12:42 +02:00
|
|
|
}
|