6a076e8329
At the moment, I don't think nixos-rebuild is reading $NIX_PATH, which appropriately sets the paths for depot and briefcase. I'm going to explicitly expose these values in the rebuild script for now.
11 lines
310 B
Nix
11 lines
310 B
Nix
{ pkgs ? import <nixpkgs> {}, ... }:
|
|
|
|
pkgs.writeShellScriptBin "rebuild" ''
|
|
set -ue
|
|
sudo nixos-rebuild \
|
|
-I nixos-config=/home/wpcarro/briefcase/nixos/configuration.nix \
|
|
-I nixpkgs=/home/wpcarro/nixpkgs \
|
|
-I depot=/home/wpcarro/depot \
|
|
-I briefcase=/home/wpcarro/briefcase \
|
|
switch
|
|
''
|