nix-files/modules/gui/default.nix

29 lines
547 B
Nix
Raw Normal View History

{ lib, config, ... }:
2022-06-07 00:35:28 +00:00
with lib;
let
cfg = config.colinsane.gui;
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
./plasma-mobile.nix
2022-06-07 00:35:28 +00:00
./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;
};
2022-06-07 00:35:28 +00:00
}