more dendritic work

This commit is contained in:
serenity-F 2026-04-22 20:37:29 +10:00
parent f1e04d3557
commit 351356d575
No known key found for this signature in database
2 changed files with 12 additions and 18 deletions

View file

@ -8,23 +8,30 @@
};
perSystem = { pkgs, lib, self',... }: {
packages.myNiri = inputs.wrapper-modules.wrappers.niri.wrap {
inherit pkgs;
settings = {
xwayland-satellite.path = lib.getExe pkgs.xwayland-satellite;
spawn-at-startup = [
# Makes our custom noctalia a dependency and spawns it at startup
(lib.getExe self'.packages.myNoctalia)
];
input.keyboard.xkb.layout = "us";
binds = {
# Terminal bind
"Mod+Return".spawn-sh = lib.getExe self'.packages.myKitty;
# Launcher bind
"Mod+Tab".spawn-sh = "${lib.getExe self.packages.myNoctalia} ipc call launcher toggle";
# Window control binds
"Mod+Q".close-window = null;
};
layout = {
gaps = 5;
foo = 20;
};
};

View file

@ -1,24 +1,11 @@
{ self, inputs, ... }: {
flake.nixosModules.niri = { pkgs, lib, ... }: {
programs.noctalia-shell = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.myNoctalia;
};
};
perSystem = { pkgs, ... }: {
packages.myNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
inherit pkgs;
settings = {
foo = bar;
foorbar = {
bar = true;
foo = "always";
barbar = 5;
};
};
settings = (builtins.fromJSON (builtins.readFile
./noctalia.json
)).settings;
};
};