removed attr from hypr

This commit is contained in:
kenji
2025-08-20 13:54:48 -05:00
parent c5bb2bf66f
commit 76edab5b1c
5 changed files with 12 additions and 26 deletions
+12 -10
View File
@@ -17,16 +17,20 @@ in {
xwayland.enable = true; xwayland.enable = true;
systemd.enable = true; systemd.enable = true;
settings = lib.mkMerge [ settings = lib.mkIf cfg.settings.hyprland.useNixForConf (
(import ./hyprland/hypr/keybinds.nix {inherit config pkgs;}) lib.mkMerge [
(import ./hyprland/hypr/exec.nix {inherit config pkgs;}) # These imports must be functions that return an attribute set.
(import ./hyprland/hypr/rules.nix {inherit config pkgs;}) (import ./hyprland/hypr/keybinds.nix {inherit config pkgs;})
(import ./hyprland/hypr/env.nix {inherit config pkgs;}) (import ./hyprland/hypr/exec.nix {inherit config pkgs;})
(import ./hyprland/hypr/colours.nix {inherit config pkgs;}) (import ./hyprland/hypr/rules.nix {inherit config pkgs;})
]; (import ./hyprland/hypr/env.nix {inherit config pkgs;})
(import ./hyprland/hypr/colours.nix {inherit config pkgs;})
]
);
}; };
home.file = lib.mkMerge [ home.file = lib.mkMerge [
# The home.file configuration is now split into two mutually exclusive blocks.
(lib.mkIf cfg.settings.hyprland.useNixForConf { (lib.mkIf cfg.settings.hyprland.useNixForConf {
".config/hypr/scripts" = { ".config/hypr/scripts" = {
source = builtins.path { source = builtins.path {
@@ -41,8 +45,6 @@ in {
path = ../../.config/hypr; path = ../../.config/hypr;
}; };
}; };
})
{
".config/quickshell".source = builtins.path {path = ../../.config/quickshell;}; ".config/quickshell".source = builtins.path {path = ../../.config/quickshell;};
".config/kitty".source = builtins.path {path = ../../.config/kitty;}; ".config/kitty".source = builtins.path {path = ../../.config/kitty;};
".config/foot".source = builtins.path {path = ../../.config/foot;}; ".config/foot".source = builtins.path {path = ../../.config/foot;};
@@ -52,7 +54,7 @@ in {
".config/wlogout".source = builtins.path {path = ../../.config/wlogout;}; ".config/wlogout".source = builtins.path {path = ../../.config/wlogout;};
".config/Kvantum".source = builtins.path {path = ../../.config/Kvantum;}; ".config/Kvantum".source = builtins.path {path = ../../.config/Kvantum;};
".config/xdg-desktop-portal".source = builtins.path {path = ../../.config/xdg-desktop-portal;}; ".config/xdg-desktop-portal".source = builtins.path {path = ../../.config/xdg-desktop-portal;};
} })
]; ];
home.packages = home.packages =
-4
View File
@@ -1,8 +1,4 @@
{ {
config,
pkgs,
...
}: {
# This file only defines the `env` attribute, which is a part of the settings. # This file only defines the `env` attribute, which is a part of the settings.
env = [ env = [
"QT_IM_MODULE, fcitx" "QT_IM_MODULE, fcitx"
@@ -1,8 +1,4 @@
{ {
config,
pkgs,
...
}: {
monitor = [ monitor = [
",preferred,auto,1,transform, 0" ",preferred,auto,1,transform, 0"
# "HDMI-A-1,1920x1080@60,1920x0,1,mirror,eDP-1" # "HDMI-A-1,1920x1080@60,1920x0,1,mirror,eDP-1"
@@ -1,8 +1,4 @@
{ {
config,
pkgs,
...
}: {
# Shell keybinds # Shell keybinds
bindi = [ bindi = [
"Super, Super_L, Toggle overview, global, quickshell:overviewToggleRelease" "Super, Super_L, Toggle overview, global, quickshell:overviewToggleRelease"
-4
View File
@@ -1,8 +1,4 @@
{ {
config,
pkgs,
...
}: {
windowrulev2 = [ windowrulev2 = [
# Uncomment to apply global transparency to all windows: # Uncomment to apply global transparency to all windows:
# "opacity 0.89 override 0.89 override, class:.*" # "opacity 0.89 override 0.89 override, class:.*"