From e4a81d5fa8003b28431ea6170614e5e274eb9d0c Mon Sep 17 00:00:00 2001 From: Devin Finlinson Date: Mon, 14 Apr 2025 23:04:22 -0600 Subject: got the vm working maybe --- machines/vm/foolcreekwireless/default.nix | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 machines/vm/foolcreekwireless/default.nix (limited to 'machines/vm/foolcreekwireless') 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"; +} -- cgit v1.2.3