mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
complete rework v3
This commit is contained in:
parent
7409e9ca10
commit
366a0e221a
131 changed files with 20171 additions and 585 deletions
|
|
@ -1,12 +0,0 @@
|
|||
{hostname, ...}: {
|
||||
imports = [
|
||||
../../modules/base.nix
|
||||
../../modules/shell.nix
|
||||
../../modules/graphical.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
user.username = "nickolaj";
|
||||
system.stateVersion = "24.11";
|
||||
};
|
||||
}
|
||||
62
parts/hosts/desktop/disk-configuration.disabled
Normal file
62
parts/hosts/desktop/disk-configuration.disabled
Normal 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"];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
8470
parts/hosts/desktop/facter.json
Normal file
8470
parts/hosts/desktop/facter.json
Normal file
File diff suppressed because it is too large
Load diff
29
parts/hosts/desktop/monitors.nix
Normal file
29
parts/hosts/desktop/monitors.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
_: {
|
||||
# monitor=DP-1,1920x1080@60,2880x0,auto
|
||||
monitors = [
|
||||
{
|
||||
name = "DP-2";
|
||||
resolution = "2560x1440";
|
||||
refreshRate = 144;
|
||||
position = "2560x1080";
|
||||
}
|
||||
{
|
||||
name = "HDMI-A-1";
|
||||
resolution = "2560x1440";
|
||||
refreshRate = 60;
|
||||
position = "0x1080";
|
||||
}
|
||||
{
|
||||
name = "DP-3";
|
||||
resolution = "2560x1440";
|
||||
refreshRate = 144;
|
||||
position = "5120x1080";
|
||||
}
|
||||
{
|
||||
name = "DP-1";
|
||||
resolution = "1920x1080";
|
||||
refreshRate = 60;
|
||||
position = "2880x0";
|
||||
}
|
||||
];
|
||||
}
|
||||
12
parts/hosts/desktop/nvidia.nix
Normal file
12
parts/hosts/desktop/nvidia.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue