summaryrefslogtreecommitdiff
path: root/machines
diff options
context:
space:
mode:
Diffstat (limited to 'machines')
-rw-r--r--machines/vm/foolcreekwireless.nix22
-rw-r--r--machines/vm/foolcreekwireless/default.nix33
2 files changed, 33 insertions, 22 deletions
diff --git a/machines/vm/foolcreekwireless.nix b/machines/vm/foolcreekwireless.nix
deleted file mode 100644
index e549b17..0000000
--- a/machines/vm/foolcreekwireless.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ config, pkgs, ... }:{
- 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
- ];
-
- boot.loader.systemd-boot.enable = true;
- boot.loader.efi.canTouchEfiVariables = true;
-
- environment.systemPackages = with pkgs; [
- cowsay
- lolcat
- ];
-
- system.stateVersion = "24.11";
-}
diff --git a/machines/vm/foolcreekwireless/default.nix b/machines/vm/foolcreekwireless/default.nix
new file mode 100644
index 0000000..3cd4a91
--- /dev/null
+++ b/machines/vm/foolcreekwireless/default.nix
@@ -0,0 +1,33 @@
+{ config, pkgs, ... }:{
+ 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
+ ];
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+ virtualisation.vmVariant = {
+ # following configuration is added only when building VM with build-vm
+ virtualisation = {
+ memorySize = 2048; # Use 2048 MiB memory.
+ cores = 3;
+ graphics = false;
+ };
+ };
+
+ networking.firewall.allowedTCPPorts = [ 22 2200 ];
+
+ environment.systemPackages = with pkgs; [
+ cowsay
+ lolcat
+ ];
+
+ nixpkgs.hostPlatform = "x86_64-linux";
+ system.stateVersion = "24.11";
+}