2025-04-06 18:50:43 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports = [
|
|
|
|
|
../../modules/system.nix
|
|
|
|
|
../../modules/nix-settings.nix
|
|
|
|
|
../../modules/vpn.nix
|
|
|
|
|
../../modules/fonts.nix
|
|
|
|
|
../../modules/firewall.nix
|
|
|
|
|
../../modules/localisation.nix
|
|
|
|
|
../../modules/openssh.nix
|
|
|
|
|
../../modules/pipewire.nix
|
|
|
|
|
../../modules/podman.nix
|
|
|
|
|
../../modules/services.nix
|
|
|
|
|
../../modules/regreet/regreet.nix
|
|
|
|
|
../../modules/plymouth.nix
|
|
|
|
|
../../modules/file_managers/spacefm.nix
|
2025-04-06 22:25:24 +02:00
|
|
|
|
../../modules/python.nix
|
2025-04-06 18:50:43 +02:00
|
|
|
|
# Include the results of the hardware scan.
|
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.geary.enable = true;
|
|
|
|
|
|
|
|
|
|
boot.loader = {
|
2025-04-06 21:07:08 +02:00
|
|
|
|
systemd-boot.enable = true;
|
2025-04-06 21:10:19 +02:00
|
|
|
|
efi.canTouchEfiVariables = true;
|
2025-04-06 18:50:43 +02:00
|
|
|
|
};
|
|
|
|
|
|
2025-04-07 11:42:30 +02:00
|
|
|
|
networking = {
|
|
|
|
|
hostName = "nix-hp";
|
|
|
|
|
#networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
wireless = {
|
|
|
|
|
enable = true;
|
|
|
|
|
networks = {
|
|
|
|
|
LANFRED.pskRaw = "36e2b41b51328800a9582be1a05f13f796f943569610ccdb61304803b86ce3da";
|
|
|
|
|
#free.wifi = {};
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-04-06 18:50:43 +02:00
|
|
|
|
|
2025-04-07 11:42:30 +02:00
|
|
|
|
nameservers = [
|
|
|
|
|
"1.1.1.1"
|
|
|
|
|
"1.0.0.1"
|
|
|
|
|
"8.8.8.8"
|
|
|
|
|
"8.8.4.4"
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
nixpkgs.config.nvidia.acceptLicense = true;
|
2025-04-06 21:10:19 +02:00
|
|
|
|
hardware.graphics.enable = true;
|
2025-04-07 11:42:30 +02:00
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
|
hardware.nvidia = {
|
|
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.legacy_470;
|
|
|
|
|
modesetting.enable = true;
|
|
|
|
|
open = false;
|
|
|
|
|
powerManagement = {
|
|
|
|
|
enable = false;
|
|
|
|
|
finegrained = false;
|
|
|
|
|
};
|
|
|
|
|
nvidiaSettings = true;
|
|
|
|
|
|
|
|
|
|
prime = {
|
|
|
|
|
intelBusId = "PCI:0:2:0";
|
|
|
|
|
nvidiaBusId = "PCI:10:0:0";
|
|
|
|
|
sync.enable = true;
|
|
|
|
|
};
|
|
|
|
|
};
|
2025-04-06 18:50:43 +02:00
|
|
|
|
|
|
|
|
|
system.stateVersion = "25.11"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|