added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 7d4f626b7d
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,8 @@
{
imports = [
./fs
./modules
./system.nix
];
}

View 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";}
];
}

View file

@ -0,0 +1,7 @@
{
imports = [
./device.nix
./system.nix
./usrEnv.nix
];
}

View file

@ -0,0 +1,10 @@
{
config.modules.device = {
type = "server";
cpu.type = "intel";
gpu.type = null;
hasBluetooth = false;
hasSound = false;
hasTPM = false;
};
}

View 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;
};
};
};
}

View file

@ -0,0 +1,6 @@
{
config.modules.usrEnv = {
useHomeManager = true;
isWayland = false;
};
}

33
nyx/hosts/leto/system.nix Normal file
View 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";
};
};
};
}