diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-08-24 15:48:29 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-08-24 15:48:29 -0600 |
| commit | ecab16d635554150627403675642d5603ef64cc6 (patch) | |
| tree | f94619061973fc0a5fd6097e27e80a5dde627fda /trivionomicon/templates/system-flake/sys | |
| parent | 0e11a692f223b268ca0d208b0ebf48c80caddfb6 (diff) | |
| parent | 53a923158861a9c52b86f37d826c3f4637476dfa (diff) | |
Add 'trivionomicon/' from commit 'c651b8c4706cfc750303db12ae19e58164a6bebb'
git-subtree-dir: trivionomicon
git-subtree-mainline: 02d3ab9583983e823909020c34b9d5a6894fb773
git-subtree-split: c651b8c4706cfc750303db12ae19e58164a6bebb
Diffstat (limited to 'trivionomicon/templates/system-flake/sys')
| -rw-r--r-- | trivionomicon/templates/system-flake/sys/default.nix | 14 | ||||
| -rw-r--r-- | trivionomicon/templates/system-flake/sys/platform/foo/default.nix | 6 |
2 files changed, 20 insertions, 0 deletions
diff --git a/trivionomicon/templates/system-flake/sys/default.nix b/trivionomicon/templates/system-flake/sys/default.nix new file mode 100644 index 0000000..fa0f994 --- /dev/null +++ b/trivionomicon/templates/system-flake/sys/default.nix @@ -0,0 +1,14 @@ +{pkgs, ...}: { + # Let 'nixos-version --json' know about the Git revision + # of this flake. + system.configurationRevision = nixpkgs.lib.mkIf (self ? rev) self.rev; + + # Network configuration. + networking.firewall.allowedTCPPorts = [80]; + + # Enable a web server. + services.httpd = { + enable = true; + adminAddr = "morty@example.org"; + }; +} diff --git a/trivionomicon/templates/system-flake/sys/platform/foo/default.nix b/trivionomicon/templates/system-flake/sys/platform/foo/default.nix new file mode 100644 index 0000000..ef84269 --- /dev/null +++ b/trivionomicon/templates/system-flake/sys/platform/foo/default.nix @@ -0,0 +1,6 @@ +{pkgs, ...}: { + boot.isContainer = true; + + # Network configuration. + networking.useDHCP = false; +} |
