diff --git a/flake.lock b/flake.lock index eb81b74..729d65a 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,29 @@ { "nodes": { + "angrr": { + "inputs": { + "flake-compat": "flake-compat", + "flake-parts": "flake-parts", + "nix-darwin": "nix-darwin", + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1764951243, + "narHash": "sha256-BqPXmlbgStfxmzmZTbPTUj2XW6f2Dgt6Ghi+M0C/rik=", + "owner": "linyinfeng", + "repo": "angrr", + "rev": "d6f49eff3233d91c8235134ee1d4923b2c4229c9", + "type": "github" + }, + "original": { + "owner": "linyinfeng", + "repo": "angrr", + "type": "github" + } + }, "base16": { "inputs": { "fromYaml": "fromYaml" @@ -165,7 +189,7 @@ "devenv": { "inputs": { "cachix": "cachix", - "flake-compat": "flake-compat", + "flake-compat": "flake-compat_2", "git-hooks": "git-hooks", "nix": "nix", "nixpkgs": "nixpkgs_4" @@ -222,6 +246,22 @@ } }, "flake-compat": { + "flake": false, + "locked": { + "lastModified": 1764712249, + "narHash": "sha256-DhsrZsMebdvpjZC2EzPsqiLGI84tD7kZz7zc6tTCmqg=", + "owner": "edolstra", + "repo": "flake-compat", + "rev": "3b279e4317ccfa4865356387935310531357d919", + "type": "github" + }, + "original": { + "owner": "edolstra", + "repo": "flake-compat", + "type": "github" + } + }, + "flake-compat_2": { "flake": false, "locked": { "lastModified": 1696426674, @@ -237,7 +277,7 @@ "type": "github" } }, - "flake-compat_2": { + "flake-compat_3": { "flake": false, "locked": { "lastModified": 1761588595, @@ -254,6 +294,27 @@ } }, "flake-parts": { + "inputs": { + "nixpkgs-lib": [ + "angrr", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1763759067, + "narHash": "sha256-LlLt2Jo/gMNYAwOgdRQBrsRoOz7BPRkzvNaI/fzXi2Q=", + "owner": "hercules-ci", + "repo": "flake-parts", + "rev": "2cccadc7357c0ba201788ae99c4dfa90728ef5e0", + "type": "github" + }, + "original": { + "owner": "hercules-ci", + "repo": "flake-parts", + "type": "github" + } + }, + "flake-parts_2": { "inputs": { "nixpkgs-lib": [ "go-musicfox", @@ -276,7 +337,7 @@ "type": "github" } }, - "flake-parts_2": { + "flake-parts_3": { "inputs": { "nixpkgs-lib": "nixpkgs-lib" }, @@ -293,7 +354,7 @@ "type": "indirect" } }, - "flake-parts_3": { + "flake-parts_4": { "inputs": { "nixpkgs-lib": [ "stylix", @@ -449,7 +510,7 @@ "go-musicfox": { "inputs": { "devenv": "devenv", - "flake-parts": "flake-parts_2", + "flake-parts": "flake-parts_3", "flake-root": "flake-root", "mission-control": "mission-control", "mk-shell-bin": "mk-shell-bin", @@ -717,7 +778,7 @@ "go-musicfox", "devenv" ], - "flake-parts": "flake-parts", + "flake-parts": "flake-parts_2", "libgit2": "libgit2", "nixpkgs": "nixpkgs_3", "nixpkgs-23-11": [ @@ -748,6 +809,27 @@ "type": "github" } }, + "nix-darwin": { + "inputs": { + "nixpkgs": [ + "angrr", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1764161084, + "narHash": "sha256-HN84sByg9FhJnojkGGDSrcjcbeioFWoNXfuyYfJ1kBE=", + "owner": "nix-darwin", + "repo": "nix-darwin", + "rev": "e95de00a471d07435e0527ff4db092c84998698e", + "type": "github" + }, + "original": { + "owner": "nix-darwin", + "repo": "nix-darwin", + "type": "github" + } + }, "nix-github-actions": { "inputs": { "nixpkgs": [ @@ -795,7 +877,7 @@ }, "nixos-wsl": { "inputs": { - "flake-compat": "flake-compat_2", + "flake-compat": "flake-compat_3", "nixpkgs": [ "nixpkgs" ] @@ -1067,6 +1149,7 @@ }, "root": { "inputs": { + "angrr": "angrr", "catppuccin": "catppuccin", "chaotic": "chaotic", "darkly": "darkly", @@ -1159,7 +1242,7 @@ "base16-helix": "base16-helix", "base16-vim": "base16-vim", "firefox-gnome-theme": "firefox-gnome-theme", - "flake-parts": "flake-parts_3", + "flake-parts": "flake-parts_4", "gnome-shell": "gnome-shell", "nixpkgs": [ "nixpkgs" @@ -1315,6 +1398,27 @@ "type": "github" } }, + "treefmt-nix": { + "inputs": { + "nixpkgs": [ + "angrr", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1762938485, + "narHash": "sha256-AlEObg0syDl+Spi4LsZIBrjw+snSVU4T8MOeuZJUJjM=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "5b4ee75aeefd1e2d5a1cc43cf6ba65eba75e83e4", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, "xwayland-satellite-stable": { "flake": false, "locked": { diff --git a/flake.nix b/flake.nix index 8a82945..5eacc0c 100644 --- a/flake.nix +++ b/flake.nix @@ -68,6 +68,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + angrr = { + url = "github:linyinfeng/angrr"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + plant = { url = "git+ssh://git@git.imxyy.top:2222/imxyy1soope1/HF-plant.git?rev=08dc0b3889797eb3618c7475c3c367ec0e5fdf40"; flake = false; @@ -242,6 +247,7 @@ inputs.home-manager.nixosModules.default inputs.niri.nixosModules.niri inputs.catppuccin.nixosModules.catppuccin + inputs.angrr.nixosModules.angrr home pkgsConf ]; diff --git a/modules/nix.nix b/modules/nix.nix index 5c61f65..8c8ad2f 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -74,5 +74,15 @@ lib.my.makeSwitch { options = "--delete-older-than 30d"; }; */ + + services.angrr = { + enable = true; + period = "1month"; + }; + my.hm.xdg.configFile."direnv/lib/angrr.sh".source = + "${config.services.angrr.package}/share/direnv/lib/angrr.sh"; + my.hm.programs.direnv.stdlib = '' + use angrr + ''; }; }