Working on reshuffling
This commit is contained in:
1 parent
c7035346fa
commit
07c1988be8
2 files changed
+64
-22
No files matched your search
@@ -1,16 +1,37 @@
|
||||
{ config, pkgs, lib, user, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
home-manager.users.${user.username} = {
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
||||
config.hyprland = {
|
||||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
||||
flake.nixosModules.wayland = { config, pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
username = "henrov"; # <-- simpel en stabiel
|
||||
in
|
||||
{
|
||||
options.mySystem.desktop.wayland.enable =
|
||||
lib.mkEnableOption "Enable Wayland + portals";
|
||||
|
||||
config = lib.mkIf (config.mySystem.desktop.wayland.enable or false) {
|
||||
|
||||
home-manager.users.${username} = {
|
||||
|
||||
xdg.portal = {
|
||||
enable = true;
|
||||
|
||||
extraPortals = with pkgs; [
|
||||
xdg-desktop-portal-hyprland
|
||||
];
|
||||
|
||||
config.hyprland = {
|
||||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
uwsm
|
||||
];
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
uwsm
|
||||
];
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user