No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
2 changed files with
11 additions and
4 deletions
-
flake.nix
-
readme.md
|
@ -49,6 +49,13 @@ |
|
|
]; |
|
|
]; |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
packages = flake-utils.lib.eachDefaultSystemPassThrough (system: { |
|
|
|
|
|
${system} = { |
|
|
|
|
|
default = self.nixosConfigurations.ldap.config.system.build.toplevel; |
|
|
|
|
|
images = self.nixosConfigurations.ldap.config.system.build.diskoImages; |
|
|
|
|
|
}; |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
devShells = flake-utils.lib.eachDefaultSystemPassThrough (system: { |
|
|
devShells = flake-utils.lib.eachDefaultSystemPassThrough (system: { |
|
|
${system}.default = |
|
|
${system}.default = |
|
|
let |
|
|
let |
|
|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
## Build disk image |
|
|
## Build disk image |
|
|
```bash |
|
|
```bash |
|
|
nix build .#nixosConfigurations.ldap.config.system.build.diskoImages |
|
|
|
|
|
|
|
|
nix build .#images |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
## Updates |
|
|
## Updates |
|
@ -13,7 +13,7 @@ nix flake update |
|
|
|
|
|
|
|
|
## Deploy |
|
|
## Deploy |
|
|
```bash |
|
|
```bash |
|
|
nix build .#nixosConfigurations.ldap.config.system.build.toplevel |
|
|
|
|
|
nix copy --to ssh://root@<ip-of-target> .#nixosConfigurations.ldap.config.system.build.toplevel |
|
|
|
|
|
ssh root@<ip-of-target> "$(nix path-info .#nixosConfigurations.ldap.config.system.build.toplevel)/bin/switch-to-configuration switch" |
|
|
|
|
|
|
|
|
nix build . |
|
|
|
|
|
nix copy --to ssh://root@<ip-of-target> . |
|
|
|
|
|
ssh root@<ip-of-target> "$(nix path-info .)/bin/switch-to-configuration switch" |
|
|
``` |
|
|
``` |