2024-09-20 21:49:07 -04:00
|
|
|
{
|
|
|
|
pkgs,
|
|
|
|
ezModules,
|
|
|
|
inputs,
|
|
|
|
modulesPath,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
2024-04-05 22:04:41 -04:00
|
|
|
|
2024-09-20 21:49:07 -04:00
|
|
|
let
|
|
|
|
pkgs-unstable = import inputs.nixunstable { inherit (pkgs.stdenv) system; };
|
|
|
|
in
|
2024-04-05 22:04:41 -04:00
|
|
|
{
|
2024-09-05 19:08:29 -04:00
|
|
|
imports = [
|
2024-09-21 20:07:40 -04:00
|
|
|
"${modulesPath}/installer/scan/not-detected.nix"
|
2024-09-20 21:49:07 -04:00
|
|
|
inputs.stylix.nixosModules.stylix
|
|
|
|
inputs.impermanence.nixosModules.impermanence
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-pstate
|
|
|
|
inputs.nixos-hardware.nixosModules.common-cpu-amd-zenpower
|
|
|
|
inputs.nixos-hardware.nixosModules.common-gpu-amd
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc
|
|
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
|
|
|
inputs.nixos-hardware.nixosModules.gigabyte-b550
|
|
|
|
ezModules.aarch64-emu
|
|
|
|
ezModules.smartd
|
|
|
|
ezModules.plymouth
|
2024-04-05 22:04:41 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
boot = {
|
2024-09-20 21:49:07 -04:00
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
binfmt.registrations.appimage = {
|
|
|
|
wrapInterpreterInShell = false;
|
|
|
|
interpreter = "${pkgs.appimage-run}/bin/appimage-run";
|
|
|
|
recognitionType = "magic";
|
|
|
|
offset = 0;
|
2024-05-11 12:51:25 -04:00
|
|
|
mask = "\\xff\\xff\\xff\\xff\\x00\\x00\\x00\\x00\\xff\\xff\\xff";
|
|
|
|
magicOrExtension = "\\x7fELF....AI\\x02";
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
2024-05-04 20:08:41 -04:00
|
|
|
tmp.cleanOnBoot = true;
|
2024-09-20 21:49:07 -04:00
|
|
|
kernelModules = [ "kvm-amd" ];
|
|
|
|
initrd.availableKernelModules = [
|
|
|
|
"nvme"
|
|
|
|
"xhci_pci"
|
|
|
|
"ahci"
|
|
|
|
"usb_storage"
|
|
|
|
"usbhid"
|
|
|
|
"sd_mod"
|
|
|
|
];
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "smolboi"; # Define your hostname.
|
2024-09-05 19:08:29 -04:00
|
|
|
networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
2024-04-05 22:04:41 -04:00
|
|
|
firewall.allowedTCPPorts = [ 22000 ];
|
2024-09-20 21:49:07 -04:00
|
|
|
useDHCP = lib.mkDefault true;
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
2024-09-20 21:49:07 -04:00
|
|
|
nixpkgs = {
|
|
|
|
config = {
|
|
|
|
allowUnfree = true;
|
|
|
|
permittedInsecurePackages = [ "electron-25.9.0" ];
|
|
|
|
packageOverrides = pkgs: {
|
2024-09-21 21:50:25 -04:00
|
|
|
steam = pkgs.steam.override { extraPkgs = pkgs: [ pkgs.winetricks ]; };
|
2024-09-20 21:49:07 -04:00
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
2024-09-20 21:49:07 -04:00
|
|
|
hostPlatform = lib.mkDefault "x86_64-linux";
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
2024-07-09 13:06:41 -04:00
|
|
|
ratbagd.enable = true;
|
2024-07-30 09:11:17 -04:00
|
|
|
displayManager = {
|
|
|
|
autoLogin.user = "cdombroski";
|
|
|
|
sddm = {
|
|
|
|
enable = true;
|
|
|
|
autoNumlock = true;
|
|
|
|
wayland.enable = true;
|
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
2024-05-30 20:39:54 -04:00
|
|
|
desktopManager.plasma6.enable = true;
|
2024-04-05 22:04:41 -04:00
|
|
|
|
|
|
|
printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [ pkgs.gutenprint ];
|
|
|
|
};
|
|
|
|
avahi = {
|
|
|
|
enable = true;
|
2024-05-30 20:39:54 -04:00
|
|
|
nssmdns4 = true;
|
|
|
|
nssmdns6 = true;
|
2024-04-05 22:04:41 -04:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
printing.cups-pdf.enable = true;
|
|
|
|
pipewire = {
|
|
|
|
enable = true;
|
|
|
|
alsa.enable = true;
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
pulse.enable = true;
|
|
|
|
};
|
|
|
|
hardware.openrgb.enable = true;
|
|
|
|
resolved.enable = true;
|
2024-05-03 16:59:53 -04:00
|
|
|
btrfs.autoScrub = {
|
|
|
|
enable = true;
|
2024-09-05 19:08:29 -04:00
|
|
|
fileSystems = [
|
|
|
|
"/"
|
|
|
|
"/home"
|
|
|
|
];
|
2024-05-03 16:59:53 -04:00
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
hardware = {
|
|
|
|
sane = {
|
|
|
|
enable = true;
|
|
|
|
extraBackends = [ pkgs.sane-airscan ];
|
|
|
|
};
|
|
|
|
bluetooth.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
security = {
|
|
|
|
rtkit.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
environment = {
|
2024-09-21 21:50:25 -04:00
|
|
|
systemPackages =
|
|
|
|
builtins.attrValues {
|
|
|
|
inherit (pkgs)
|
|
|
|
vim-full
|
|
|
|
libreoffice-qt
|
|
|
|
firefox
|
|
|
|
syncthing
|
|
|
|
chromium
|
|
|
|
skanlite
|
|
|
|
htop
|
|
|
|
kate
|
|
|
|
cifs-utils
|
|
|
|
tio
|
|
|
|
p7zip
|
|
|
|
rar
|
|
|
|
piper
|
|
|
|
element-desktop
|
|
|
|
discord
|
|
|
|
openrgb-with-all-plugins
|
|
|
|
keepassxc
|
|
|
|
heroic
|
|
|
|
r2modman
|
|
|
|
mangohud
|
|
|
|
hack-font
|
|
|
|
jellyfin-media-player
|
|
|
|
konversation
|
|
|
|
nixd
|
|
|
|
yakuake
|
2024-09-21 20:07:40 -04:00
|
|
|
mgba
|
2024-09-21 21:50:25 -04:00
|
|
|
vlc
|
|
|
|
dolphin-emu-primehack
|
|
|
|
steamtinkerlaunch
|
|
|
|
lutris
|
|
|
|
knossosnet
|
|
|
|
lilypond
|
|
|
|
musescore
|
|
|
|
protontricks
|
|
|
|
protonup-qt
|
|
|
|
;
|
|
|
|
inherit (pkgs-unstable.jetbrains) idea-community;
|
|
|
|
}
|
|
|
|
++ [
|
|
|
|
(pkgs.retroarch.override {
|
|
|
|
cores = builtins.attrValues {
|
|
|
|
inherit (pkgs.libretro)
|
|
|
|
beetle-psx-hw
|
|
|
|
pcsx2
|
|
|
|
mesen
|
|
|
|
bsnes
|
|
|
|
parallel-n64
|
|
|
|
dolphin
|
|
|
|
sameboy
|
|
|
|
citra
|
|
|
|
gpsp
|
|
|
|
desmume
|
|
|
|
fbneo
|
|
|
|
nxengine
|
|
|
|
mgba
|
|
|
|
;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2024-05-04 20:08:41 -04:00
|
|
|
persistence."/persist" = {
|
|
|
|
hideMounts = true;
|
|
|
|
directories = [
|
|
|
|
"/etc/NetworkManager/system-connections"
|
|
|
|
"/var/lib/bluetooth"
|
|
|
|
"/var/lib/nixos"
|
|
|
|
"/var/log"
|
|
|
|
"/var/lib/systemd"
|
|
|
|
"/tmp"
|
|
|
|
"/var/lib/cups"
|
|
|
|
];
|
|
|
|
files = [
|
|
|
|
"/etc/machine-id"
|
|
|
|
"/var/lib/NetworkManager/secret_key"
|
|
|
|
"/etc/adjtime"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key"
|
|
|
|
"/etc/ssh/ssh_host_rsa_key.pub"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key"
|
|
|
|
"/etc/ssh/ssh_host_ed25519_key.pub"
|
|
|
|
];
|
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
programs = {
|
|
|
|
gnupg.agent = {
|
|
|
|
enable = true;
|
|
|
|
enableSSHSupport = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
steam = {
|
|
|
|
enable = true;
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
gamescopeSession.enable = true;
|
|
|
|
};
|
2024-09-21 21:50:25 -04:00
|
|
|
firefox.nativeMessagingHosts.packages = [
|
|
|
|
pkgs.keepassxc
|
|
|
|
pkgs.kdePackages.plasma-browser-integration
|
2024-05-11 12:51:25 -04:00
|
|
|
];
|
2024-04-05 22:04:41 -04:00
|
|
|
gamemode = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
general = {
|
|
|
|
reaper_freq = 5;
|
|
|
|
desiredgov = "performance";
|
|
|
|
softrealtime = "auto";
|
|
|
|
};
|
|
|
|
gpu = {
|
|
|
|
apply_gpu_optimisations = "accept-responsibility";
|
|
|
|
gpu_device = 0;
|
|
|
|
amd_performance_level = "high";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
gamescope.enable = true;
|
|
|
|
};
|
|
|
|
zramSwap = {
|
|
|
|
enable = true;
|
2024-09-05 19:08:29 -04:00
|
|
|
writebackDevice = "/dev/disk/by-partuuid/e8f5eaf8-46ca-40de-854a-f6dfe964b92d";
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems = {
|
2024-09-20 21:49:07 -04:00
|
|
|
"/" = {
|
|
|
|
device = "none";
|
|
|
|
fsType = "tmpfs";
|
|
|
|
options = [
|
|
|
|
"defaults"
|
|
|
|
"size=2g"
|
|
|
|
"mode=755"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/persist" = {
|
|
|
|
device = "/dev/disk/by-uuid/d0eb1b09-7fba-49e3-b802-d6fdd9073516";
|
|
|
|
neededForBoot = true;
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [
|
|
|
|
"subvol=@nixos/root"
|
|
|
|
"compress=lzo"
|
|
|
|
"autodefrag"
|
|
|
|
"discard=async"
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/nix" = {
|
|
|
|
device = "/dev/disk/by-uuid/d0eb1b09-7fba-49e3-b802-d6fdd9073516";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [
|
|
|
|
"subvol=@nixos/nix"
|
|
|
|
"compress=lzo"
|
|
|
|
"autodefrag"
|
|
|
|
"discard=async"
|
|
|
|
"noatime"
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/steam-library" = {
|
|
|
|
device = "/dev/disk/by-uuid/d0eb1b09-7fba-49e3-b802-d6fdd9073516";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [
|
2024-09-22 10:19:45 -04:00
|
|
|
"subvol=@steam-library"
|
2024-09-20 21:49:07 -04:00
|
|
|
"compress=lzo"
|
|
|
|
"autodefrag"
|
|
|
|
"discard=async"
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/home" = {
|
|
|
|
device = "/dev/disk/by-uuid/8597952f-be42-4361-9be1-2c4af6ede9b8";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = [
|
|
|
|
"subvol=@home"
|
|
|
|
"compress=lzo"
|
|
|
|
"autodefrag"
|
|
|
|
"discard=async"
|
|
|
|
"defaults"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
"/boot" = {
|
|
|
|
device = "/dev/disk/by-uuid/1ADE-808D";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
2024-04-05 22:04:41 -04:00
|
|
|
};
|
|
|
|
|
2024-05-27 21:02:31 -04:00
|
|
|
stylix = {
|
2024-09-05 19:08:29 -04:00
|
|
|
image = "${pkgs.kdePackages.breeze}/share/wallpapers/Next/contents/images_dark/2560x1440.png";
|
2024-05-31 21:59:03 -04:00
|
|
|
base16Scheme = "${pkgs.base16-schemes}/share/themes/solarflare.yaml";
|
2024-05-27 21:02:31 -04:00
|
|
|
fonts = {
|
|
|
|
serif = {
|
|
|
|
package = pkgs.noto-fonts;
|
|
|
|
name = "Noto Serif";
|
|
|
|
};
|
|
|
|
sansSerif = {
|
|
|
|
package = pkgs.noto-fonts;
|
|
|
|
name = "Noto Sans";
|
|
|
|
};
|
|
|
|
monospace = {
|
|
|
|
package = pkgs.jetbrains-mono;
|
|
|
|
name = "JetBrains Mono Regular";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
cursor = {
|
2024-05-31 20:04:28 -04:00
|
|
|
package = pkgs.kdePackages.breeze;
|
2024-05-27 21:02:31 -04:00
|
|
|
name = "breeze_cursors";
|
|
|
|
size = 24;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-04-05 22:04:41 -04:00
|
|
|
system.stateVersion = "23.11"; # Did you read the comment?
|
|
|
|
}
|