29 lines
547 B
Nix
29 lines
547 B
Nix
{ lib, config, ... }:
|
|
|
|
with lib;
|
|
let
|
|
cfg = config.colinsane.gui;
|
|
in
|
|
{
|
|
imports = [
|
|
./gnome.nix
|
|
./phosh.nix
|
|
./plasma-mobile.nix
|
|
./sway.nix
|
|
];
|
|
|
|
options = {
|
|
# doesn't directly create outputs. consumed by e.g. home-manager.nix module
|
|
colinsane.gui.enable = mkOption {
|
|
default = false;
|
|
type = types.bool;
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
colinsane.home-manager.enable = true;
|
|
# all GUIs use network manager?
|
|
users.users.nm-iodine.uid = config.colinsane.allocations.nm-iodine-uid;
|
|
};
|
|
}
|