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 @@ ...@@ -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 @@ ...@@ -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 ...@@ -13,7 +13,7 @@ nix flake update
## Deploy ## Deploy
```bash ```bash
nix build .#nixosConfigurations.ldap.config.system.build.toplevel nix build .
nix copy --to ssh://root@<ip-of-target> .#nixosConfigurations.ldap.config.system.build.toplevel nix copy --to ssh://root@<ip-of-target> .
ssh root@<ip-of-target> "$(nix path-info .#nixosConfigurations.ldap.config.system.build.toplevel)/bin/switch-to-configuration switch" 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