[fix] home: revamp options

Query the system configuration for defaults for the options.
This commit is contained in:
Jalil David Salamé Messina 2024-06-01 16:24:05 +02:00
parent 1da87b1153
commit a639e4e214
Signed by: jalil
GPG key ID: F016B9E770737A0B
3 changed files with 45 additions and 27 deletions

View file

@ -14,11 +14,7 @@ in {
imports =
[
# Apply overlays
{
nixpkgs = {
inherit overlays;
};
}
{nixpkgs = {inherit overlays;};}
nvim-config
./options.nix
./gui
@ -26,12 +22,11 @@ in {
]
++ lib.optionals (stylix != null) [
stylix.homeManagerModules.stylix
{
stylix.image = cfg.sway.background;
}
{stylix.image = cfg.sway.background;}
];
config = lib.mkMerge [
(lib.mkIf (cfg.enable && cfg.styling.enable) {stylix.enable = true;})
(lib.mkIf cfg.enable {
programs = {
# Better cat (bat)