ft: tuxcomp config
This commit is contained in:
@@ -1,20 +1,26 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../modules
|
||||
./gaming.nix
|
||||
./wireguard.nix
|
||||
];
|
||||
# TODO: literally this whole configuration lmao
|
||||
|
||||
networking.hostName = "tuxcomp";
|
||||
system.stateVersion = "26.05";
|
||||
|
||||
|
||||
# adds a `stretch_aspect` scaler (Valve/gamescope#927) and lets `--rt` use the
|
||||
# rtprio limit from modules/gaming.nix instead of CAP_SYS_NICE.
|
||||
nixpkgs.overlays = [
|
||||
(_final: prev: {
|
||||
gamescope = prev.gamescope.overrideAttrs (old: {
|
||||
patches = (old.patches or [ ]) ++ [ ../../patches/gamescope-stretch-aspect.patch ];
|
||||
});
|
||||
})
|
||||
];
|
||||
#nixpkgs.overlays = [
|
||||
# (_final: prev: {
|
||||
# gamescope = prev.gamescope.overrideAttrs (old: {
|
||||
# patches = (old.patches or [ ]) ++ [ ../../patches/gamescope-stretch-aspect.patch ];
|
||||
# });
|
||||
# })
|
||||
#];
|
||||
}
|
||||
|
||||
|
||||
43
hosts/tuxcomp/hardware-configuration.nix
Normal file
43
hosts/tuxcomp/hardware-configuration.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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 = [ "nvme" "xhci_pci" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/7318645d-7122-4363-88e5-6e4be313e6ac";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/2843-89B6";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0022" "dmask=0022" ];
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-home".device = "/dev/disk/by-uuid/4ce47f71-d252-4c97-9d55-961d8ad8b77d";
|
||||
fileSystems."/home" = {
|
||||
device = "/dev/mapper/luks-home";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
boot.initrd.luks.devices."luks-data".device = "/dev/disk/by-uuid/b03545ec-59b2-436f-8c7a-7a8fd9fd1b4f";
|
||||
fileSystems."/mnt/data" = {
|
||||
device = "/dev/mapper/data-daten";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
|
||||
8
hosts/tuxcomp/wireguard.nix
Normal file
8
hosts/tuxcomp/wireguard.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ config, ... }:
|
||||
|
||||
{
|
||||
networking.wg-quick.interfaces.npm = {
|
||||
configFile = config.sops.secrets."wg-config-tuxcomp".path;
|
||||
autostart = true;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user