105 lines
3.2 KiB
Nix
105 lines
3.2 KiB
Nix
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||
# and may be overwritten by future invocations. Please make changes
|
||
# to /etc/nixos/configuration.nix instead.
|
||
{ config, lib, pkgs, modulesPath, ... }:
|
||
|
||
{
|
||
imports =
|
||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||
];
|
||
|
||
boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "nvme" "usb_storage" "usbhid" "sd_mod" ];
|
||
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
||
boot.kernelModules = [ "kvm-amd" ];
|
||
boot.extraModulePackages = [ ];
|
||
boot.supportedFilesystems = [ "zfs" ];
|
||
boot.kernelParams = [
|
||
"video=DP-1:1920x1080@60"
|
||
];
|
||
boot.kernelPackages = pkgs.linuxKernel.packages.linux_lqx;
|
||
boot.zfs.package = pkgs.zfs_2_4;
|
||
fileSystems."/" =
|
||
{ device = "none";
|
||
fsType = "tmpfs";
|
||
options = ["defaults" "mode=755"];
|
||
};
|
||
|
||
fileSystems."/boot" =
|
||
{ device = "/dev/disk/by-uuid/278A-0FB0";
|
||
fsType = "vfat";
|
||
options = [ "fmask=0022" "dmask=0022" ];
|
||
};
|
||
|
||
fileSystems."/nix" =
|
||
{ device = "aphelion-zroot/nix";
|
||
fsType = "zfs";
|
||
};
|
||
|
||
fileSystems."/home" =
|
||
{ device = "aphelion-zroot/home";
|
||
fsType = "zfs";
|
||
};
|
||
fileSystems."/home/yaroslav/.local/share/Steam"=
|
||
{ device = "aphelion-zroot/data/steam";
|
||
fsType = "zfs";
|
||
};
|
||
fileSystems."/Volumes/Trash" =
|
||
{
|
||
device = "/dev/yarikpc/trash";
|
||
fsType = "ext4";
|
||
options = [ "x-mount.mkdir" "rw" ];
|
||
};
|
||
fileSystems."/Volumes/Games" =
|
||
{
|
||
device = "/dev/yarikpc/games";
|
||
fsType = "ext4";
|
||
options = [ "x-mount.mkdir" "rw" ];
|
||
};
|
||
fileSystems."/Volumes/ssd_g" =
|
||
{
|
||
device = "/dev/disk/by-id/ata-KINGSTON_SA400S37240G_50026B77846D940A-part1";
|
||
fsType = "btrfs";
|
||
options = [ "x-mount.mkdir" "rw" ];
|
||
};
|
||
|
||
swapDevices = [ ];
|
||
|
||
hardware.graphics.extraPackages = with pkgs; [
|
||
rocmPackages.clr.icd
|
||
];
|
||
systemd.tmpfiles.rules = [
|
||
"L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"
|
||
];
|
||
|
||
#chaotic.mesa-git.enable = true;
|
||
|
||
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
|
||
# (the default) this is the recommended approach. When using systemd-networkd it's
|
||
# still possible to use this option, but it's recommended to use it in conjunction
|
||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
|
||
networking.useDHCP = lib.mkDefault true;
|
||
networking.firewall.allowedTCPPorts = [ 42420 25565 ];
|
||
networking.firewall.allowedUDPPorts = [ 5900 ];
|
||
|
||
networking.firewall.trustedInterfaces = [ "enp12s0" "wlp11s0" "wg0"];
|
||
#networking.firewall.enable = false;
|
||
|
||
# networking.interfaces.enp12s0.useDHCP = lib.mkDefault true;
|
||
# networking.interfaces.wlp11s0.useDHCP = lib.mkDefault true;
|
||
hardware.bluetooth.enable = true; # enables support for Bluetooth
|
||
hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot
|
||
|
||
services.lact = {
|
||
enable = true;
|
||
};
|
||
|
||
services.hardware.openrgb.enable = true;
|
||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||
system.stateVersion = "25.11";
|
||
networking.hostName = "Aphelion";
|
||
networking.hostId = "b7fa9c25";
|
||
|
||
}
|