dotfiles/hosts/arrow/default.nix

42 lines
863 B
Nix
Raw Normal View History

2024-04-14 12:08:57 +00:00
# The Arrow
# System configuration for temporary VM
2024-04-13 13:03:44 +00:00
{
inputs,
globals,
overlays,
...
}:
2024-03-24 17:16:20 +00:00
inputs.nixpkgs.lib.nixosSystem rec {
2024-03-24 17:16:20 +00:00
system = "x86_64-linux";
specialArgs = {
pkgs-caddy = import inputs.nixpkgs-caddy { inherit system; };
};
2024-04-13 13:03:44 +00:00
modules = import ./modules.nix { inherit inputs globals overlays; } ++ [
{
# This is the root filesystem containing NixOS
fileSystems."/" = {
device = "/dev/disk/by-label/nixos";
fsType = "ext4";
};
2024-04-13 13:03:44 +00:00
# This is the boot filesystem for Grub
fileSystems."/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
2024-05-09 18:41:54 +00:00
virtualisation.vmVariant = {
virtualisation.forwardPorts = [
{
from = "host";
host.port = 2222;
guest.port = 22;
}
];
};
2024-04-13 13:03:44 +00:00
}
];
2024-03-24 17:16:20 +00:00
}