all repos — nixfiles @ 6b4469a98d7b2d88a3442b1051174000538199f0

System and user configuration, managed by nix and home-manager

de-flake local systems

Alan Pearce
commit

6b4469a98d7b2d88a3442b1051174000538199f0

parent

9fdde0d36aa52e10b0d587aea37b65bc14adfc85

1 file changed, 26 insertions(+), 2 deletions(-)

changed files
M shell.nixshell.nix
@@ -1,3 +1,27 @@
-{ system ? builtins.currentSystem }: +let + + sources = import ./nix/sources.nix; + + nixpkgs = sources.nixpkgs; -(builtins.getFlake (toString ./.)).devShells.${system}.default + pkgs = import nixpkgs { }; + +in +pkgs.mkShell rec { + + name = "nixfiles-shell"; + + buildInputs = with pkgs; [ + niv + deploy-rs + (pkgs.callPackage "${sources.agenix}/pkgs/agenix.nix" { }) + (import sources.home-manager { inherit pkgs; }).home-manager + ]; + + shellHook = '' + export HOST=$(hostname) + export NIX_PATH="nixpkgs=${nixpkgs}:home-manager=${sources."home-manager"}:darwin=${sources.nix-darwin}:darwin-config=$PWD/system/$HOST.nix:private=$PWD/private:nixpkgs-overlays=$PWD/overlays:nix-index-database=${sources.nix-index-database}"; + export HOME_MANAGER_CONFIG="./user/$HOST.nix" + ''; + +}