c187d89f27
readTree uses the output attribute set of default.nix as the value for nixos.socrates, which disables me from resolving nixos.socrates.rebuild since there is no rebuild attribute in the output attribute set from default.nix. If I rename default.nix -> configuration.nix, I can resolve nixos.socrates.{configuration,hardware,rebuild}.
11 lines
297 B
Nix
11 lines
297 B
Nix
{ pkgs, ... }:
|
|
|
|
pkgs.writeShellScriptBin "rebuild" ''
|
|
set -ue
|
|
sudo nixos-rebuild \
|
|
-I nixos-config=/home/wpcarro/briefcase/nixos/socrates/configuration.nix \
|
|
-I nixpkgs=/home/wpcarro/nixpkgs \
|
|
-I depot=/home/wpcarro/depot \
|
|
-I briefcase=/home/wpcarro/briefcase \
|
|
switch
|
|
''
|