Rewriting the config in pure nix (noctalia)

This commit is contained in:
Alexandre 2026-07-19 00:10:03 +02:00
parent 92c389b26a
commit 7f060d8696
3 changed files with 45 additions and 5 deletions

View File

@ -9,6 +9,8 @@
systemPackages = with pkgs; [
wofi
firefox
syncthing
self.packages.${pkgs.stdenv.hostPlatform.system}.myNoctalia
];
};
};
@ -23,6 +25,10 @@
spawn-at-startup = [
noctaliaPath
];
spawn-sh-at-startup = [
"syncthing --no-browser"
];
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
prefer-no-csd = {};
input = {
@ -45,7 +51,7 @@
"Mod+Return".spawn-sh = lib.getExe pkgs.kitty;
"Mod+Space".spawn = [ "wofi" "--show" "drun"];
"Mod+Shift+R".spawn = [ "zen" ];
"Mod".spawn-sh = "${noctaliaPath} ipc call controlCenter toggle";
"Mod+I".spawn-sh = "${noctaliaPath} ipc call controlCenter toggle";
"Mod+L".spawn-sh = "${noctaliaPath} ipc call sessionMenu lock";
# Default binds

View File

@ -3,9 +3,43 @@
perSystem = { pkgs, lib, ... }: {
packages.myNoctalia = inputs.wrapper-modules.wrappers.noctalia-shell.wrap {
inherit pkgs;
settings =
(builtins.fromJSON
(builtins.readFile ./noctalia.json)).settings;
settings = {
bar = {
barType = "floating";
position = "left";
monitors = [];
density = "compact";
showOutline = false;
showCapsule = true;
capsuleOpacity = 1;
capsuleColorKey = "none";
widgetSpacing = 6;
contentPadding = 2;
fontScale = 1;
enableExclusionZoneInset = true;
backgroundOpacity = 0.93;
useSeparateOpacity = false;
marginVertical = 4;
marginHorizontal = 4;
frameThickness = 8;
frameRadius = 12;
outerCorners = true;
hideOnOverview = false;
displayMode = "always_visible";
autoHideDelay = 500;
autoShowDelay = 150;
showOnWorkspaceSwitch = true;
widgets = {
left = [
{
colorizedDistroLogo = false;
}
];
};
};
};
#(builtins.fromJSON
# (builtins.readFile ./noctalia.json)).settings;
};
};
}

2
result
View File

@ -1 +1 @@
/nix/store/yqdzrhnxhsp4y1vfd4xnv8vwvs99v19s-nixos-system-framework-26.11.20260610.9ae611a
/nix/store/nbaf6c3ada2qpnp1nm0iig1gvgzrn0w8-noctalia-shell-4.7.7