Added wofi.nix

This commit is contained in:
2026-03-07 22:10:20 +01:00
parent fa14034de4
commit a3b14c3b69
6 changed files with 487 additions and 353 deletions
+392 -332
View File
File diff suppressed because it is too large Load Diff
+37 -1
View File
@@ -901,12 +901,48 @@ This is top file of this level which contains just an import statement for all r
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
imports = [
# No subfolders to import
./wofi.nix
];
# .. put any code here
}
#+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,... }:
{
programs.wofi = {
enable = true;
wrapGtkApps = true; # Required for GTK theming
extraPackages = with pkgs; [ wofi ];
};
# Catppuccin theme for Wofi
home-manager.users.${user.username} = {
xdg.configFile."wofi/config".text = ''
dark
width=500
height=800
lines=10
columns=1
cache_dir=${config.xdg.dataHome}/wofi
allow_images=true
allow_markup=true
show_drun=true
'';
xdg.configFile."wofi/style.css".source = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wofi";
rev = "main";
sha256 = "sha256-0000000000000000000000000000000000000000000000000000"; # Update with the correct hash
file = "mocha.css"; # or latte/frappe/macchiato
};
};
}
#+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
@@ -1,24 +1,14 @@
{
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
{ config, pkgs, lib, user, inputs, flakeRoot, ... }:
let
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix");
configFile = pkgs.writeText "hyprland.conf" bindingsContent;
in
{
# Home Manager configurations must be nested under the user
home-manager.users.${user.username} = {
home.stateVersion = userConfig.stateVersion;
home.username = userConfig.username;
home.homeDirectory = userConfig.homeDirectory;
wayland.windowManager.hyprland = {
enable = true;
extraConfig = bindingsContent;
config = configFile;
};
};
}
@@ -1,7 +1,24 @@
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
imports = [
# No subfolders to import
];
# .. put any code here
config,
pkgs,
lib,
user,
inputs,
flakeRoot,
...
}:
let
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix");
in
{
home-manager.users.${user.username} = {
home.stateVersion = userConfig.stateVersion;
home.username = userConfig.username;
home.homeDirectory = userConfig.homeDirectory;
wayland.windowManager.hyprland = {
enable = true;
extraConfig = bindingsContent;
};
};
}
@@ -1,7 +1,7 @@
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
imports = [
# No subfolders to import
./wofi.nix
];
# .. put any code here
}
@@ -0,0 +1,31 @@
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
{
programs.wofi = {
enable = true;
wrapGtkApps = true; # Required for GTK theming
extraPackages = with pkgs; [ wofi ];
};
# Catppuccin theme for Wofi
home-manager.users.${user.username} = {
xdg.configFile."wofi/config".text = ''
dark
width=500
height=800
lines=10
columns=1
cache_dir=${config.xdg.dataHome}/wofi
allow_images=true
allow_markup=true
show_drun=true
'';
xdg.configFile."wofi/style.css".source = pkgs.fetchFromGitHub {
owner = "catppuccin";
repo = "wofi";
rev = "main";
sha256 = "sha256-0000000000000000000000000000000000000000000000000000"; # Update with the correct hash
file = "mocha.css"; # or latte/frappe/macchiato
};
};
}