-
-
Save cleverca22/34932459b4254d5e1b8d9a5025d77fc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ resources, ...}: | |
{ | |
# Deployment parameters | |
deployment = { | |
targetEnv = "ec2"; | |
ec2 = { | |
accessKeyId = "nixopstest"; | |
region = "eu-west-1"; | |
instanceType = "t2.micro"; | |
keyPair = resources.ec2KeyPairs.myPair; | |
}; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
networking.hostName = "webserver-test"; | |
networking.firewall.enable = false; | |
services.openssh.enable = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
network = { | |
description = "NixOS Web Server"; | |
enableRollback = true; | |
}; | |
awsDeploy = { ... }: | |
{ | |
imports = [ ./base.nix ]; | |
}; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
awsDeploy = { ... }: | |
{ | |
imports = [ ./aws.nix ]; | |
}; | |
# Create Keypair | |
resources.ec2KeyPairs.myPair = { | |
region = "eu-west-1"; | |
accessKeyId = "nixopstest"; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment