feat: fixed(?) binds and window-rules modules

This commit is contained in:
serenity-F 2026-09-22 00:36:29 +10:00
parent c23715f2f1
commit e540b21ed9
No known key found for this signature in database
2 changed files with 148 additions and 118 deletions

View file

@ -1,5 +1,7 @@
_:
{ self, inputs, ... }:
let
windowRules = [
{
geometry-corner-radius =
@ -38,7 +40,7 @@ let
title = "btop";
}
];
open-on-output = "DP-1";
open-on-output = "DP-4";
open-on-workspace = "System";
open-maximized = true;
}
@ -48,18 +50,28 @@ let
open-focused = true;
}
];
in
{
programs.niri.settings = {
window-rules = windowRules;
layout = {
background-color = "transparent";
flake.nixosModules.niri-window-rules = { pkgs, ... }: {
# for home manager functionality
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager.users.serenity = {
programs.niri.settings = {
window-rules = windowRules;
layout = {
background-color = "transparent";
};
layer-rules = [
{
matches = [ { namespace = "^noctalia-wallpaper*"; } ];
place-within-backdrop = true;
}
];
};
};
layer-rules = [
{
matches = [ { namespace = "^noctalia-wallpaper*"; } ];
place-within-backdrop = true;
}
];
};
}