diff --git a/home/dconf/default.nix b/home/dconf/default.nix index 4924e3e..66f82cd 100644 --- a/home/dconf/default.nix +++ b/home/dconf/default.nix @@ -4,23 +4,12 @@ # home-manager, in its infinite wisdom, sets `dconf.enable` to true by default. # This is a problem because we don't want it to attempt to apply our settings on -# a system that doesn't actually have GNOME installed. +# a system that doesn't actually have GNOME installed. So, we override the +# default to false. -# To work around it, we create our own option `qenya.dconf.enable`, which -# defaults to false, and pass it to `dconf.enable`. - -let - inherit (lib) mkIf mkEnableOption; - cfg = config.qenya.dconf; -in -{ - options.qenya.dconf = { - enable = mkEnableOption "dconf"; - }; - - config = { - dconf.enable = config.qenya.dconf.enable; - }; +let inherit (lib) mkDefault; +in { + dconf.enable = mkDefault false; imports = [ # TODO: nix-ify other parts of GNOME config diff --git a/hosts/tohru/home.nix b/hosts/tohru/home.nix index 226ed1a..70e2c75 100644 --- a/hosts/tohru/home.nix +++ b/hosts/tohru/home.nix @@ -2,7 +2,7 @@ { home-manager.users.qenya = { pkgs, ... }: { - qenya.dconf.enable = true; + dconf.enable = true; programs = { firefox.enable = true; # TODO: config is not yet nix-ified