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-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;
|
2024-06-23 14:40:05 +02:00
|
|
|
nameservers = [ "9.9.9.9" ];
|
2024-04-04 01:41:19 +02:00
|
|
|
defaultGateway = "192.168.2.1";
|
|
|
|
interfaces.enp34s0.ipv4.addresses = [{
|
|
|
|
address = "192.168.2.68";
|
|
|
|
prefixLength = 24;
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
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 = {
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-04-04 01:41:19 +02:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
|
|
|
|