nix: fish: setup nix-your-shell
Anirudh Oppiliappan x@icyphox.sh
Sun, 23 Jun 2024 23:04:17 +0300
3 files changed,
84 insertions(+),
0 deletions(-)
M
flake.lock
→
flake.lock
@@ -1,5 +1,42 @@
{ "nodes": { + "advisory-db": { + "flake": false, + "locked": { + "lastModified": 1710515894, + "narHash": "sha256-tmQ9TMCb2jZY3jYdf53qIberkYV3dnUzdAYYK/NB+No=", + "owner": "rustsec", + "repo": "advisory-db", + "rev": "369d98c1b95b7b56d0859605916d7b81a7d1f1c4", + "type": "github" + }, + "original": { + "owner": "rustsec", + "repo": "advisory-db", + "type": "github" + } + }, + "crane": { + "inputs": { + "nixpkgs": [ + "nix-your-shell", + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1710886643, + "narHash": "sha256-saTZuv9YeZ9COHPuj8oedGdUwJZcbQ3vyRqe7NVJMsQ=", + "owner": "ipetkov", + "repo": "crane", + "rev": "5bace74e9a65165c918205cf67ad3977fe79c584", + "type": "github" + }, + "original": { + "owner": "ipetkov", + "repo": "crane", + "type": "github" + } + }, "darwin": { "inputs": { "nixpkgs": [@@ -100,6 +137,29 @@ "repo": "nix-snapshotter",
"type": "github" } }, + "nix-your-shell": { + "inputs": { + "advisory-db": "advisory-db", + "crane": "crane", + "nixpkgs": [ + "nixpkgs" + ], + "systems": "systems" + }, + "locked": { + "lastModified": 1717612968, + "narHash": "sha256-aOBFbhPW0Y9TyXL0Peb9V1ZcPw/0QqdsFMTZ1W/+KeM=", + "owner": "MercuryTechnologies", + "repo": "nix-your-shell", + "rev": "8d55e745700207b54f1432e942351881804b4721", + "type": "github" + }, + "original": { + "owner": "MercuryTechnologies", + "repo": "nix-your-shell", + "type": "github" + } + }, "nixos-hardware": { "locked": { "lastModified": 1716798306,@@ -156,9 +216,25 @@ "inputs": {
"darwin": "darwin", "home-manager": "home-manager", "nix-snapshotter": "nix-snapshotter", + "nix-your-shell": "nix-your-shell", "nixos-hardware": "nixos-hardware", "nixpkgs": "nixpkgs", "prompt": "prompt" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" } } },
M
flake.nix
→
flake.nix
@@ -26,6 +26,11 @@ nix-snapshotter = {
url = "github:pdtpartners/nix-snapshotter"; inputs.nixpkgs.follows = "nixpkgs"; }; + + nix-your-shell = { + url = "github:MercuryTechnologies/nix-your-shell"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs =@@ -33,6 +38,7 @@ { self
, nixpkgs , nixos-hardware , nix-snapshotter + , nix-your-shell , home-manager , prompt , darwin@@ -94,6 +100,7 @@ modules = [
{ imports = [ ./hosts/wyndle/configuration.nix ]; _module.args.self = self; + nixpkgs.overlays = [ nix-your-shell.overlays.default ]; } home-manager.nixosModules.home-manager {
M
programs/fish.nix
→
programs/fish.nix
@@ -7,6 +7,7 @@ {
programs.fish = { enable = true; interactiveShellInit = '' + nix-your-shell fish | source set fish_greeting # Disable greeting ''; functions = {