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
|
|
|
|
../../packages/sets/basic.nix
|
|
|
|
../../packages/wm/hyprland.nix
|
|
|
|
../../users/hu/user.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;
|
|
|
|
nameservers = [ "1.1.1.1" ];
|
|
|
|
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 = {
|
|
|
|
opengl = {
|
|
|
|
enable = true;
|
|
|
|
driSupport = true;
|
|
|
|
driSupport32Bit = true;
|
|
|
|
};
|
|
|
|
nvidia = {
|
|
|
|
modesetting.enable = true;
|
|
|
|
nvidiaSettings = true;
|
2024-05-24 21:33:00 +02:00
|
|
|
powerManagement.enable = true;
|
|
|
|
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
|
|
|
# Todo: Reorganize these
|
2024-04-04 01:41:19 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
neovim
|
2024-05-24 21:33:00 +02:00
|
|
|
mpv
|
|
|
|
imagemagick
|
2024-04-04 01:41:19 +02:00
|
|
|
];
|
|
|
|
|
2024-05-24 21:33:00 +02:00
|
|
|
nix = {
|
|
|
|
extraOptions = ''
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-05-30 19:34:57 +02:00
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 25565 ];
|
|
|
|
allowedUDPPorts = [ 25565 ];
|
|
|
|
};
|
|
|
|
|
2024-04-04 01:41:19 +02:00
|
|
|
system.stateVersion = "23.11";
|
|
|
|
}
|
|
|
|
|