2024-05-24 21:33:00 +02:00
|
|
|
{ config, pkgs, ... }:
|
2024-04-04 01:41:19 +02:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2024-05-24 21:33:00 +02:00
|
|
|
./hardware-configuration.nix
|
|
|
|
./persist.nix
|
2024-08-26 15:01:33 +02:00
|
|
|
../../home/default.nix
|
2024-07-25 21:52:42 +02:00
|
|
|
|
2024-08-28 18:21:04 +02:00
|
|
|
../../modules/desktop/environments/kde.nix
|
2024-07-25 21:52:42 +02:00
|
|
|
../../modules/system/basic.nix
|
|
|
|
../../modules/system/security.nix
|
2024-07-25 22:15:32 +02:00
|
|
|
../../modules/desktop/apps/communication.nix
|
|
|
|
../../modules/desktop/apps/games.nix
|
|
|
|
../../modules/desktop/apps/multimedia.nix
|
2024-07-25 22:19:16 +02:00
|
|
|
../../modules/system/virtualisation.nix
|
2024-08-26 15:01:33 +02:00
|
|
|
../../modules/system/development.nix
|
|
|
|
../../modules/packages/firefox.nix
|
|
|
|
../../modules/packages/zsh.nix
|
|
|
|
../../modules/packages/fastfetch.nix
|
2024-11-24 12:29:59 +01:00
|
|
|
../../modules/packages/tmux.nix
|
2024-04-04 01:41:19 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
2024-05-24 21:33:00 +02:00
|
|
|
boot.loader.grub = {
|
|
|
|
enable = true;
|
|
|
|
efiSupport = true;
|
|
|
|
device = "nodev";
|
|
|
|
gfxmodeEfi = "1920x1080";
|
|
|
|
};
|
2024-05-25 16:49:53 +02:00
|
|
|
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
|
2024-04-04 01:41:19 +02:00
|
|
|
boot.supportedFilesystems = [ "btrfs" "xfs" ];
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "workstation";
|
|
|
|
enableIPv6 = false;
|
|
|
|
};
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
console = {
|
|
|
|
font = "Lat2-Terminus16";
|
2024-05-24 21:33:00 +02:00
|
|
|
keyMap = "uk";
|
|
|
|
# useXkbConfig = true;
|
2024-04-04 01:41:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
hardware = {
|
2024-07-06 01:23:37 +02:00
|
|
|
graphics = {
|
2024-04-04 01:41:19 +02:00
|
|
|
enable = true;
|
2024-07-06 01:23:37 +02:00
|
|
|
enable32Bit = true;
|
2024-04-04 01:41:19 +02:00
|
|
|
};
|
|
|
|
nvidia = {
|
|
|
|
modesetting.enable = true;
|
2024-07-26 20:48:08 +02:00
|
|
|
open = true;
|
2024-07-21 16:44:16 +02:00
|
|
|
package = config.boot.kernelPackages.nvidiaPackages.beta;
|
2024-04-04 01:41:19 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
services.pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa = {
|
|
|
|
enable = true;
|
|
|
|
support32Bit = true;
|
|
|
|
};
|
|
|
|
pulse.enable = true;
|
|
|
|
jack.enable = true;
|
|
|
|
};
|
|
|
|
|
2024-05-24 21:33:00 +02:00
|
|
|
nix = {
|
2024-11-22 12:33:53 +01:00
|
|
|
settings = {
|
|
|
|
substituters = [
|
|
|
|
"https://cuda-maintainers.cachix.org"
|
|
|
|
];
|
|
|
|
trusted-public-keys = [
|
|
|
|
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
|
|
|
|
];
|
|
|
|
};
|
2024-05-24 21:33:00 +02:00
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-11-22 12:33:53 +01:00
|
|
|
nixpkgs.config.cudaSupport = true;
|
|
|
|
|
2024-04-04 01:41:19 +02:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
|
|
|
|