From 0b28ac120292625bd0fc5bd815964ce5364d3bb4 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Tue, 16 Apr 2024 23:25:52 -0400 Subject: [PATCH] Add XDG management and grimblast Signed-off-by: ahuston-0 --- flake.lock | 21 +++++++++++++++++++++ flake.nix | 5 +++++ users/alice/home.nix | 13 ++++++++++++- users/alice/systems/artemision/default.nix | 7 ++++++- 4 files changed, 44 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 23c1464..5cc25b2 100644 --- a/flake.lock +++ b/flake.lock @@ -158,6 +158,26 @@ "type": "github" } }, + "hyprland-contrib": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1712505318, + "narHash": "sha256-fzlBLhXUN6y7mzEtcGNRDXxFakBEfaj4Bmj5PuoCNaM=", + "owner": "hyprwm", + "repo": "contrib", + "rev": "5870244b592c22558b658dbaf94f9e41afb0316f", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "contrib", + "type": "github" + } + }, "libgit2": { "flake": false, "locked": { @@ -383,6 +403,7 @@ "fenix": "fenix", "flake-utils": "flake-utils", "home-manager": "home-manager", + "hyprland-contrib": "hyprland-contrib", "nix": "nix", "nix-index-database": "nix-index-database", "nix-pre-commit": "nix-pre-commit", diff --git a/flake.nix b/flake.nix index ccf9d00..c888996 100644 --- a/flake.nix +++ b/flake.nix @@ -107,6 +107,11 @@ flake-utils.follows = "flake-utils"; }; }; + + hyprland-contrib = { + url = "github:hyprwm/contrib"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = diff --git a/users/alice/home.nix b/users/alice/home.nix index 9d28d12..caecb81 100644 --- a/users/alice/home.nix +++ b/users/alice/home.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ config, pkgs, ... }: { imports = [ @@ -122,5 +122,16 @@ EDITOR = "nvim"; }; + xdg = { + enable = true; + userDirs = { + enable = true; + createDirectories = true; + extraConfig = { + XDG_SCREENSHOTS_DIR = "${config.xdg.userDirs.pictures}/Screenshots"; + }; + }; + }; + home.stateVersion = "23.11"; } diff --git a/users/alice/systems/artemision/default.nix b/users/alice/systems/artemision/default.nix index ce96045..5aaee62 100644 --- a/users/alice/systems/artemision/default.nix +++ b/users/alice/systems/artemision/default.nix @@ -11,6 +11,11 @@ # extensions = [ "rust-src" "miri" "rust-analyzer" ]; # }) ]; #}) - { environment.systemPackages = [ inputs.wired-notify.packages.x86_64-linux.default ]; } + { + environment.systemPackages = [ + inputs.wired-notify.packages.x86_64-linux.default + inputs.hyprland-contrib.packages.x86_64-linux.grimblast + ]; + } ]; }