updates
This commit is contained in:
parent
a5fa2f1e63
commit
cf18909213
3 changed files with 10 additions and 4 deletions
|
|
@ -41,6 +41,9 @@
|
||||||
(pkgs.writeShellScriptBin "deploy_i001" ''
|
(pkgs.writeShellScriptBin "deploy_i001" ''
|
||||||
NIX_SSHOPTS="-i /run/agenix/nix2nix" nixos-rebuild --flake $(git rev-parse --show-toplevel)'/hosts/i001' --target-host root@10.12.14.119 --use-substitutes --no-reexec switch
|
NIX_SSHOPTS="-i /run/agenix/nix2nix" nixos-rebuild --flake $(git rev-parse --show-toplevel)'/hosts/i001' --target-host root@10.12.14.119 --use-substitutes --no-reexec switch
|
||||||
'')
|
'')
|
||||||
|
(pkgs.writeShellScriptBin "deploy_h002" ''
|
||||||
|
NIX_SSHOPTS="-i /run/agenix/nix2nix" nixos-rebuild --flake $(git rev-parse --show-toplevel)'/hosts/h002' --target-host root@10.12.14.183 --use-substitutes --no-reexec switch
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
hosts/h002/flake.lock
generated
8
hosts/h002/flake.lock
generated
|
|
@ -3,11 +3,11 @@
|
||||||
"common": {
|
"common": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"dir": "flakes/common",
|
"dir": "flakes/common",
|
||||||
"lastModified": 1766101096,
|
"lastModified": 1766101431,
|
||||||
"narHash": "sha256-fOPGpgrgt4pNKzdpA+Xc/c3lev6Af2gM2ge2Gh4H9pk=",
|
"narHash": "sha256-96UMxqqZjI9L9SEBwL3yxbJBH5NC9Gq+kgAS4GQaWqE=",
|
||||||
"ref": "refs/heads/master",
|
"ref": "refs/heads/master",
|
||||||
"rev": "acfec76a791abf5bcef22240a1e559e8e5e49004",
|
"rev": "a5fa2f1e63efc1111940bf2c636e4043381886cd",
|
||||||
"revCount": 957,
|
"revCount": 959,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
"url": "https://git.joshuabell.xyz/ringofstorms/dotfiles"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,9 @@ nixos-generate-config --root /mnt
|
||||||
```sh
|
```sh
|
||||||
# If setup remotely we can install remotely as well like this
|
# If setup remotely we can install remotely as well like this
|
||||||
nixos-install --flake "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=hosts/i001#i001"
|
nixos-install --flake "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=hosts/i001#i001"
|
||||||
|
nixos-install --flake "git+https://git.joshuabell.xyz/ringofstorms/dotfiles?dir=hosts/h002#h002"
|
||||||
|
# or push from more powerful machine
|
||||||
|
# TODO how do I do this for initial install? nixos-anywhere?
|
||||||
```
|
```
|
||||||
|
|
||||||
- After boot
|
- After boot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue