My Nix Configuration

[homeModules] disable shells on non-graphical systems

pyrox.dev e9ae6ad7 339aac48

verified
Changed files
+4 -2
homeModules
programs
caelestia
dms
+2 -1
homeModules/programs/caelestia/default.nix
···
}:
let
cfg = config.py.profiles.desktop.caelestia;
+
en = config.py.profiles.desktop.enable;
in
{
-
config = lib.mkIf cfg {
+
config = lib.mkIf (cfg && en) {
programs.caelestia = {
enable = true;
settings = builtins.fromJSON (builtins.readFile ./caelestia-shell.json);
+2 -1
homeModules/programs/dms/default.nix
···
}:
let
cfg = config.py.profiles.desktop.dms;
+
en = config.py.profiles.desktop.enable;
in
{
-
config = lib.mkIf cfg {
+
config = lib.mkIf (cfg && en) {
programs.dankMaterialShell = {
enable = true;
enableNightMode = false;