home(gnome): add gnome desktop
This commit is contained in:
parent
7d36ed93f8
commit
9791949795
2 changed files with 40 additions and 0 deletions
25
home/gnome/nixos.nix
Normal file
25
home/gnome/nixos.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.home.gnome;
|
||||
in {
|
||||
imports = [ ./impl.nix ];
|
||||
|
||||
options.home.gnome = {
|
||||
enable = mkEnableOption "GNOME desktop environment";
|
||||
};
|
||||
|
||||
config = {
|
||||
users.homeModules = [
|
||||
# this module passes gnome configuration to home-manager
|
||||
{ passthrough.gnome= cfg; }
|
||||
];
|
||||
|
||||
specialisation.nognome = with cfg; mkIf enable {
|
||||
configuration = {
|
||||
home.gnome.enable = mkForce false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue