1
Fork 0
nixos-system-config/hosts/workstation/default.nix

93 lines
1.9 KiB
Nix
Raw Normal View History

{ config, pkgs, ... }:
{
imports = [
./hardware-configuration.nix
./persist.nix
../../modules/system/basic.nix
../../modules/desktop/environments/hyprland.nix
../../modules/system/security.nix
../../modules/desktop/apps/communication.nix
../../modules/desktop/apps/games.nix
../../modules/desktop/apps/multimedia.nix
../../modules/system/virtualisation.nix
2024-07-25 22:12:51 +02:00
../../home/default.nix
];
boot.loader.efi.canTouchEfiVariables = true;
boot.loader.grub = {
enable = true;
efiSupport = true;
device = "nodev";
gfxmodeEfi = "1920x1080";
};
boot.kernelPackages = pkgs.linuxPackages_xanmod_latest;
boot.supportedFilesystems = [ "btrfs" "xfs" ];
networking = {
hostName = "workstation";
enableIPv6 = false;
2024-06-23 14:40:05 +02:00
nameservers = [ "9.9.9.9" ];
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";
keyMap = "uk";
# useXkbConfig = true;
};
nixpkgs.config.allowUnfree = true;
services.xserver.videoDrivers = [ "nvidia" ];
hardware = {
2024-07-06 01:23:37 +02:00
graphics = {
enable = true;
2024-07-06 01:23:37 +02:00
enable32Bit = true;
};
nvidia = {
modesetting.enable = true;
package = config.boot.kernelPackages.nvidiaPackages.beta;
};
};
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;
};
nix = {
extraOptions = ''
experimental-features = nix-command flakes
'';
};
2024-05-30 19:34:57 +02:00
networking.firewall = {
allowedTCPPorts = [ 25565 ];
allowedUDPPorts = [ 25565 ];
};
system.stateVersion = "23.11";
}