Reshuffling stuff
This commit is contained in:
+12
-29
@@ -1850,39 +1850,22 @@ 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, config, flakeRoot, ... }:
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
flakeRoot,
|
|
||||||
user,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
wofiAssets = "${flakeRoot}/assets/system/conf/wofi";
|
||||||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
wofiFiles = builtins.readDir wofiAssets;
|
||||||
wofiConfs =
|
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
|
||||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
src = "${wofiAssets}/${name}";
|
||||||
(name: {
|
});
|
||||||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
mySystem = {
|
||||||
wofi
|
apps.wofi = {
|
||||||
];
|
enable = true;
|
||||||
|
# symbolic references to files
|
||||||
home-manager.users.${user.username} = {
|
configFile = wofiConfs."wofi.conf".src;
|
||||||
home.file = {
|
styleFile = wofiConfs."theming.css".src;
|
||||||
# Map the files to their target paths in ~/.config/wofi/
|
|
||||||
"${wofiConfigDir}/config" = wofiConfs."wofi.conf"; # Use the actual filename
|
|
||||||
"${wofiConfigDir}/style.css" = wofiConfs."theming.css"; # Use the actual filename
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
WOFI_CONFIG = "${wofiConfigDir}/config";
|
|
||||||
WOFI_STYLE = "${wofiConfigDir}/style.css";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,36 +1,19 @@
|
|||||||
{
|
{ lib, config, flakeRoot, ... }:
|
||||||
lib,
|
|
||||||
config,
|
|
||||||
pkgs,
|
|
||||||
flakeRoot,
|
|
||||||
user,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
wofiAssets = "${flakeRoot}/assets/system/conf/wofi";
|
||||||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
wofiFiles = builtins.readDir wofiAssets;
|
||||||
wofiConfs =
|
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
|
||||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
src = "${wofiAssets}/${name}";
|
||||||
(name: {
|
});
|
||||||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [
|
mySystem = {
|
||||||
wofi
|
apps.wofi = {
|
||||||
];
|
enable = true;
|
||||||
|
# symbolic references to files
|
||||||
home-manager.users.${user.username} = {
|
configFile = wofiConfs."wofi.conf".src;
|
||||||
home.file = {
|
styleFile = wofiConfs."theming.css".src;
|
||||||
# Map the files to their target paths in ~/.config/wofi/
|
|
||||||
"${wofiConfigDir}/config" = wofiConfs."wofi.conf"; # Use the actual filename
|
|
||||||
"${wofiConfigDir}/style.css" = wofiConfs."theming.css"; # Use the actual filename
|
|
||||||
};
|
|
||||||
|
|
||||||
home.sessionVariables = {
|
|
||||||
WOFI_CONFIG = "${wofiConfigDir}/config";
|
|
||||||
WOFI_STYLE = "${wofiConfigDir}/style.css";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user