add portal to configpackages?

This commit is contained in:
Noa Aarts 2024-11-26 17:55:19 +01:00
parent 2c7eefe6fb
commit d762eb72f8
Signed by: noa
GPG key ID: 1850932741EFF672
2 changed files with 16 additions and 10 deletions

View file

@ -135,11 +135,18 @@ in
username = me.nickname; username = me.nickname;
}; };
# If I have a monitor I want niri with my config, but niri wants it at that spot xdg = {
xdg.configFile = lib.mkIf enableGraphical { portal = {
"niri/config.kdl".source = import ../../packages/niri-config/default.nix { enable = true;
inherit pkgs inputs displays; extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
self-pkgs = inputs.self.packages.${pkgs.system}; configPackages = [ pkgs.niri ];
};
# If I have a monitor I want niri with my config, but niri wants it at that spot
configFile = lib.mkIf enableGraphical {
"niri/config.kdl".source = import ../../packages/niri-config/default.nix {
inherit pkgs inputs displays;
self-pkgs = inputs.self.packages.${pkgs.system};
};
}; };
}; };

View file

@ -173,11 +173,10 @@
maple-mono-NF maple-mono-NF
]; ];
xdg = { xdg.portal = {
portal = { enable = true;
enable = true; extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
extraPortals = [ pkgs.xdg-desktop-portal-gnome ]; configPackages = [ pkgs.niri ];
};
}; };
programs = { programs = {