Add files via upload

This commit is contained in:
kaii :3 (notquitek3t)
2026-03-08 06:59:57 +00:00
committed by GitHub
parent dfc11908a4
commit 9cadcac26b
10 changed files with 604 additions and 0 deletions
+73
View File
@@ -0,0 +1,73 @@
{ pkgs, ... }: {
nix = {
settings = {
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
experimental-features = [ "nix-command" "flakes" ];
optimise.automatic = true;
gc = {
automatic = true;
dates = "daily";
options = "--delete-older-than 2d";
};
};
nixpkgs.config.allowUnfree = true;
# auto upgrade from your public repo
system.autoUpgrade = {
enable = true;
flake = "github:notquitek3t/nixconf"; # replace with your github username
};
hardware.bluetooth = {
enable = true;
powerOnBoot = true;
};
# networking
networking.networkmanager.enable = true;
environment.systemPackages = with pkgs; [
git
neovim
caligula
openssl
topgrade
htop
mosh
btop
wget2
python314
];
users.users.k3t = {
description = "Kai Moore";
isNormalUser = true;
extraGroups = [ "audio" "video" "bluetooth" "wheel" "input" "networkmanager" ];
initialPassword = "password";
linger = true;
};
# locale / time — adjust as needed
time.timeZone = "America/Denver";
i18n.defaultLocale = "en_US.UTF-8";
i18n.extraLocaleSettings = {
LC_ADDRESS = "en_US.UTF-8";
LC_IDENTIFICATION = "en_US.UTF-8";
LC_MEASUREMENT = "en_US.UTF-8";
LC_MONETARY = "en_US.UTF-8";
LC_NAME = "en_US.UTF-8";
LC_NUMERIC = "en_US.UTF-8";
LC_PAPER = "en_US.UTF-8";
LC_TELEPHONE = "en_US.UTF-8";
LC_TIME = "en_US.UTF-8";
};
system.stateVersion = "25.11";
}
+192
View File
@@ -0,0 +1,192 @@
{ pkgs, ... }: {
# Bootloader
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelPackages = pkgs.linuxPackages_lqx;
boot.kernelParams = [ "i915.enable_guc=3" ];
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" "sr_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
# Self Maintenance
services.btrfs.autoScrub = {
enable = true;
interval = "weekly";
fileSystems = [ "/" ];
};
# Support
services.flatpak.enable = true;
boot.binfmt.preferStaticEmulators = true;
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
hardware.graphics.enable32Bit = true;
programs.nix-ld.enable = true;
programs.appimage.enable = true;
programs.appimage.binfmt = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# graphics
hardware.enableRedistributableFirmware = true;
hardware.graphics = {
enable = true;
extraPackages = with pkgs; [
# Required for modern Intel GPUs (Xe iGPU and ARC)
intel-media-driver # VA-API (iHD) userspace
vpl-gpu-rt # oneVPL (QSV) runtime
# Optional (compute / tooling):
intel-compute-runtime # OpenCL (NEO) + Level Zero for Arc/Xe
# NOTE: 'intel-ocl' also exists as a legacy package; not recommended for Arc/Xe.
# libvdpau-va-gl # Only if you must run VDPAU-only apps
];
};
environment.sessionVariables = {
LIBVA_DRIVER_NAME = "iHD"; # Prefer the modern iHD backend
# VDPAU_DRIVER = "va_gl"; # Only if using libvdpau-va-gl
};
# X11
services.xserver = {
videoDrivers = [ "modesetting" "amdgpu" ];
enable = true;
xkb = {
layout = "us";
variant = "";
};
desktopManager = {
xterm.enable = false;
xfce = {
enable = true;
noDesktop = true;
enableXfwm = false;
};
};
libinput.enable = true;
windowManager.i3.enable = true;
};
services.displayManager.defaultSession = "xfce";
# desktop oriented bluetooth settings
hardware.bluetooth = {
settings = {
General = {
# Shows battery charge of connected devices on supported
# Bluetooth adapters. Defaults to 'false'.
Experimental = true;
KernelExperimental = true;
# When enabled other devices can connect faster to us, however
# the tradeoff is increased power consumption. Defaults to
# 'false'.
FastConnectable = true;
ControllerMode = "bredr";
};
Policy = {
# Enable all controllers when they are found. This includes
# adapters present on start as well as adapters that are plugged
# in later on. Defaults to 'true'.
AutoEnable = true;
};
};
};
# Sunshine (remote desktop)
services.sunshine = {
enable = true;
autoStart = true;
capSysAdmin = true;
openFirewall = true;
};
# Enable sound with pipewire.
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
jack.enable = true;
# use the example session manager (no others are packaged yet so this is enabled by default,
# no need to redefine it in your config for now)
#media-session.enable = true;
wireplumber.extraConfig.bluetoothEnhancements = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" "a2dp_sink" "a2dp_source" "bap_sink" "bap_source" ];
};
};
};
programs.mtr.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
};
programs.kdeconnect.enable = true;
programs.firefox = {
enable = true;
package = librewolf;
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
Preferences = {
"cookiebanners.service.mode.privateBrowsing" = 2; # Block cookie banners in private browsing
"cookiebanners.service.mode" = 2; # Block cookie banners
"privacy.donottrackheader.enabled" = true;
"privacy.fingerprintingProtection" = true;
"privacy.resistFingerprinting" = true;
"privacy.trackingprotection.emailtracking.enabled" = true;
"privacy.trackingprotection.enabled" = true;
"privacy.trackingprotection.fingerprinting.enabled" = true;
"privacy.trackingprotection.socialtracking.enabled" = true;
};
ExtensionSettings = {
"jid1-ZAdIEUB7XOzOJw@jetpack" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/duckduckgo-for-firefox/latest.xpi";
installation_mode = "force_installed";
};
"uBlock0@raymondhill.net" = {
install_url = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
installation_mode = "force_installed";
};
};
};
};
environment.etc."firefox/policies/policies.json".target = "librewolf/policies/policies.json";
users.users.k3t = {
packages = with pkgs; [
anydesk
dwarfs
bubblewrap
fuse-overlayfs
nicotine-plus
qbittorrent
kdePackages.kate
lutris
gearlever
remmina
thunderbird
prismlauncher
jellyfin-desktop
flatpak
vscode.fhs
signal-desktop
spotify
wineWowPackages.waylandFull
virt-viewer
winetricks
];
};
}
+41
View File
@@ -0,0 +1,41 @@
{ pkgs, ... }: {
boot.initrd.allowMissingModules = true;
boot.supportedFilesystems.zfs = false;
boot.kernelPackages = pkgs.linuxPackages_rpi4;
fileSystems = {
"/" = { device = "/dev/disk/by-label/NIXOS_SD"; fsType = "ext4"; };
};
# Pi 4 specific
hardware = {
raspberry-pi."4" = {
apply-overlays-dtmerge.enable = true;
bluetooth.enable = true;
};
enableRedistributableFirmware = true;
};
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
console.enable = false;
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypi-eeprom
];
# ssh so you can manage them remotely
services.openssh = {
enable = true;
settings.PasswordAuthentication = true;
};
# auto upgrade on pis can reboot unattended
system.autoUpgrade = {
operation = "boot";
allowReboot = true;
rebootWindow = { lower = "02:00"; upper = "05:00"; };
};
}