nix-files/modules/gui/default.nix

29 lines
552 B
Nix
Raw Normal View History

{ lib, config, ... }:
2022-06-07 00:35:28 +00:00
with lib;
let
2022-08-01 07:23:49 +00:00
cfg = config.sane.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
2022-08-01 07:23:49 +00:00
sane.gui.enable = mkOption {
default = false;
type = types.bool;
};
};
config = lib.mkIf cfg.enable {
sane.home-packages.enableGuiPkgs = lib.mkDefault true;
# all GUIs use network manager?
users.users.nm-iodine.uid = config.sane.allocations.nm-iodine-uid;
};
2022-06-07 00:35:28 +00:00
}