nix-chimera/configuration.nix

119 lines
2.8 KiB
Nix
Raw Permalink Normal View History

2024-03-12 01:15:44 -07:00
{ modulesPath, config, lib, pkgs, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
./disk-config.nix
];
2024-04-18 20:54:32 -07:00
viv.usePatchedVlc = false;
2024-03-17 21:53:10 -07:00
2024-03-12 23:20:41 -07:00
# just kind of a grab bag of stuff
environment.systemPackages = with pkgs; [
2024-04-18 22:52:42 -07:00
alsa-lib
udev
gcc
2024-03-12 23:20:41 -07:00
tailscale
rustup
2024-03-17 21:53:10 -07:00
moonlight-qt
sunshine
2024-03-12 23:20:41 -07:00
(wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
obs-livesplit-one
obs-multi-rtmp
obs-vaapi
obs-gstreamer
input-overlay
obs-3d-effect
obs-composite-blur
obs-gradient-source
2024-03-13 01:32:50 -07:00
obs-vkcapture # Launch games with `obs-gamecapture %command%` to capture.
2024-03-12 23:20:41 -07:00
waveform
];
})
(retroarch.override {
cores = with libretro; [
bsnes
bsnes-mercury-balanced
gambatte
genesis-plus-gx
gpsp
mgba
mupen64plus
parallel-n64
sameboy
snes9x
tgbdual
vba-next
];
})
2024-03-12 23:58:29 -07:00
wl-clipboard # used by waydroid (among other things)
2024-03-12 23:20:41 -07:00
];
2024-03-12 01:15:44 -07:00
2024-03-12 23:20:41 -07:00
boot.supportedFilesystems = [ "ntfs" ]; # i would like to be able towrite to ntfs please
2024-03-12 01:15:44 -07:00
2024-03-12 23:20:41 -07:00
services.tailscale = {
enable = true;
useRoutingFeatures = "client";
extraUpFlags = [
];
2024-03-12 01:15:44 -07:00
};
2024-03-12 23:20:41 -07:00
virtualisation = {
waydroid.enable = true;
2024-03-12 01:15:44 -07:00
};
2024-03-12 23:20:41 -07:00
networking.firewall = {
2024-03-12 01:15:44 -07:00
enable = true;
2024-03-12 23:20:41 -07:00
interfaces = {
tailscale0 = {
allowedTCPPortRanges = []; # [{ from = 1000; to = 2000; }]
allowedUDPPortRanges = []; # [{ from = 1000; to = 2000; }]
};
};
2024-03-12 01:15:44 -07:00
};
2024-03-12 23:20:41 -07:00
2024-03-12 01:15:44 -07:00
boot.loader.grub = {
# no need to set devices, disko will add all devices that have a EF02 partition to the list already
# devices = [ ];
efiSupport = true;
2024-04-18 20:54:32 -07:00
efiInstallAsRemovable = false;
2024-03-12 01:15:44 -07:00
};
services.openssh.enable = true;
networking.networkmanager.enable = true;
system.stateVersion = "23.11";
2024-03-12 23:20:41 -07:00
# unfree as in unfreedom
2024-03-12 01:15:44 -07:00
nixpkgs.config.allowUnfree = true;
2024-04-18 22:52:42 -07:00
services.xserver.desktopManager.plasma5.enable = lib.mkForce false;
services.xserver.desktopManager.plasma6.enable = true;
services.xserver.displayManager.defaultSession = "plasma";
nix.optimise.automatic = true;
nix.optimise.dates = [ "04:45" ];
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 45d";
};
programs.steam = {
enable = true;
};
# hardware stuff under here
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "sd_mod" "rtsx_pci_sdmmc" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
2024-04-18 21:27:21 -07:00
2024-03-12 01:15:44 -07:00
}