Include customSettings option to configure regreet (#4)
* Attempt to add regrett configuration * Prevent double install of regreet * Install regreet over program enable * Force regreet settings * Revert regreet over programs enable. * Move regreet config into homemanger.
This commit is contained in:
parent
0c1291d3fd
commit
0389558529
3 changed files with 15 additions and 3 deletions
|
|
@ -88,7 +88,7 @@
|
||||||
];
|
];
|
||||||
type = with lib.types; listOf attrs;
|
type = with lib.types; listOf attrs;
|
||||||
description = ''
|
description = ''
|
||||||
Adds modules to ironbar.
|
Adds modules to ironbar. See https://github.com/JakeStanger/ironbar/wiki/ for more information.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@
|
||||||
};
|
};
|
||||||
example = { };
|
example = { };
|
||||||
type = with lib.types; attrsOf anything;
|
type = with lib.types; attrsOf anything;
|
||||||
description = "Firefox policy configuration";
|
description = "Firefox policy configuration. See https://mozilla.github.io/policy-templates/ for more information.";
|
||||||
};
|
};
|
||||||
extensions = lib.mkOption {
|
extensions = lib.mkOption {
|
||||||
default = with pkgs.nur.repos.rycee.firefox-addons; [
|
default = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,16 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
regreet = {
|
||||||
|
customSettings = lib.mkOption {
|
||||||
|
default = { };
|
||||||
|
example = { };
|
||||||
|
type = with lib.types; attrsOf anything;
|
||||||
|
description = ''
|
||||||
|
Custom regret settings. See https://github.com/rharish101/ReGreet/blob/main/regreet.sample.toml for more information.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config =
|
config =
|
||||||
|
|
@ -120,11 +130,13 @@
|
||||||
env=XCURSOR_SIZE,${toString config.mods.stylix.cursor.size}
|
env=XCURSOR_SIZE,${toString config.mods.stylix.cursor.size}
|
||||||
env=QT_QPA_PLATFORMTHEME,qt5ct
|
env=QT_QPA_PLATFORMTHEME,qt5ct
|
||||||
|
|
||||||
exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css; hyprctl dispatch exit
|
exec-once=regreet --style /home/${username}/.config/gtk-3.0/gtk.css --config /home/${username}/.config/regreet/regreet.toml; hyprctl dispatch exit
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# unlock GPG keyring on login
|
# unlock GPG keyring on login
|
||||||
security.pam.services.greetd.enableGnomeKeyring = true;
|
security.pam.services.greetd.enableGnomeKeyring = true;
|
||||||
|
} // lib.optionalAttrs (options ? home) {
|
||||||
|
xdg.configFile."regreet/regreet.toml".source = (pkgs.formats.toml { }).generate "regreet" config.mods.regreet.customSettings;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue