-
-
Save danderson/8fb37571768945456df8801d8e9aee18 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
{ | |
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-20.03"; | |
inputs.nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable"; | |
inputs.hydra.url = "github:NixOS/hydra"; | |
outputs = { self, nixpkgs, nixpkgs-unstable, hydra }: { | |
nixosConfigurations.container = nixpkgs.lib.nixosSystem { | |
system = "x86_64-linux"; | |
modules = | |
[ ./test.nix # tries to reference stuff in `hydra` from above | |
({ pkgs, ... }: { | |
boot.isContainer = true; | |
# Let 'nixos-version --json' know about the Git revision | |
# of this flake. | |
system.configurationRevision = nixpkgs-unstable.lib.mkIf (self ? rev) self.rev; | |
# Network configuration. | |
networking.useDHCP = false; | |
networking.firewall.allowedTCPPorts = [ 80 ]; | |
# Enable a web server. | |
services.httpd = { | |
enable = true; | |
adminAddr = "morty@example.org"; | |
}; | |
}) | |
]; | |
}; | |
}; | |
} |
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
{ hydra, ... }: { | |
require =[ hydra.nixosModules.hydraTest ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment