2022-06-23 07:24:39 +00:00
|
|
|
{ lib, config, ... }:
|
2022-06-07 00:35:28 +00:00
|
|
|
|
2022-06-09 21:50:24 +00:00
|
|
|
with lib;
|
2022-06-23 07:24:39 +00:00
|
|
|
let
|
2022-08-01 07:23:49 +00:00
|
|
|
cfg = config.sane.gui;
|
2022-06-23 07:24:39 +00:00
|
|
|
in
|
2022-06-07 00:35:28 +00:00
|
|
|
{
|
|
|
|
imports = [
|
2022-06-07 00:42:57 +00:00
|
|
|
./gnome.nix
|
2022-06-07 00:39:40 +00:00
|
|
|
./phosh.nix
|
2022-06-07 00:41:35 +00:00
|
|
|
./plasma-mobile.nix
|
2022-06-07 00:35:28 +00:00
|
|
|
./sway.nix
|
|
|
|
];
|
2022-06-09 21:50:24 +00:00
|
|
|
|
|
|
|
options = {
|
|
|
|
# doesn't directly create outputs. consumed by e.g. home-manager.nix module
|
2022-08-01 07:23:49 +00:00
|
|
|
sane.gui.enable = mkOption {
|
2022-06-09 21:50:24 +00:00
|
|
|
default = false;
|
|
|
|
type = types.bool;
|
|
|
|
};
|
|
|
|
};
|
2022-06-23 07:24:39 +00:00
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
2022-08-03 09:07:34 +00:00
|
|
|
sane.home-packages.enableGuiPkgs = lib.mkDefault true;
|
|
|
|
sane.home-manager.enable = lib.mkDefault true;
|
|
|
|
# all GUIs use network manager?
|
|
|
|
users.users.nm-iodine.uid = config.sane.allocations.nm-iodine-uid;
|
2022-06-23 07:24:39 +00:00
|
|
|
};
|
2022-06-07 00:35:28 +00:00
|
|
|
}
|