diff options
author | William Carroll <wpcarro@gmail.com> | 2020-02-23T22·28+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-03-01T22·32+0000 |
commit | fd720fbe4d284d0562ab32e7bb6a3f7171992c21 (patch) | |
tree | 802bf6ceaf6bd50a91397a154582f972ed7784a4 /nixos/socrates/rebuild.nix | |
parent | 6a076e8329a8befdaec817eda775b40c6ed34d56 (diff) |
Nest configuration beneath socrates directory
Create a socrates directory to store configuration for socrates.
Diffstat (limited to 'nixos/socrates/rebuild.nix')
-rw-r--r-- | nixos/socrates/rebuild.nix | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/socrates/rebuild.nix b/nixos/socrates/rebuild.nix new file mode 100644 index 000000000000..e6d885f975ca --- /dev/null +++ b/nixos/socrates/rebuild.nix @@ -0,0 +1,11 @@ +{ pkgs, ... }: + +pkgs.writeShellScriptBin "rebuild" '' + set -ue + sudo nixos-rebuild \ + -I nixos-config=/home/wpcarro/briefcase/nixos/socrates/default.nix \ + -I nixpkgs=/home/wpcarro/nixpkgs \ + -I depot=/home/wpcarro/depot \ + -I briefcase=/home/wpcarro/briefcase \ + switch +'' |