summaryrefslogtreecommitdiff
path: root/machines/vm/foolcreek/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'machines/vm/foolcreek/default.nix')
-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";
+}