refactor(homes/rafiq): replace inspect script with external nixspect

This commit is contained in:
Mohammad Rafiq 2025-05-20 15:22:27 +08:00
parent 6e3b835f8c
commit ca683d74d1
No known key found for this signature in database
4 changed files with 41 additions and 9 deletions

41
flake.lock generated
View file

@ -7,11 +7,11 @@
]
},
"locked": {
"lastModified": 1747621015,
"narHash": "sha256-j0fo1rNxZvmFLMaE945UrbLJZAHTlQmq0/QMgOP4GTs=",
"lastModified": 1747724474,
"narHash": "sha256-HG6DeCae97L0mYepwFedsLDueetX/KdihY3HvJqhwLk=",
"owner": "nix-community",
"repo": "disko",
"rev": "cec44d77d9dacf0c91d3d51aff128fefabce06ee",
"rev": "58e72c6ec29a9df611ed5cdef37db1081797a6e0",
"type": "github"
},
"original": {
@ -236,6 +236,40 @@
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1747542820,
"narHash": "sha256-GaOZntlJ6gPPbbkTLjbd8BMWaDYafhuuYRNrxCGnPJw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "292fa7d4f6519c074f0a50394dbbe69859bb6043",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixspect": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1747725629,
"narHash": "sha256-jEdIW5+SMfX6jVvx/MkMbpXLX9S2b+zsayIC1YJNAaY=",
"owner": "rrvsh",
"repo": "nixspect",
"rev": "28deacc6adeaef69f45af5c8139961a774e1600b",
"type": "github"
},
"original": {
"owner": "rrvsh",
"repo": "nixspect",
"type": "github"
}
},
"nvf": {
"inputs": {
"flake-parts": "flake-parts",
@ -268,6 +302,7 @@
"impermanence": "impermanence",
"nix-index-database": "nix-index-database",
"nixpkgs": "nixpkgs",
"nixspect": "nixspect",
"nvf": "nvf",
"snowfall-lib": "snowfall-lib",
"sops-nix": "sops-nix"

View file

@ -14,6 +14,7 @@
sops-nix.inputs.nixpkgs.follows = "nixpkgs";
nvf.url = "github:notashelf/nvf";
nvf.inputs.nixpkgs.follows = "nixpkgs";
nixspect.url = "github:rrvsh/nixspect";
};
outputs =

View file

@ -1,5 +1,6 @@
{
pkgs,
inputs,
...
}:
{
@ -22,7 +23,7 @@
devenv
pantheon.rebuild
pantheon.edit
pantheon.inspect
inputs.nixspect.packages."x86_64-linux".nixspect
];
home.persistence."/persist/home/rafiq".directories = [

View file

@ -1,5 +0,0 @@
{ pkgs, ... }:
pkgs.writeShellScriptBin "inspect" # sh
''
${pkgs.tree}/bin/tree $(nix eval --raw nixpkgs#$*.outPath)
''