nix-files/modules/gui/default.nix

32 lines
615 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.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 {
2022-11-22 04:31:55 +00:00
sane.packages.enableGuiPkgs = lib.mkDefault true;
# preserve backlight brightness across power cycles
# see `man systemd-backlight`
sane.persist.sys.plaintext = [ "/var/lib/systemd/backlight" ];
};
2022-06-07 00:35:28 +00:00
}