Working on reshuffling
This commit is contained in:
+32
-11
@@ -1119,22 +1119,43 @@ settings = {
|
|||||||
** =generated/modules/desktop/wayland.nix=
|
** =generated/modules/desktop/wayland.nix=
|
||||||
This file sets up wayland
|
This file sets up wayland
|
||||||
#+BEGIN_SRC nix :tangle generated/modules/desktop/wayland.nix :noweb tangle :mkdirp yes :eval never-html
|
#+BEGIN_SRC nix :tangle generated/modules/desktop/wayland.nix :noweb tangle :mkdirp yes :eval never-html
|
||||||
{ config, pkgs, lib, user, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.${user.username} = {
|
flake.nixosModules.wayland = { config, pkgs, lib, ... }:
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
let
|
||||||
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
username = "henrov"; # <-- simpel en stabiel
|
||||||
config.hyprland = {
|
in
|
||||||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
{
|
||||||
|
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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** =generated/modules/apps/thunar.nix=
|
** =generated/modules/apps/thunar.nix=
|
||||||
|
|||||||
@@ -1,16 +1,37 @@
|
|||||||
{ config, pkgs, lib, user, ... }:
|
{ lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.${user.username} = {
|
flake.nixosModules.wayland = { config, pkgs, lib, ... }:
|
||||||
xdg.portal = {
|
|
||||||
enable = true;
|
let
|
||||||
extraPortals = with pkgs; [ xdg-desktop-portal-hyprland ];
|
username = "henrov"; # <-- simpel en stabiel
|
||||||
config.hyprland = {
|
in
|
||||||
"org.freedesktop.impl.portal.Screencast" = [ "hyprland" ];
|
{
|
||||||
|
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