diff --git a/flake.nix b/flake.nix index f95a83b587a0744c4e38f4963c1c2cb57cdd9a34..fca054a141872b20a17399a125a29ec42935a360 100644 --- a/flake.nix +++ b/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: { ${system}.default = let diff --git a/readme.md b/readme.md index c1078ec67fae37cdac82e0e5e44c566ee99df2ba..6f9609f40e55c228abf1f14bec6ef359628b11e7 100644 --- a/readme.md +++ b/readme.md @@ -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" ```