add work config

This commit is contained in:
Nickolaj Jepsen 2025-02-20 14:09:12 +01:00
parent 2741e5cad1
commit 2b7b63a18c
No known key found for this signature in database
11 changed files with 102 additions and 0 deletions

View file

@ -75,5 +75,15 @@ in {
../modules/devenv.nix
];
};
work = mkSystem {
hostname = "work";
username = "nickolaj";
modules = [
../modules/required.nix
../modules/shell.nix
../modules/graphical.nix
../modules/devenv.nix
];
};
};
}

View file

@ -0,0 +1,62 @@
_: {
disko.devices = {
disk = {
main = {
device = "/dev/disk/by-id/ata-SanDisk_SDSSDXPS240G_153251401377";
type = "disk";
content = {
type = "gpt";
partitions = {
boot = {
name = "boot";
size = "1M";
type = "EF02";
};
ESP = {
size = "512M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = ["defaults"];
};
};
luks = {
size = "100%";
content = {
type = "luks";
name = "crypted";
# Copied by deploy script, otherwise it will prompt for password
passwordFile = "/luks-password";
settings = {
allowDiscards = true;
bypassWorkqueues = true;
};
content = {
type = "btrfs";
extraArgs = ["-f"];
subvolumes = {
"@" = {
mountpoint = "/";
mountOptions = ["compress=zstd" "noatime"];
};
"@nix" = {
mountpoint = "/nix";
mountOptions = ["compress=zstd" "noatime"];
};
"@home" = {
mountpoint = "/home";
mountOptions = ["compress=zstd" "noatime"];
};
};
};
};
};
};
};
};
};
};
}

View file

@ -0,0 +1,12 @@
_: {
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = ["nvidia"];
hardware.nvidia = {
open = true;
modesetting.enable = true;
powerManagement.enable = true;
nvidiaSettings = true;
};
}