Add xdg settings, cache, cleanup script

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-21 23:39:18 +03:00
parent ce37f320c2
commit 48f391e3ad
22 changed files with 245 additions and 51 deletions

View File

@@ -1,5 +1,8 @@
{ user ? throw "user argument is required" }: { lib, pkgs, ... }:
{ user ? throw "user argument is required" }: { config, lib, pkgs, ... }:
let
hmConfig = config.home-manager.users."${user.name}";
in
{
programs.hyprland.enable = true;
@@ -8,12 +11,12 @@
enable = true;
settings = {
"$mod" = "SUPER";
"$term" = "kitty";
"$term" = "${pkgs.kitty}/bin/kitty";
bind = [
"$mod, Return, exec, $term"
"$mod, r, exec, rofi -show drun"
"$mod, b, exec, firefox"
"$mod, r, exec, ${pkgs.rofi-wayland}/bin/rofi -cache-dir ${hmConfig.xdg.cacheHome}/rofi -show drun"
"$mod, b, exec, ${pkgs.firefox}/bin/firefox"
"$mod, 1, workspace, 1"
"$mod, 2, workspace, 2"
@@ -116,9 +119,8 @@
home = {
sessionVariables.NIXOS_OZONE_WL = "1";
packages = with pkgs; [
swww
rofi-wayland
pavucontrol
];
};