Added wofi.nix
This commit is contained in:
@@ -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
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user