treewide: format using nixfmt

Signed-off-by: Bloxx12 <charlie@charlieroot.dev>
Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
This commit is contained in:
Bloxx12 2025-07-20 01:23:48 +02:00
commit e641dfa114
Signed by: faukah
SSH key fingerprint: SHA256:jpYIt4Vkz1NBTQcks/N9OPTfTFxE6KF2W/rV7hrfrIw
113 changed files with 1545 additions and 1019 deletions

View file

@ -3,7 +3,8 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkForce mkIf;
inherit (lib.options) mkEnableOption;
inherit (config.modules.system) isGraphical;
@ -27,31 +28,28 @@
})
];
});
in {
in
{
options.modules.desktops.niri.enable = mkEnableOption "Niri, a scolling tiling wayland compositor";
config =
mkIf (cfg.enable
|| isGraphical)
{
programs.niri = {
enable = true;
package = patched-niri;
};
# The niri module auto enables the gnome keyring,
# which is something I direly want to avoid.
services.gnome.gnome-keyring.enable = mkForce false;
environment.etc."niri/config.kdl".source = ./config.kdl;
environment.systemPackages = builtins.attrValues {
inherit
(pkgs)
xwayland-satellite
avizo
playerctl
wl-clipboard
;
};
config = mkIf (cfg.enable || isGraphical) {
programs.niri = {
enable = true;
package = patched-niri;
};
# The niri module auto enables the gnome keyring,
# which is something I direly want to avoid.
services.gnome.gnome-keyring.enable = mkForce false;
environment.etc."niri/config.kdl".source = ./config.kdl;
environment.systemPackages = builtins.attrValues {
inherit (pkgs)
xwayland-satellite
avizo
playerctl
wl-clipboard
;
};
};
}

View file

@ -3,10 +3,12 @@
lib,
pkgs,
...
}: let
}:
let
inherit (lib.modules) mkIf;
inherit (lib.lists) optional;
in {
in
{
xdg.portal = {
enable = true;
# Sets environment variable NIXOS_XDG_OPEN_USE_PORTAL to 1.
@ -26,7 +28,7 @@ in {
"org.freedesktop.impl.portal.Secret" = [
"kwallet"
];
"org.freedesktop.secrets" = ["kwalletd6"];
"org.freedesktop.secrets" = [ "kwalletd6" ];
};
niri = {
default = [
@ -38,7 +40,7 @@ in {
# https://docs.flatpak.org/en/latest/portal-api-reference.html
# "org.freedesktop.impl.portal.Access" = ["kde"];
# "org.freedesktop.impl.portal.Notification" = ["kde"];
"org.freedesktop.impl.portal.FileChooser" = ["kde"];
"org.freedesktop.impl.portal.FileChooser" = [ "kde" ];
};
};
};

View file

@ -2,12 +2,14 @@
config,
lib,
...
}: let
}:
let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;
cfg = config.modules.wms.wayland;
in {
in
{
options.modules.wms.wayland.enable = mkEnableOption "wayland";
config = mkIf true {
environment.variables = {