44 lines
1,007 B
Nix
44 lines
1,007 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
with lib; let
|
|
cfg = config.local.sys.defaultDesktopPack;
|
|
in {
|
|
options.local.sys.defaultDesktopPack = {
|
|
enable = mkEnableOption "common desktop programs and services";
|
|
};
|
|
config = mkIf cfg.enable {
|
|
local.sys = {
|
|
baseline.enable = true;
|
|
|
|
audio.enable = true;
|
|
graphics.enable = true;
|
|
gtklock.enable = true;
|
|
steam.enable = true;
|
|
|
|
users = {
|
|
fabian = {
|
|
enable = true;
|
|
unixId = 1002; #TODO !!!!!!
|
|
};
|
|
};
|
|
};
|
|
|
|
trivium = {
|
|
sway.enable = true;
|
|
trivionomiconMotd.enable = true;
|
|
};
|
|
|
|
networking = {
|
|
networkmanager.enable = true;
|
|
|
|
#TODO
|
|
useDHCP = false; # The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
|
interfaces.enp7s0.useDHCP = true; # Per-interface useDHCP will be mandatory in the future, so this generated config
|
|
interfaces.wlp6s0.useDHCP = true; # replicates the default behaviour.
|
|
};
|
|
};
|
|
}
|