remove radish-vm
This commit is contained in:
@@ -113,7 +113,6 @@
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
radish = mkConfiguration { name = "radish"; };
|
radish = mkConfiguration { name = "radish"; };
|
||||||
radish-vm = mkConfiguration { name = "radish-vm"; };
|
|
||||||
freun-dev = mkConfiguration { name = "freun-dev"; };
|
freun-dev = mkConfiguration { name = "freun-dev"; };
|
||||||
apu = mkConfiguration { name = "apu"; };
|
apu = mkConfiguration { name = "apu"; };
|
||||||
turny = mkConfiguration {
|
turny = mkConfiguration {
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
boot = {
|
|
||||||
loader.systemd-boot.enable = true;
|
|
||||||
loader.efi.canTouchEfiVariables = true;
|
|
||||||
loader.systemd-boot.configurationLimit = 10;
|
|
||||||
|
|
||||||
kernelPackages = pkgs.linuxPackages_latest;
|
|
||||||
|
|
||||||
tmp.useTmpfs = true;
|
|
||||||
|
|
||||||
kernel.sysctl = {
|
|
||||||
"vm.max_map_count" = 262144;
|
|
||||||
};
|
|
||||||
binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
|
||||||
efibootmgr
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{ inputs, ... }:
|
|
||||||
let
|
|
||||||
inherit (inputs)
|
|
||||||
home-manager
|
|
||||||
;
|
|
||||||
in
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
./hardware-configuration.nix
|
|
||||||
# Import most of the original radish config
|
|
||||||
../radish/configuration.nix
|
|
||||||
../radish/host.nix
|
|
||||||
../radish/packages.nix
|
|
||||||
../radish/containers.nix
|
|
||||||
../radish/desktop.nix
|
|
||||||
../radish/users.nix
|
|
||||||
../radish/secrets.nix
|
|
||||||
# VM-specific overrides
|
|
||||||
./boot.nix
|
|
||||||
./hardware.nix
|
|
||||||
home-manager.nixosModules.home-manager
|
|
||||||
../../home
|
|
||||||
];
|
|
||||||
}
|
|
||||||
@@ -1,64 +0,0 @@
|
|||||||
# VM Hardware Configuration Template
|
|
||||||
# This file will be generated during VM installation with `nixos-generate-config`
|
|
||||||
# But here's a template for common VM setups
|
|
||||||
|
|
||||||
{
|
|
||||||
lib,
|
|
||||||
modulesPath,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
|
|
||||||
{
|
|
||||||
imports = [
|
|
||||||
(modulesPath + "/profiles/qemu-guest.nix")
|
|
||||||
];
|
|
||||||
|
|
||||||
# Boot configuration for VMs
|
|
||||||
boot = {
|
|
||||||
initrd = {
|
|
||||||
availableKernelModules = [
|
|
||||||
"ahci"
|
|
||||||
"xhci_pci"
|
|
||||||
"virtio_pci"
|
|
||||||
"virtio_scsi"
|
|
||||||
"sr_mod"
|
|
||||||
"virtio_blk"
|
|
||||||
"vmw_pvscsi"
|
|
||||||
];
|
|
||||||
kernelModules = [ ];
|
|
||||||
};
|
|
||||||
kernelModules = [ ];
|
|
||||||
extraModulePackages = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking = {
|
|
||||||
useDHCP = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
|
|
||||||
hardware = {
|
|
||||||
graphics = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services = {
|
|
||||||
spice-vdagentd.enable = lib.mkDefault true;
|
|
||||||
qemuGuest.enable = lib.mkDefault true;
|
|
||||||
};
|
|
||||||
|
|
||||||
virtualisation = {
|
|
||||||
vmware.guest.enable = lib.mkDefault false;
|
|
||||||
virtualbox.guest.enable = lib.mkDefault false;
|
|
||||||
hypervGuest.enable = lib.mkDefault false;
|
|
||||||
vmVariant.virtualisation = {
|
|
||||||
memorySize = 8192;
|
|
||||||
cores = 4;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
|
||||||
|
|
||||||
powerManagement = {
|
|
||||||
enable = lib.mkDefault false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
{
|
|
||||||
hardware.graphics = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
services.fstrim.enable = true; # Still useful for VM disk optimization
|
|
||||||
services.openssh.enable = true;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user