Compare commits

...

2 commits

Author SHA1 Message Date
22a055c5de Hello
Some checks failed
CI / formatting (push) Failing after 9m25s
CI / nix_flake_check (push) Failing after 9m24s
2025-12-05 09:03:31 +01:00
server@ass.com
16800c15eb fuck 2025-12-04 19:00:14 +00:00
3 changed files with 64 additions and 41 deletions

View file

@ -12,16 +12,11 @@
nix.settings.experimental-features = [ "nix-command" "flakes" ];
fileSystems."/home" = {
device = "/dev/nvme0n1p7";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/nvme0n1p1";
fsType = "vfat";
device = "/dev/disk/by-uuid/31dbc3a8-dfdc-4177-8d3e-2b6e294e7daf";
fsType = "btrfs";
};
swapDevices = [
{ device = "/dev/nvme0n1p8"; }
{ device = "/dev/disk/by-uuid/eba1bd66-08e0-4f9e-9546-aaef4ebcf5a2"; }
];
nixpkgs.config.allowUnfree = true;
# Use the systemd-boot EFI boot loader.
@ -29,17 +24,22 @@
#boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub.enable = true;
boot.loader.grub.efiSupport = true;
boot.loader.efi.efiSysMountPoint= "/boot/efi";
boot.loader.grub.device = "nodev";
boot.loader.grub.useOSProber = true;
boot.loader.grub.configurationLimit = 5;
boot.loader.efi.canTouchEfiVariables = true;
#boot.loader.grub.efiInstallAsRemovable = true;
boot.loader.grub.extraConfig = ''
GRUB_DISABLE_OS_PROBER=false
GRUB_TERMINAL_OUTPUT=console
'';
boot.loader.grub.gfxmodeBios = "1280x720"; # for BIOS, or
boot.loader.grub.gfxmodeEfi = "1280x720"; # for EFI
boot.loader.grub.gfxpayloadBios = "keep";
# Use latest kernel.
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "nxs"; # Define your hostname.
# Pick only one of the below networking options.
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
@ -182,6 +182,47 @@
enable = true;
};
services.pcscd.enable = true;
systemd.services."getty@tty2".enable = true;
systemd.services."getty@tty3".enable = true;
hardware.graphics = {
enable = true;
};
services.xserver.videoDrivers = [
"nvidia"
];
# Load nvidia driver for Xorg and Wayland
hardware.nvidia = {
# Modesetting is required.
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
#powerManagement.enable = false;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
#powerManagement.finegrained = true;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
open = true;
# Enable the Nvidia settings menu,
# accessible via `nvidia-settings`.
nvidiaSettings = true;
# Optionally, you may need to select the appropriate driver version for your specific GPU.
package = config.boot.kernelPackages.nvidiaPackages.stable;
};
}

View file

@ -5,31 +5,27 @@
{
imports =
[
(modulesPath + "/installer/scan/not-detected.nix")
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{
device = "/dev/disk/by-uuid/c358489e-29bb-4d94-a126-c005902afa3d";
fsType = "ext4";
{ device = "/dev/disk/by-uuid/9df74ba0-5121-41be-b0c3-2897142eee59";
fsType = "btrfs";
};
fileSystems."/boot/efi" =
{ device = "/dev/disk/by-uuid/A0BF-D7EF";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
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
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.enp0s31f6.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

View file

@ -56,21 +56,7 @@
nixpkgs-fmt
rofi
pipewire
(python311.withPackages (ps: with ps; [
pip
ipython
virtualenv
black
flake8
mypy
pytest
numpy
pandas
requests
jupytext
]))
poetry
uv
lshw
];
programs.direnv = {