Skip to content
Snippets Groups Projects
Verified Commit 935de1a2 authored by Dustin Michael Frisch's avatar Dustin Michael Frisch
Browse files

Shorten commands

parent 03e2106f
No related branches found
No related tags found
No related merge requests found
......@@ -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: {
${system}.default =
let
......
......@@ -2,7 +2,7 @@
## Build disk image
```bash
nix build .#nixosConfigurations.ldap.config.system.build.diskoImages
nix build .#images
```
## Updates
......@@ -13,7 +13,7 @@ nix flake update
## Deploy
```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"
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment