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

This commit is contained in:
serenity-F 2026-09-22 00:44:20 +10:00
parent e540b21ed9
commit e7320119cd
No known key found for this signature in database
2 changed files with 104 additions and 103 deletions

View file

@ -1,6 +1,10 @@
{ self, inputs, ... }:
{
# niri keybinds module declaration
flake.nixosModules.niri-binds =
{
self,
inputs,
config,
pkgs,
lib,
@ -48,15 +52,6 @@ let
in
{
flake.nixosModules.niri-binds =
{
config,
pkgs,
lib,
...
}:
{
# for home manager functionality

View file

@ -1,5 +1,11 @@
{ self, inputs, ... }:
{
# niri window rules module declaration
flake.nixosModules.niri-window-rules =
{ pkgs, ... }:
let
windowRules = [
@ -54,17 +60,18 @@ let
in
{
flake.nixosModules.niri-window-rules = { pkgs, ... }: {
# for home manager functionality
imports = [ inputs.home-manager.nixosModules.home-manager ];
home-manager.users.serenity = {
programs.niri.settings = {
# using the home manager module to assign binds
home-manager.users.serenity.programs.niri.settings = {
# grabs assigned rules from let bindings above
window-rules = windowRules;
layout = {
background-color = "transparent";
};
# pushes wallpaper set by noctalia to the lowest layer
layer-rules = [
{
matches = [ { namespace = "^noctalia-wallpaper*"; } ];
@ -73,5 +80,4 @@ in
];
};
};
};
}