about summary refs log tree commit diff
path: root/nixos/rebuild.nix
blob: 57c3e71f912bd66a8420ce2cc737218017625049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
{ 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
''