summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
authorDevin Finlinson <devin.finlinson@pm.me>2025-04-15 16:33:23 -0600
committerDevin Finlinson <devin.finlinson@pm.me>2025-04-15 16:33:23 -0600
commitf24e3c345cbb84ca569c59d3eb96f894080fbc38 (patch)
tree9c3a979e06b30770837bf9f44352853cbfbd8be0 /machines
parent9bbc953bb19baebf6d4f0ef918591fbb9edb0824 (diff)
vms getting closer to prod
Diffstat (limited to 'machines')
-rw-r--r--machines/vm/foolcreek/default.nix64
1 files changed, 64 insertions, 0 deletions
diff --git a/machines/vm/foolcreek/default.nix b/machines/vm/foolcreek/default.nix
new file mode 100644
index 0000000..8ff4598
--- /dev/null
+++ b/machines/vm/foolcreek/default.nix
@@ -0,0 +1,64 @@
+{ config, pkgs, ... }:
+# let
+# language ;
+# in
+{
+ imports = [
+ # ./hardware-configuration.nix
+
+ ../../../modules/nixos/nix-common.nix
+ ../../../modules/nixos/environment.nix
+ ../../../modules/nixos/system-packages.nix
+
+ ../../../modules/users/defin.nix
+ ../../../modules/users/root.nix
+ ];
+
+ networking.hostName = "foolcreek";
+
+ # boot.loader.systemd-boot.enable = true;
+ # boot.loader.efi.canTouchEfiVariables = true;
+ # virtualisation.vmVariant = {
+ # virtualisation = {
+ # memorySize = 2048; # Use 2048 MiB memory.
+ # cores = 1;
+ # graphics = false;
+ # };
+ # };
+ microvm = {
+ interfaces = [{
+ type = "tap";
+ id = "foolcreek";
+ mac = "02:00:00:00:00:01";
+ }];
+ };
+
+ systemd.network = {
+ enable = true;
+ networks."20-lan" = {
+ matchConfig.Type = "ether";
+ networkConfig = {
+ Address = ["10.1.11.101"];
+ Gateway = "10.1.11.254";
+ DNS = ["8.8.8.8"];
+ # IPv6AcceptRA = true;
+ DHCP = "no";
+ };
+ };
+ };
+
+ services.wordpress.sites."localhost" = {
+ # languages = [ pkgs.wordpressPackages.languages. ]
+
+ };
+
+ networking.firewall.allowedTCPPorts = [ 22 80 443];
+
+ environment.systemPackages = with pkgs; [
+ cowsay
+ lolcat
+ ];
+
+ nixpkgs.hostPlatform = "x86_64-linux";
+ system.stateVersion = "24.11";
+}