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,13 +135,20 @@ in
username = me.nickname; username = me.nickname;
}; };
xdg = {
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-gnome ];
configPackages = [ pkgs.niri ];
};
# If I have a monitor I want niri with my config, but niri wants it at that spot # If I have a monitor I want niri with my config, but niri wants it at that spot
xdg.configFile = lib.mkIf enableGraphical { configFile = lib.mkIf enableGraphical {
"niri/config.kdl".source = import ../../packages/niri-config/default.nix { "niri/config.kdl".source = import ../../packages/niri-config/default.nix {
inherit pkgs inputs displays; inherit pkgs inputs displays;
self-pkgs = inputs.self.packages.${pkgs.system}; self-pkgs = inputs.self.packages.${pkgs.system};
}; };
}; };
};
# Needed for like spotify or something # Needed for like spotify or something
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

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 = {