mirror of
https://github.com/blahai/nyx.git
synced 2025-06-12 11:13:02 -04:00
Add theia stuffies
This commit is contained in:
parent
452e600c5f
commit
ad09e551fd
11 changed files with 135 additions and 2 deletions
24
systems/theia/default.nix
Normal file
24
systems/theia/default.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
imports = [
|
||||
./hardware.nix
|
||||
./networking.nix
|
||||
./overrides.nix
|
||||
./services.nix
|
||||
];
|
||||
|
||||
olympus = {
|
||||
device = {
|
||||
cpu = "vm-amd";
|
||||
gpu = null;
|
||||
};
|
||||
system = {
|
||||
boot = {
|
||||
loader = "grub";
|
||||
loadRecommendedModules = true;
|
||||
enableKernelTweaks = true;
|
||||
initrd.enableTweaks = true;
|
||||
plymouth.enable = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
20
systems/theia/hardware.nix
Normal file
20
systems/theia/hardware.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
device = "/dev/disk/by-uuid/09e65ff9-2195-41d8-b6a4-671c306742c3";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
device = "/dev/disk/by-uuid/FED3-A372";
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0022" "dmask=0022"];
|
||||
};
|
||||
};
|
||||
swapDevices = [
|
||||
{
|
||||
device = "/var/lib/swapfile";
|
||||
size = 16 * 1024;
|
||||
}
|
||||
];
|
||||
}
|
1
systems/theia/networking.nix
Normal file
1
systems/theia/networking.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
53
systems/theia/overrides.nix
Normal file
53
systems/theia/overrides.nix
Normal file
|
@ -0,0 +1,53 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
modulesPath,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
imports = [(modulesPath + "/profiles/qemu-guest.nix")];
|
||||
|
||||
config = {
|
||||
services = {
|
||||
smartd.enable = mkForce false; # Unavailable - device lacks SMART capability.
|
||||
qemuGuest.enable = true;
|
||||
};
|
||||
systemd.services.qemu-guest-agent.path = [pkgs.shadow];
|
||||
|
||||
system.stateVersion = mkForce "25.04";
|
||||
|
||||
boot = {
|
||||
kernelParams = ["net.ifnames=0"];
|
||||
kernel.sysctl = {
|
||||
"net.ipv4.ip_forward" = true;
|
||||
"net.ipv6.conf.all.forwarding" = true;
|
||||
};
|
||||
|
||||
initrd = {
|
||||
availableKernelModules = [
|
||||
"ata_piix"
|
||||
"uhci_hcd"
|
||||
"virtio_pci"
|
||||
"virtio_scsi"
|
||||
"ahci"
|
||||
"sr_mod"
|
||||
"virtio_blk"
|
||||
];
|
||||
kernelModules = ["dm-snapshot"];
|
||||
};
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
useOSProber = mkForce false;
|
||||
efiSupport = mkForce false;
|
||||
enableCryptodisk = false;
|
||||
theme = mkForce null;
|
||||
backgroundColor = mkForce null;
|
||||
splashImage = mkForce null;
|
||||
device = mkForce "/dev/vda";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
1
systems/theia/services.nix
Normal file
1
systems/theia/services.nix
Normal file
|
@ -0,0 +1 @@
|
|||
{}
|
Loading…
Add table
Add a link
Reference in a new issue