mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
Just: remove environment code
This commit is contained in:
parent
719dd04508
commit
5fee505588
1 changed files with 0 additions and 18 deletions
18
Justfile
18
Justfile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue