From daadeccc4575eb085ceef07d2549391c1e373996 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 20 Aug 2023 13:12:48 +0200 Subject: [PATCH] Add hyprland + test config --- home/default.nix | 1 + home/hyprland/default.nix | 19 +++++++++---------- hosts/nixos-test/default.nix | 3 ++- modules/hyprland.nix | 15 +++++++++++++++ 4 files changed, 27 insertions(+), 11 deletions(-) create mode 100644 modules/hyprland.nix diff --git a/home/default.nix b/home/default.nix index afb3b0c..ef76647 100644 --- a/home/default.nix +++ b/home/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./hyprland ./programs ]; diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 6436647..8a25c1c 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -1,13 +1,12 @@ -{ - pkgs, - inputs, - ... -} @ args: { - home.packages = []; +{ pkgs, ... }: { + + xdg.configFile."hypr/set-bg" = { + executable = true; + text = '' + #!/usr/bin/env bash - wayland.windowManager.hyprland = { - enable = true; - package = inputs.hyprland.packages.${pkgs.system}.default; - # settings = import ./settings.nix args; + echo "Salut" + ''; }; + } \ No newline at end of file diff --git a/hosts/nixos-test/default.nix b/hosts/nixos-test/default.nix index ba0bc0d..bae5667 100644 --- a/hosts/nixos-test/default.nix +++ b/hosts/nixos-test/default.nix @@ -9,7 +9,8 @@ [ ../../modules/system.nix ../../modules/pipewire.nix - + ../../modules/hyprland.nix + # Include the results of the hardware scan. ./hardware-configuration.nix ]; diff --git a/modules/hyprland.nix b/modules/hyprland.nix new file mode 100644 index 0000000..3344504 --- /dev/null +++ b/modules/hyprland.nix @@ -0,0 +1,15 @@ +{ pkgs, ... }: + +{ + programs.hyprland.enable = true; + + services.udisks2 = { + enable = true; + mountOnMedia = true; + }; + + services.xserver = { + enable = true; + excludePackages = [ pkgs.xterm ]; + }; +} \ No newline at end of file