From 372515bfb4005d0619040ac5b306d17a3a6287a1 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 20 Aug 2023 01:09:30 +0200 Subject: [PATCH] Update + begin add hyprland --- README.md | 5 ++++- flake.nix | 12 ++++++++++-- home/hyprland/default.nix | 13 +++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 home/hyprland/default.nix diff --git a/README.md b/README.md index adc3267..db61d9b 100644 --- a/README.md +++ b/README.md @@ -4,4 +4,7 @@ nixos-rebuild switch --flake flake_path_directory#hostname ``` -https://github.com/ryan4yin/nix-config/tree/v0.0.2 +# Sources + +- https://github.com/ryan4yin/nix-config/tree/v0.0.2 +- https://github.com/LudovicoPiero/dotfiles diff --git a/flake.nix b/flake.nix index 9b3ef10..aeccc4b 100644 --- a/flake.nix +++ b/flake.nix @@ -7,8 +7,16 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - home-manager.url = "github:nix-community/home-manager"; - home-manager.inputs.nixpkgs.follows = "nixpkgs"; + + home-manager = { + url = "github:nix-community/home-manager"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + hyprland = { + url = "github:hyprwm/hyprland"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = inputs@{ diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix new file mode 100644 index 0000000..6436647 --- /dev/null +++ b/home/hyprland/default.nix @@ -0,0 +1,13 @@ +{ + pkgs, + inputs, + ... +} @ args: { + home.packages = []; + + wayland.windowManager.hyprland = { + enable = true; + package = inputs.hyprland.packages.${pkgs.system}.default; + # settings = import ./settings.nix args; + }; +} \ No newline at end of file