diff options
| author | Devin Finlinson <devin.finlinson@pm.me> | 2025-04-14 23:04:22 -0600 |
|---|---|---|
| committer | Devin Finlinson <devin.finlinson@pm.me> | 2025-04-14 23:04:22 -0600 |
| commit | e4a81d5fa8003b28431ea6170614e5e274eb9d0c (patch) | |
| tree | 36b3c0efbb1ec3c1459425a2ef2bff806b08df6b /machines/vm | |
| parent | c8f6b51974bdbe600771e3733419993f7c2bac9d (diff) | |
got the vm working maybe
Diffstat (limited to 'machines/vm')
| -rw-r--r-- | machines/vm/foolcreekwireless.nix | 22 | ||||
| -rw-r--r-- | machines/vm/foolcreekwireless/default.nix | 33 |
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"; +} |
