From ad48ceb007b1776d02ba38a307e4fb9e1c5e0cfd Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Sun, 24 Mar 2024 20:39:49 +0100 Subject: [PATCH] [hyprland] set includes in nix configuration --- docs/install/readme.md | 7 ------- nix/home/default.nix | 1 + nix/home/hyprland/default.nix | 1 + nix/home/hyprland/hyprland.nix | 13 +++++++++++++ 4 files changed, 15 insertions(+), 7 deletions(-) create mode 100644 nix/home/hyprland/default.nix create mode 100644 nix/home/hyprland/hyprland.nix diff --git a/docs/install/readme.md b/docs/install/readme.md index dd0a405..12f4556 100644 --- a/docs/install/readme.md +++ b/docs/install/readme.md @@ -62,13 +62,6 @@ Clone dotfiles git clone https://git.simoncor.net/siempie/dotfiles-nix.git ~/.dotfiles ``` -Hyprland -``` -mkdir -p ~/.config/hypr -rm -rf ~/.config/hypr/hyprland -ln -s ~/.dotfiles/hyprland/hyprland.conf ~/.config/hypr/hyprland.conf -``` - Login to all apps ``` bitwarden diff --git a/nix/home/default.nix b/nix/home/default.nix index 242d2ee..c0ca639 100644 --- a/nix/home/default.nix +++ b/nix/home/default.nix @@ -6,6 +6,7 @@ ./alacritty ./clipse ./git + ./hyprland ./mpv ./ssh ./theme diff --git a/nix/home/hyprland/default.nix b/nix/home/hyprland/default.nix new file mode 100644 index 0000000..8b5ce40 --- /dev/null +++ b/nix/home/hyprland/default.nix @@ -0,0 +1 @@ +{ ... }: { imports = [ ./hyprland.nix ]; } diff --git a/nix/home/hyprland/hyprland.nix b/nix/home/hyprland/hyprland.nix new file mode 100644 index 0000000..7a556d3 --- /dev/null +++ b/nix/home/hyprland/hyprland.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: +{ + + # include hyprland configs + home.file.".config/hypr/hyprland.conf".text = '' + source = ~/.dotfiles/hyprland/conf.d/executions.conf + source = ~/.dotfiles/hyprland/conf.d/general.conf + source = ~/.dotfiles/hyprland/conf.d/graphics.conf + source = ~/.dotfiles/hyprland/conf.d/input.conf + source = ~/.dotfiles/hyprland/conf.d/window_rules.conf + source = ~/.dotfiles/hyprland/conf.d/bindings.conf + ''; +}