Working on reshuffling

This commit is contained in:
2026-03-19 07:49:22 +00:00
parent 5a0a810089
commit ea63d89339
2 changed files with 12 additions and 16 deletions
+6 -8
View File
@@ -1989,10 +1989,9 @@ the top of the file."
** =generated/modules/apps/wofi.nix= ** =generated/modules/apps/wofi.nix=
This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder This is top file of this level which contains just an import statement for all relevant files and/or the subfolder in this folder
#+BEGIN_SRC nix :tangle generated/modules/apps/wofi.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/modules/apps/wofi.nix :noweb tangle :mkdirp yes :eval never-html
{ lib, ... }: { lib, pkgs, ... }:
let let
# relative path from this module
wofiAssets = ../../../assets/system/conf/wofi; wofiAssets = ../../../assets/system/conf/wofi;
wofiFiles = builtins.readDir wofiAssets; wofiFiles = builtins.readDir wofiAssets;
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: { wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
@@ -2000,12 +1999,11 @@ let
}); });
in in
{ {
mySystem = { # If using Home Manager
apps.wofi = { home-manager.users.henrov = {
enable = true; programs.wofi.enable = true;
configFile = wofiConfs."wofi.conf".src; programs.wofi.configFile = wofiConfs."wofi.conf".src;
styleFile = wofiConfs."theming.css".src; programs.wofi.styleFile = wofiConfs."theming.css".src;
};
}; };
} }
#+END_SRC #+END_SRC
+6 -8
View File
@@ -1,7 +1,6 @@
{ lib, ... }: { lib, pkgs, ... }:
let let
# relative path from this module
wofiAssets = ../../../assets/system/conf/wofi; wofiAssets = ../../../assets/system/conf/wofi;
wofiFiles = builtins.readDir wofiAssets; wofiFiles = builtins.readDir wofiAssets;
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: { wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
@@ -9,11 +8,10 @@ let
}); });
in in
{ {
mySystem = { # If using Home Manager
apps.wofi = { home-manager.users.henrov = {
enable = true; programs.wofi.enable = true;
configFile = wofiConfs."wofi.conf".src; programs.wofi.configFile = wofiConfs."wofi.conf".src;
styleFile = wofiConfs."theming.css".src; programs.wofi.styleFile = wofiConfs."theming.css".src;
};
}; };
} }