From fdee5e94508a04a1f3aba3be1769f3c72660a3d0 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 18 Apr 2023 17:02:45 +0200 Subject: [PATCH] Add hyprland to home-manager --- nixos-config/home-hyprland.nix | 17 +++++++++++++++++ nixos-config/home-manager.nix | 4 ++++ 2 files changed, 21 insertions(+) create mode 100644 nixos-config/home-hyprland.nix diff --git a/nixos-config/home-hyprland.nix b/nixos-config/home-hyprland.nix new file mode 100644 index 00000000..cb8f3be5 --- /dev/null +++ b/nixos-config/home-hyprland.nix @@ -0,0 +1,17 @@ +{pkgs, ...}: let + flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz"; + + hyprland = (import flake-compat { + src = builtins.fetchTarball "https://github.com/hyprwm/Hyprland/archive/master.tar.gz"; + }).defaultNix; +in { + imports = [ + hyprland.homeManagerModules.default + ]; + + wayland.windowManager.hyprland = { + enable = true; + + extraConfig = (builtins.readFile ./config/hypr/hyprland.conf); + }; +} diff --git a/nixos-config/home-manager.nix b/nixos-config/home-manager.nix index ef3e4f50..d578b01e 100644 --- a/nixos-config/home-manager.nix +++ b/nixos-config/home-manager.nix @@ -18,6 +18,10 @@ in kitty # terminfo support ]; + imports = [ + ./home-hyprland.nix + ]; + programs = { fish = { enable = true;