Working on reshuffling

This commit is contained in:
2026-03-19 07:51:01 +00:00
parent ea63d89339
commit 82295e4ba6
2 changed files with 32 additions and 10 deletions
+16 -5
View File
@@ -1992,18 +1992,29 @@ This is top file of this level which contains just an import statement for all r
{ lib, pkgs, ... }:
let
# Relative path to assets
wofiAssets = ../../../assets/system/conf/wofi;
wofiFiles = builtins.readDir wofiAssets;
# Map filenames to source paths
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
src = "${wofiAssets}/${name}";
});
in
{
# If using Home Manager
home-manager.users.henrov = {
programs.wofi.enable = true;
programs.wofi.configFile = wofiConfs."wofi.conf".src;
programs.wofi.styleFile = wofiConfs."theming.css".src;
# Provide a module option to enable Wofi
options.enableWofi =
lib.mkEnableOption "Enable Wofi terminal launcher";
# Only apply config if enabled
config = lib.mkIf (lib.getOption "enableWofi") {
# Install Wofi system-wide
environment.systemPackages = [
pkgs.wofi
];
# Copy config files to a standard location in /etc/xdg
environment.etc."xdg/wofi".source = wofiAssets;
};
}
#+END_SRC
+16 -5
View File
@@ -1,17 +1,28 @@
{ lib, pkgs, ... }:
let
# Relative path to assets
wofiAssets = ../../../assets/system/conf/wofi;
wofiFiles = builtins.readDir wofiAssets;
# Map filenames to source paths
wofiConfs = lib.genAttrs (builtins.attrNames wofiFiles) (name: {
src = "${wofiAssets}/${name}";
});
in
{
# If using Home Manager
home-manager.users.henrov = {
programs.wofi.enable = true;
programs.wofi.configFile = wofiConfs."wofi.conf".src;
programs.wofi.styleFile = wofiConfs."theming.css".src;
# Provide a module option to enable Wofi
options.enableWofi =
lib.mkEnableOption "Enable Wofi terminal launcher";
# Only apply config if enabled
config = lib.mkIf (lib.getOption "enableWofi") {
# Install Wofi system-wide
environment.systemPackages = [
pkgs.wofi
];
# Copy config files to a standard location in /etc/xdg
environment.etc."xdg/wofi".source = wofiAssets;
};
}