added stuff
This commit is contained in:
parent
e8d9044d2b
commit
9d0ebdfbd0
907 changed files with 70990 additions and 0 deletions
8
nyx/hosts/prometheus/default.nix
Normal file
8
nyx/hosts/prometheus/default.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
imports = [
|
||||
./fs
|
||||
./modules
|
||||
|
||||
./system.nix
|
||||
];
|
||||
}
|
30
nyx/hosts/prometheus/fs/default.nix
Normal file
30
nyx/hosts/prometheus/fs/default.nix
Normal 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";}
|
||||
];
|
||||
}
|
7
nyx/hosts/prometheus/modules/default.nix
Normal file
7
nyx/hosts/prometheus/modules/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
imports = [
|
||||
./device.nix
|
||||
./system.nix
|
||||
./usrEnv.nix
|
||||
];
|
||||
}
|
11
nyx/hosts/prometheus/modules/device.nix
Normal file
11
nyx/hosts/prometheus/modules/device.nix
Normal 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;
|
||||
};
|
||||
}
|
51
nyx/hosts/prometheus/modules/system.nix
Normal file
51
nyx/hosts/prometheus/modules/system.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
7
nyx/hosts/prometheus/modules/usrEnv.nix
Normal file
7
nyx/hosts/prometheus/modules/usrEnv.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
config.modules.usrEnv = {
|
||||
isWayland = true;
|
||||
desktop = "Hyprland";
|
||||
useHomeManager = true;
|
||||
};
|
||||
}
|
30
nyx/hosts/prometheus/system.nix
Normal file
30
nyx/hosts/prometheus/system.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue