diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-04-27 16:49:46 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-04-27 16:49:46 +0900 |
| commit | 3c8d630bd5ada8c8830f548dde783bffcff5c8a4 (patch) | |
| tree | a7b873e6762b7f846d0462c3bf88a123eb734ca5 | |
| parent | df3d67c83bd97c66f6e9eab42117444c4dbc6fc6 (diff) | |
| download | dotfiles-3c8d630bd5ada8c8830f548dde783bffcff5c8a4.tar.gz dotfiles-3c8d630bd5ada8c8830f548dde783bffcff5c8a4.tar.zst dotfiles-3c8d630bd5ada8c8830f548dde783bffcff5c8a4.zip | |
nix: use my own nur-packages
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | flake.lock | 45 | ||||
| -rw-r--r-- | flake.nix | 11 | ||||
| -rw-r--r-- | home-manager/home.nix | 3 | ||||
| -rw-r--r-- | mitamae/default.rb | 4 |
5 files changed, 57 insertions, 9 deletions
@@ -30,9 +30,6 @@ $ sudo adduser $(whoami) docker $ cargo install alacritty -$ cd ~/src/reparojson -$ cargo install --path . - $ cd ~/src/git-helpers $ go install ./cmd/... ``` @@ -55,12 +55,34 @@ "type": "github" } }, + "nur-packages": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ], + "treefmt-nix": "treefmt-nix" + }, + "locked": { + "lastModified": 1745739267, + "narHash": "sha256-SPZuyHC7uEg+m//ofO9XqHQcGR90GL5xwTwn2P3wxOI=", + "owner": "nsfisis", + "repo": "nur-packages", + "rev": "939f02ceab3cecf66a399e50e72af46e4d277bd1", + "type": "github" + }, + "original": { + "owner": "nsfisis", + "repo": "nur-packages", + "type": "github" + } + }, "root": { "inputs": { "flake-utils": "flake-utils", "home-manager": "home-manager", "nixpkgs": "nixpkgs", - "treefmt-nix": "treefmt-nix" + "nur-packages": "nur-packages", + "treefmt-nix": "treefmt-nix_2" } }, "systems": { @@ -81,6 +103,27 @@ "treefmt-nix": { "inputs": { "nixpkgs": [ + "nur-packages", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1744961264, + "narHash": "sha256-aRmUh0AMwcbdjJHnytg1e5h5ECcaWtIFQa6d9gI85AI=", + "owner": "numtide", + "repo": "treefmt-nix", + "rev": "8d404a69efe76146368885110f29a2ca3700bee6", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "treefmt-nix", + "type": "github" + } + }, + "treefmt-nix_2": { + "inputs": { + "nixpkgs": [ "nixpkgs" ] }, @@ -19,6 +19,11 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + nur-packages = { + url = "github:nsfisis/nur-packages"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; @@ -30,6 +35,7 @@ nixpkgs, flake-utils, treefmt-nix, + nur-packages, home-manager, ... }: @@ -55,7 +61,10 @@ }: home-manager.lib.homeManagerConfiguration { pkgs = import nixpkgs { inherit system; }; - extraSpecialArgs = { inherit env; }; + extraSpecialArgs = { + inherit env; + nurpkgs = nur-packages.legacyPackages.${system}; + }; modules = [ ./home-manager/home.nix ]; diff --git a/home-manager/home.nix b/home-manager/home.nix index 046efca..30b09b3 100644 --- a/home-manager/home.nix +++ b/home-manager/home.nix @@ -62,6 +62,9 @@ in pkgs.nodePackages.pnpm pkgs.nodePackages.typescript-language-server pkgs.nodePackages.yarn + + specialArgs.nurpkgs.hgrep + specialArgs.nurpkgs.reparojson ] ++ ( let diff --git a/mitamae/default.rb b/mitamae/default.rb index a2b56a5..061f1a9 100644 --- a/mitamae/default.rb +++ b/mitamae/default.rb @@ -73,10 +73,6 @@ execute "rustup: install nightly toolchain" do command "rustup toolchain install nightly" not_if "rustup toolchain list | grep nightly" end -execute "cargo: install hgrep" do - command "cargo install hgrep" - not_if "type hgrep" -end if node[:profile] == "private" package "pkg-config" |
