added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 236b8c2a6b
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,30 @@
{
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/b26ec8d8-8203-4252-8c32-0e0de3d90477";
fsType = "btrfs";
options = ["subvol=root" "compress=zstd"];
};
"/nix" = {
device = "/dev/disk/by-uuid/b26ec8d8-8203-4252-8c32-0e0de3d90477";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
};
"/home" = {
device = "/dev/disk/by-uuid/b26ec8d8-8203-4252-8c32-0e0de3d90477";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd"];
};
"/boot" = {
device = "/dev/disk/by-uuid/1EC3-9305";
fsType = "vfat";
};
};
swapDevices = [
{device = "/dev/disk/by-uuid/2691cd3d-8c61-415f-9260-395050884f02";}
];
}

View file

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

View file

@ -0,0 +1,11 @@
{
config.modules.device = {
type = "laptop";
cpu.type = "intel";
gpu.type = "intel"; # nvidia drivers :b:roke
monitors = ["eDP-1" "HDMI-A-1"];
hasBluetooth = true;
hasSound = true;
hasTPM = true;
};
}

View file

@ -0,0 +1,51 @@
{
config.modules.system = {
mainUser = "notashelf";
fs = ["btrfs" "vfat" "ntfs"];
autoLogin = true;
boot = {
loader = "systemd-boot";
enableKernelTweaks = true;
initrd.enableTweaks = true;
loadRecommendedModules = true;
tmpOnTmpfs = true;
};
video.enable = true;
sound.enable = true;
bluetooth.enable = false;
printing.enable = false;
networking = {
optimizeTcp = true;
tailscale = {
enable = true;
isClient = true;
};
};
virtualization = {
enable = false;
docker.enable = false;
qemu.enable = true;
podman.enable = false;
};
programs = {
cli.enable = true;
gui.enable = true;
git.signingKey = "419DBDD3228990BE";
gaming = {
enable = true;
chess.enable = true;
};
default = {
terminal = "foot";
};
};
};
}

View file

@ -0,0 +1,7 @@
{
config.modules.usrEnv = {
isWayland = true;
desktop = "Hyprland";
useHomeManager = true;
};
}

View file

@ -0,0 +1,30 @@
{
config,
lib,
...
}: let
inherit (lib) optionals mkIf mkForce;
dev = config.modules.device;
in {
config = {
hardware = {
nvidia = mkIf (builtins.elem dev.gpu ["nvidia" "hybrid-nv"]) {
open = mkForce false;
prime = {
offload.enable = true;
intelBusId = "PCI:0:2:0";
nvidiaBusId = "PCI:1:0:0";
};
};
};
boot = {
kernelParams = optionals ((dev.cpu == "intel") && (dev.gpu != "hybrid-nv")) [
"i915.enable_fbc=1"
"i915.enable_psr=2"
];
};
};
}