diff --git a/flake.lock b/flake.lock index d08ba0fc..0e5e4732 100644 --- a/flake.lock +++ b/flake.lock @@ -57,11 +57,11 @@ ] }, "locked": { - "lastModified": 1689134369, - "narHash": "sha256-0G9dutIvhS/WUr3Awcnqw71g8EVVvvkOhVDnDDbY4Fw=", + "lastModified": 1691882297, + "narHash": "sha256-e1/LAQSGLnBywfA1TfMl0Vj3tvYka73XOZ/D2/CJowE=", "owner": "nix-community", "repo": "home-manager", - "rev": "e42fb59768f0305085abde0dd27ab5e0cc15420c", + "rev": "c3ab5ea047e6dc73df530948f7367455749d8906", "type": "github" }, "original": { @@ -72,11 +72,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1690441914, - "narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=", + "lastModified": 1691853136, + "narHash": "sha256-wTzDsRV4HN8A2Sl0SVQY0q8ILs90CD43Ha//7gNZE+E=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f", + "rev": "f0451844bbdf545f696f029d1448de4906c7f753", "type": "github" }, "original": { diff --git a/modules/hyprland/hm.nix b/modules/hyprland/hm.nix new file mode 100644 index 00000000..b8a2084b --- /dev/null +++ b/modules/hyprland/hm.nix @@ -0,0 +1,27 @@ +{ config, lib, ... }: + +with config.lib.stylix.colors; + +let + rgb = color: "rgb(${color})"; + rgba = color: alpha: "rgba(${color}${alpha})"; + + settings = { + decoration."col.shadow" = rgba base00 "99"; + general = { + "col.active_border" = rgb base0A; + "col.inactive_border" = rgb base03; + "col.group_border" = rgb base0D; + "col.group_border_active" = rgb base06; + "col.group_border_locked_active" = rgb base06; + }; + misc.background_color = rgb base00; + }; + +in { + options.stylix.targets.hyprland.enable = + config.lib.stylix.mkEnableTarget "Hyprland" true; + + config.wayland.windowManager.hyprland.settings = + lib.mkIf config.stylix.targets.hyprland.enable settings; +}