Browse Source

Shorten commands

main
Dustin Frisch 1 month ago
parent
commit
935de1a2a5
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 7
      flake.nix
  2. 8
      readme.md

7
flake.nix

@ -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

8
readme.md

@ -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"
``` ```
Loading…
Cancel
Save