fix: move hyprland portal stuff to hypr.nix

This commit is contained in:
jacekpoz 2023-10-14 19:18:21 +02:00
parent 2035ca60fd
commit 01c8a12eea
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 9 additions and 9 deletions

View file

@ -245,14 +245,6 @@
cpu.amd.updateMicrocode = true;
};
xdg.portal = {
enable = true;
extraPortals = [
inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland
pkgs.xdg-desktop-portal-gtk
];
};
services.btrfs = {
autoScrub = {
enable = true;

View file

@ -19,17 +19,25 @@
inherit (inputs.shadower.packages.${pkgs.system}) shadower;
inherit (inputs.hyprland.packages.${pkgs.system}) hyprland;
in {
options.myOptions.programs.hyprland = {
enable = mkEnableOption "enable hiper ląd";
};
imports = [ inputs.hyprland.nixosModules.default ];
config = mkIf cfg.enable {
nix.settings = {
substituters = [ "https://hyprland.cachix.org" ];
trusted-public-keys = [ "hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=" ];
};
xdg.portal = {
enable = true;
extraPortals = [
pkgs.xdg-desktop-portal-gtk
];
};
home-manager.users.${config'.username} = {
imports = [ inputs.hyprland.homeManagerModules.default ];