Compare commits

...

5 commits

Author SHA1 Message Date
sid
7a3ecf1545 Merge pull request 'develop' (#16) from develop into release-25.11
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 5s
Reviewed-on: #16
2026-04-03 16:46:17 +02:00
sid
5fe892570c amd: add rocmPackages.clr.icd to hardware.graphics.extraPackages
All checks were successful
Flake check / flake-check (pull_request) Successful in 20s
Build tests / build-hosts (pull_request) Successful in 23s
2026-04-03 16:44:55 +02:00
sid
954e6182e1 stylix: allow color scheme generation from image 2026-04-03 16:39:47 +02:00
steffen
0ae912d980 waybar: fix workspaces button color and background 2026-04-03 15:04:25 +02:00
sid
05aeb32d54 hyprland: add gestures 2026-04-03 12:34:36 +02:00
4 changed files with 21 additions and 9 deletions

View file

@ -3,13 +3,13 @@
let
cfg = config.wayland.windowManager.hyprland;
nonFloatingClasses = [
nonCenterFloatingClasses = [
"Gimp"
"steam"
"KiCad"
];
nonFloatingClassesRegex = concatStringsSep "|" nonFloatingClasses;
nonCenterFloatingClassesRegex = concatStringsSep "|" nonCenterFloatingClasses;
inherit (builtins) concatStringsSep toString;
inherit (lib) mkDefault;
@ -25,8 +25,8 @@ in
# 1: see Hyprland NixOS module
windowrule = [
# "float, class:^(${nonFloatingClassesRegex})$"
"center, floating:1, class:^(?!.*(${nonFloatingClassesRegex})).*$"
# "float, class:^(${nonCenterFloatingClassesRegex})$"
"center, floating:1, class:^(?!.*(${nonCenterFloatingClassesRegex})).*$"
"float, title:^(Open|Save) Files?$"
"noborder, onworkspace:w[t1]"
"bordersize ${toString cfg.settings.general.border_size}, floating:1"
@ -39,6 +39,12 @@ in
"noblur, class:^(xwaylandvideobridge)$"
];
gesture = [
"3, horizontal, workspace"
"3, up, dispatcher, exec, bemenu-run" # TODO: move to hyprland.applications
"4, swipe, move"
];
# Layouts
general.layout = mkDefault "master";
master = {

View file

@ -51,11 +51,13 @@ in
options.stylix = {
scheme = lib.mkOption {
type = types.str;
type = types.nullOr types.str;
default = "dracula";
description = ''
Base16 color scheme name. Available options are:
${toString validSchemes}
Set to `null` to generate a color scheme from `stylix.image`
'';
};
};
@ -66,11 +68,15 @@ in
assertion = builtins.elem cfg.scheme validSchemes;
message = "Stylix: Invalid colorscheme '${cfg.scheme}'. Available options: ${toString validSchemes}";
}
{
assertion = (cfg.scheme != null) || (cfg.image != null);
message = "Stylix: You need to set stylix.image if stylix.scheme is `null`";
}
];
stylix = {
autoEnable = mkDefault true;
base16Scheme = scheme;
base16Scheme = mkIf (cfg.scheme != null) scheme;
fonts = {
monospace = mkDefault {
package = pkgs.hack-font;

View file

@ -71,11 +71,11 @@ in
#workspaces {
color: ${colors.base05};
background: ${colors.base00};
}
#workspaces button {
padding: ${halfgaps}px;
color: ${colors.base05};
}
#workspaces button.active {

View file

@ -6,19 +6,19 @@
environment.systemPackages = with pkgs; [
lact
nvtopPackages.amd
rocmPackages.clr.icd
rocmPackages.hipcc
rocmPackages.miopen
rocmPackages.rocm-runtime
rocmPackages.rocm-smi
rocmPackages.rocminfo
];
# environment.variables.ROC_ENABLE_PRE_VEGA = "1"; # for Polaris
hardware.amdgpu.opencl.enable = true;
hardware.graphics.extraPackages = with pkgs; [ rocmPackages.clr.icd ];
systemd.packages = with pkgs; [ lact ];
systemd.services.lactd.wantedBy = [ "multi-user.target" ];
}