working on wofi
This commit is contained in:
+354
-360
File diff suppressed because it is too large
Load Diff
+26
-25
@@ -1012,35 +1012,45 @@ This is top file of this level which contains just an import statement for all r
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/hyprland/task_launcher/wofi.nix=
|
||||
** =generated/system/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
|
||||
#+BEGIN_SRC nix :tangle generated/hyprland/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ lib, config, pkgs, ... }:
|
||||
#+BEGIN_SRC nix :tangle generated/system/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
flakeRoot,
|
||||
user,
|
||||
...
|
||||
}:
|
||||
|
||||
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;
|
||||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
||||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
||||
wofiConfs =
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
||||
(name: {
|
||||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
||||
});
|
||||
in
|
||||
{
|
||||
# Install Wofi
|
||||
environment.systemPackages = with pkgs; [ wofi ];
|
||||
environment.systemPackages = with pkgs; [
|
||||
wofi
|
||||
];
|
||||
|
||||
# Home Manager configuration for Wofi
|
||||
home-manager.users.henrov = {
|
||||
home-manager.users.${user.username} = {
|
||||
home.file = {
|
||||
".config/wofi/config".text = wofiConf;
|
||||
".config/wofi/style.css".source = wofiStyle;
|
||||
# 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
|
||||
};
|
||||
|
||||
# Environment variables for Wofi
|
||||
home.sessionVariables = {
|
||||
WOFI_CONFIG = "$HOME/.config/wofi/config";
|
||||
WOFI_STYLE = "$HOME/.config/wofi/style.css";
|
||||
WOFI_CONFIG = "${wofiConfigDir}/config";
|
||||
WOFI_STYLE = "${wofiConfigDir}/style.css";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
#+END_SRC
|
||||
|
||||
|
||||
@@ -1134,15 +1144,6 @@ This is top file of this level which contains just an import statement for all r
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/mangowc/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
|
||||
#+BEGIN_SRC nix :tangle generated/mangowc/task_launcher/wofi.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||||
{
|
||||
# .. put any code here
|
||||
}
|
||||
#+END_SRC
|
||||
|
||||
** =generated/mangowc/task_window_workspace_switcher/top.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
|
||||
#+BEGIN_SRC nix :tangle generated/mangowc/task_window_workspace_switcher/top.nix :noweb tangle :mkdirp yes :eval never-html
|
||||
|
||||
@@ -16,7 +16,7 @@ let
|
||||
});
|
||||
in
|
||||
{
|
||||
# NixOS: Enable Hyprland
|
||||
# NixOS: Enable Hyprland (optional)
|
||||
programs.hyprland = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
@@ -11,9 +11,9 @@ let
|
||||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
||||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
||||
wofiConfs =
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/wofi"))
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
||||
(name: {
|
||||
text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/wofi/${name}";
|
||||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
||||
});
|
||||
in
|
||||
{
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
flakeRoot,
|
||||
user,
|
||||
...
|
||||
}:
|
||||
|
||||
let
|
||||
wofiConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/wofi";
|
||||
# Dynamically read all files in assets/hyprland/conf/wofi/
|
||||
wofiConfs =
|
||||
lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/system/conf/wofi"))
|
||||
(name: {
|
||||
text = builtins.readFile "${flakeRoot}/assets/system/conf/wofi/${name}";
|
||||
});
|
||||
in
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
wofi
|
||||
];
|
||||
|
||||
home-manager.users.${user.username} = {
|
||||
home.file = {
|
||||
# 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