added stuff
This commit is contained in:
parent
6d31f5b5a1
commit
7d4f626b7d
907 changed files with 70990 additions and 0 deletions
8
nyx/hosts/leto/default.nix
Normal file
8
nyx/hosts/leto/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./fs
|
||||
./modules
|
||||
|
||||
./system.nix
|
||||
];
|
||||
}
|
11
nyx/hosts/leto/fs/default.nix
Normal file
11
nyx/hosts/leto/fs/default.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
fileSystems."/" = {
|
||||
device = "/dev/disk/by-uuid/4e742f36-b005-4f3b-a25c-dd55ef1bda0a";
|
||||
fsType = "btrfs";
|
||||
options = ["compress=zstd" "noatime"];
|
||||
};
|
||||
|
||||
swapDevices = [
|
||||
{device = "/dev/disk/by-uuid/8d35941a-dcf0-4659-83f8-458c18d0bb4f";}
|
||||
];
|
||||
}
|
7
nyx/hosts/leto/modules/default.nix
Normal file
7
nyx/hosts/leto/modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./device.nix
|
||||
./system.nix
|
||||
./usrEnv.nix
|
||||
];
|
||||
}
|
10
nyx/hosts/leto/modules/device.nix
Normal file
10
nyx/hosts/leto/modules/device.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
config.modules.device = {
|
||||
type = "server";
|
||||
cpu.type = "intel";
|
||||
gpu.type = null;
|
||||
hasBluetooth = false;
|
||||
hasSound = false;
|
||||
hasTPM = false;
|
||||
};
|
||||
}
|
34
nyx/hosts/leto/modules/system.nix
Normal file
34
nyx/hosts/leto/modules/system.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
config.modules.system = {
|
||||
mainUser = "notashelf";
|
||||
fs = ["vfat" "exfat" "ext4"];
|
||||
video.enable = false;
|
||||
sound.enable = false;
|
||||
bluetooth.enable = false;
|
||||
printing.enable = false;
|
||||
|
||||
boot = {
|
||||
secureBoot = false;
|
||||
loader = "grub";
|
||||
enableKernelTweaks = true;
|
||||
initrd.enableTweaks = true;
|
||||
loadRecommendedModules = true;
|
||||
tmpOnTmpfs = false;
|
||||
};
|
||||
|
||||
virtualization = {
|
||||
enable = true;
|
||||
qemu.enable = true;
|
||||
docker.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
optimizeTcp = false;
|
||||
tailscale = {
|
||||
enable = false;
|
||||
isServer = true;
|
||||
isClient = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
6
nyx/hosts/leto/modules/usrEnv.nix
Normal file
6
nyx/hosts/leto/modules/usrEnv.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
config.modules.usrEnv = {
|
||||
useHomeManager = true;
|
||||
isWayland = false;
|
||||
};
|
||||
}
|
33
nyx/hosts/leto/system.nix
Normal file
33
nyx/hosts/leto/system.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{
|
||||
modulesPath,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
(modulesPath + "/profiles/qemu-guest.nix")
|
||||
];
|
||||
|
||||
config = {
|
||||
services.smartd.enable = lib.mkForce false;
|
||||
|
||||
boot = {
|
||||
growPartition = !config.boot.initrd.systemd.enable;
|
||||
initrd = {
|
||||
availableKernelModules = ["ahci" "xhci_pci" "virtio_pci" "sr_mod" "virtio_blk"];
|
||||
kernelModules = [];
|
||||
};
|
||||
|
||||
loader.grub = {
|
||||
enable = true;
|
||||
useOSProber = lib.mkForce false;
|
||||
efiSupport = lib.mkForce false;
|
||||
enableCryptodisk = false;
|
||||
theme = null;
|
||||
backgroundColor = null;
|
||||
splashImage = null;
|
||||
device = lib.mkForce "/dev/vda";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue