This commit is contained in:
2025-08-29 15:25:40 +02:00
parent 26440bfeee
commit f3821f0dfa
201 changed files with 2461 additions and 1546 deletions

View File

@@ -3,9 +3,11 @@
config,
pkgs,
...
}: let
}:
let
ifTheyExist = groups: builtins.filter (group: builtins.hasAttr group config.users.groups) groups;
in {
in
{
users.users.toothpick = {
isNormalUser = true;
shell = pkgs.zsh;

View File

@@ -7,8 +7,9 @@
pkgs,
modulesPath,
...
}: {
imports = [(modulesPath + "/installer/scan/not-detected.nix")];
}:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot = {
initrd = {
@@ -20,14 +21,14 @@
"usb_storage"
"sd_mod"
];
kernelModules = [];
kernelModules = [ ];
};
kernelModules = [];
kernelModules = [ ];
kernelParams = [
"intel_pstate=active"
"nvidia_drm.modeset=1"
];
extraModulePackages = [];
extraModulePackages = [ ];
};
fileSystems."/" = {
@@ -35,15 +36,19 @@
fsType = "ext4";
};
boot.initrd.luks.devices."luks-81dcb5e4-7adb-44ee-99df-69e366f8b735".device = "/dev/disk/by-uuid/81dcb5e4-7adb-44ee-99df-69e366f8b735";
boot.initrd.luks.devices."luks-81dcb5e4-7adb-44ee-99df-69e366f8b735".device =
"/dev/disk/by-uuid/81dcb5e4-7adb-44ee-99df-69e366f8b735";
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/CA19-5F2A";
fsType = "vfat";
options = ["fmask=0022" "dmask=0022"];
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [];
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View File

@@ -3,7 +3,7 @@
boot = {
kernel = {
variant = "latest";
hardware = ["nvidia"];
hardware = [ "nvidia" ];
};
loader = {
default = {
@@ -20,7 +20,7 @@
};
graphics = {
enable = true;
vendors = ["nvidia"];
vendors = [ "nvidia" ];
nvidia = {
package = "latest";
open = true;
@@ -33,7 +33,11 @@
enable = true;
interfaces = {
"enp4s0" = {
allowedTCPPorts = [22 80 443];
allowedTCPPorts = [
22
80
443
];
};
};
};
@@ -189,7 +193,7 @@
enable = true;
};
xserver = {
videoDrivers = ["nvidia"];
videoDrivers = [ "nvidia" ];
xkbLayout = "se";
};
zram = {