We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e256105 commit 826c32eCopy full SHA for 826c32e
flake.nix
@@ -36,6 +36,35 @@
36
}
37
);
38
39
+ apps = forAllSystems (
40
+ system:
41
+ let
42
+ pkgs = nixpkgs.legacyPackages.${system};
43
+
44
+ deployServerScript = pkgs.writeShellApplication {
45
+ name = "deploy-server";
46
+ runtimeInputs = [
47
+ pkgs.nix
48
+ pkgs.openssh
49
+ ];
50
+ text = ''
51
+ nix run nixpkgs#nixos-rebuild-ng -- \
52
+ --flake .#server \
53
+ --target-host [email protected] \
54
+ --sudo \
55
+ --ask-sudo-password \
56
+ switch
57
+ '';
58
+ };
59
+ in
60
+ {
61
+ deploy-server = {
62
+ type = "app";
63
+ program = "${deployServerScript}/bin/deploy-server";
64
65
+ }
66
+ );
67
68
nixosConfigurations =
69
let
70
mkSystem =
0 commit comments