Added wofi.nix
This commit is contained in:
+392
-332
File diff suppressed because it is too large
Load Diff
+37
-1
@@ -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,... }:
|
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# No subfolders to import
|
./wofi.nix
|
||||||
];
|
];
|
||||||
# .. put any code here
|
# .. put any code here
|
||||||
}
|
}
|
||||||
#+END_SRC
|
#+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=
|
** =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
|
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
|
#+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
|
let
|
||||||
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
|
bindingsContent = builtins.readFile (flakeRoot + "/assets/hyprland/conf/bindings.conf");
|
||||||
userConfig = import (flakeRoot + "/assets/flake/users/henrov.nix");
|
configFile = pkgs.writeText "hyprland.conf" bindingsContent;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# Home Manager configurations must be nested under the user
|
||||||
home-manager.users.${user.username} = {
|
home-manager.users.${user.username} = {
|
||||||
home.stateVersion = userConfig.stateVersion;
|
|
||||||
home.username = userConfig.username;
|
|
||||||
home.homeDirectory = userConfig.homeDirectory;
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
extraConfig = bindingsContent;
|
config = configFile;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,24 @@
|
|||||||
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
|
||||||
{
|
{
|
||||||
imports = [
|
config,
|
||||||
# No subfolders to import
|
pkgs,
|
||||||
];
|
lib,
|
||||||
# .. put any code here
|
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,... }:
|
{ config, pkgs, lib, user, inputs, flakeRoot,... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
# No subfolders to import
|
./wofi.nix
|
||||||
];
|
];
|
||||||
# .. put any code here
|
# .. 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
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user