add ono-sendai
This commit is contained in:
9
configs/qemu.nix
Normal file
9
configs/qemu.nix
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu = {
|
||||||
|
swtpm.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
spiceUSBRedirection.enable = true;
|
||||||
|
}
|
||||||
@@ -118,13 +118,6 @@
|
|||||||
defaultNetwork.settings.dns_enabled = true;
|
defaultNetwork.settings.dns_enabled = true;
|
||||||
};
|
};
|
||||||
diskSize = 262144;
|
diskSize = 262144;
|
||||||
libvirtd = {
|
|
||||||
enable = true;
|
|
||||||
qemu = {
|
|
||||||
swtpm.enable = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
spiceUSBRedirection.enable = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.tailscale.enable = true;
|
services.tailscale.enable = true;
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations = lib.genAttrs [
|
nixosConfigurations = lib.genAttrs [
|
||||||
"imladris"
|
"imladris"
|
||||||
|
"ono-sendai"
|
||||||
"orion"
|
"orion"
|
||||||
"rift"
|
"rift"
|
||||||
"sk"
|
"sk"
|
||||||
|
|||||||
@@ -4,5 +4,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../configs/desktop.nix
|
../../configs/desktop.nix
|
||||||
|
../../configs/qemu.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
8
hw/ono-sendai/default.nix
Normal file
8
hw/ono-sendai/default.nix
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
{ inputs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./hardware-configuration.nix
|
||||||
|
../../configs/desktop.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
29
hw/ono-sendai/hardware-configuration.nix
Normal file
29
hw/ono-sendai/hardware-configuration.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||||
|
# and may be overwritten by future invocations. Please make changes
|
||||||
|
# to /etc/nixos/configuration.nix instead.
|
||||||
|
{ config, lib, pkgs, modulesPath, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports =
|
||||||
|
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usb_storage" "sd_mod" "sdhci_pci" ];
|
||||||
|
boot.initrd.kernelModules = [ ];
|
||||||
|
boot.kernelModules = [ "kvm-intel" ];
|
||||||
|
boot.extraModulePackages = [ ];
|
||||||
|
|
||||||
|
fileSystems."/" =
|
||||||
|
{ device = "/dev/mapper/luks-8ee08e44-2662-420e-82b0-cc039582d15e";
|
||||||
|
fsType = "ext4";
|
||||||
|
};
|
||||||
|
|
||||||
|
boot.initrd.luks.devices."luks-8ee08e44-2662-420e-82b0-cc039582d15e".device = "/dev/disk/by-uuid/8ee08e44-2662-420e-82b0-cc039582d15e";
|
||||||
|
|
||||||
|
swapDevices =
|
||||||
|
[ { device = "/dev/mapper/luks-566007fb-343e-4d66-8149-fbc808128930"; }
|
||||||
|
];
|
||||||
|
|
||||||
|
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||||
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||||
|
}
|
||||||
@@ -3,5 +3,6 @@
|
|||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../configs/desktop.nix
|
../../configs/desktop.nix
|
||||||
|
../../configs/qemu.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user