Just: remove environment code

This commit is contained in:
Primrose 2025-05-22 23:46:12 +02:00
parent 719dd04508
commit 5fee505588
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -21,24 +21,6 @@ install host:
--file ./default.nix \
--attr "nixosConfigurations.{{ host }}"
env name action profilePath="~/.environments":
#!/usr/bin/env bash
set -euo pipefail
# 1) realize the buildEnv derivation
# 2) set the environment to it
drv=$(nix-build -E "
let sources = import ./nix/sources.nix {};
pkgs = import sources.nixpkgs {
overlays = with (import ./nix/overlays); [
packages
];
};
in pkgs.callPackage ./nix/environments/{{ name }}.nix {}
")
mkdir -p {{ profilePath }}
nix-env --{{ action }} "$drv" --profile {{ profilePath }}"/{{ name }}"
update:
niv update nixpkgs
niv update nur