working on wofi

This commit is contained in:
2026-03-11 15:02:13 +01:00
parent 2186bda854
commit 177b7cc3b4
3 changed files with 360 additions and 364 deletions
+343 -344
View File
File diff suppressed because it is too large Load Diff
+9 -10
View File
@@ -1015,24 +1015,22 @@ This is top file of this level which contains just an import statement for all r
** =generated/hyprland/task_launcher/wofi.nix= ** =generated/hyprland/task_launcher/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/hyprland/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html #+BEGIN_SRC nix :tangle generated/hyprland/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
{ { lib, config, pkgs, ... }:
lib,
config,
pkgs,
flakeRoot,
...
}:
let
# Copy the files into the Nix store
wofiConf = builtins.readFile (toFile "wofi.conf" (builtins.readFile ./assets/hyprland/conf/wofi/wofi.conf));
wofiStyle = ./assets/hyprland/conf/wofi/theming.css;
in
{ {
# Install Wofi # Install Wofi
environment.systemPackages = with pkgs; [ wofi ]; environment.systemPackages = with pkgs; [ wofi ];
# Home Manager configuration for Wofi # Home Manager configuration for Wofi
home-manager.users.henrov = { home-manager.users.henrov = {
# Manage only the config and style files
home.file = { home.file = {
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf"; ".config/wofi/config".text = wofiConf;
".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css"; ".config/wofi/style.css".source = wofiStyle;
}; };
# Environment variables for Wofi # Environment variables for Wofi
@@ -1042,6 +1040,7 @@ This is top file of this level which contains just an import statement for all r
}; };
}; };
} }
#+END_SRC #+END_SRC
@@ -1,21 +1,19 @@
{ { lib, config, pkgs, ... }:
lib,
config,
pkgs,
flakeRoot,
...
}:
let
# Copy the files into the Nix store
wofiConf = builtins.readFile (toFile "wofi.conf" (builtins.readFile ./assets/hyprland/conf/wofi/wofi.conf));
wofiStyle = ./assets/hyprland/conf/wofi/theming.css;
in
{ {
# Install Wofi # Install Wofi
environment.systemPackages = with pkgs; [ wofi ]; environment.systemPackages = with pkgs; [ wofi ];
# Home Manager configuration for Wofi # Home Manager configuration for Wofi
home-manager.users.henrov = { home-manager.users.henrov = {
# Manage only the config and style files
home.file = { home.file = {
".config/wofi/config".text = lib.readFile "${flakeRoot}/.assets/hyprland/conf/wofi/wofi.conf"; ".config/wofi/config".text = wofiConf;
".config/wofi/style.css".source = "${flakeRoot}/.assets/hyprland/conf/wofi/theming.css"; ".config/wofi/style.css".source = wofiStyle;
}; };
# Environment variables for Wofi # Environment variables for Wofi