From f7a3e26124c7ac5ec83443b098a7fc135a8f48c1 Mon Sep 17 00:00:00 2001 From: sils Date: Mon, 7 Aug 2023 16:44:18 +0200 Subject: Feat(sys): Add hyprland --- sys/default.nix | 2 ++ sys/desktop/hyprland/default.nix | 6 ++++++ sys/environment/default.nix | 1 + sys/xdg/default.nix | 3 +++ 4 files changed, 12 insertions(+) create mode 100644 sys/desktop/hyprland/default.nix create mode 100644 sys/xdg/default.nix (limited to 'sys') diff --git a/sys/default.nix b/sys/default.nix index d38321a..e90e405 100644 --- a/sys/default.nix +++ b/sys/default.nix @@ -2,6 +2,7 @@ imports = [ ./desktop/gnome ./desktop/awesome + ./desktop/hyprland ./environment ./font ./impermanence @@ -12,5 +13,6 @@ ./sound ./systemd ./users + ./xdg ]; } diff --git a/sys/desktop/hyprland/default.nix b/sys/desktop/hyprland/default.nix new file mode 100644 index 0000000..f7c3ab1 --- /dev/null +++ b/sys/desktop/hyprland/default.nix @@ -0,0 +1,6 @@ +{...}: { + programs.hyprland = { + enable = true; + xwayland.enable = true; + }; +} diff --git a/sys/environment/default.nix b/sys/environment/default.nix index 4760783..bf8ec5f 100644 --- a/sys/environment/default.nix +++ b/sys/environment/default.nix @@ -19,6 +19,7 @@ GOPATH = "\${HOME}/.local/share/go"; XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose"; CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv"; + NIXOS_OZONE_WL = "1"; # wayland for electron apps #PYTHONSTARTUP="/etc/python/pythonrc"; diff --git a/sys/xdg/default.nix b/sys/xdg/default.nix new file mode 100644 index 0000000..1182d5e --- /dev/null +++ b/sys/xdg/default.nix @@ -0,0 +1,3 @@ +{...}: { + xdg.portal.enable = true; +} -- cgit 1.4.1