mirror of
https://github.com/Username404-59/Dotfiles-NixOS.git
synced 2026-07-03 12:58:07 +02:00
89 lines
2.0 KiB
Nix
89 lines
2.0 KiB
Nix
{ pkgs, lib, nixtamal, ... }:
|
|
|
|
let
|
|
functions = rec {
|
|
mkSpecial = pkg: version: suffix:
|
|
pkg.overrideAttrs (old: {
|
|
inherit version;
|
|
src = nixtamal.${pkg.pname + suffix};
|
|
});
|
|
mkSpecialVersion = pkg: version: mkSpecial pkg version "";
|
|
mkUnstable = pkg: mkSpecial pkg "unstable" "-git";
|
|
|
|
mkPatched = pkg: newPatches:
|
|
pkg.overrideAttrs (old: {
|
|
patches = newPatches;
|
|
});
|
|
mkPatchedAuto = pkg: mkPatched pkg [ nixtamal.${pkg.pname + "-patch"} ];
|
|
};
|
|
in
|
|
{
|
|
_module.args.functions = functions;
|
|
home-manager.extraSpecialArgs = { inherit functions; };
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
git git-lfs
|
|
curl
|
|
wget
|
|
neovim
|
|
fastfetch
|
|
htop
|
|
killall
|
|
file
|
|
e2fsprogs
|
|
cpu-x
|
|
steam-run
|
|
exfatprogs
|
|
pkgs.nixtamal # Important
|
|
android-tools
|
|
kdePackages.kleopatra # Needed to add keys easily
|
|
nload
|
|
graalvmPackages.graalvm-ce # Java
|
|
clang gcc mold
|
|
cmake
|
|
sbctl # For secure boot with Limine
|
|
jq # I use it somewhere in my nixtamal manifest
|
|
];
|
|
|
|
programs.steam = {
|
|
enable = true;
|
|
dedicatedServer.openFirewall = true;
|
|
remotePlay.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
extraCompatPackages = with pkgs; [
|
|
proton-ge-bin
|
|
dw-proton-bin # From nix-citizen overlay
|
|
];
|
|
# Note: to make another disk visible to games add
|
|
# STEAM_COMPAT_MOUNTS=/disk2 %command%
|
|
# to commandline options
|
|
};
|
|
programs.gamescope = {
|
|
enable = true;
|
|
capSysNice = true;
|
|
};
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
services.lact = {
|
|
enable = true;
|
|
package = functions.mkPatchedAuto pkgs.lact;
|
|
};
|
|
|
|
programs.gnupg.agent = {
|
|
enable = true;
|
|
enableSSHSupport = true;
|
|
pinentryPackage = pkgs.pinentry-qt;
|
|
};
|
|
|
|
programs.partition-manager.enable = true;
|
|
|
|
environment.sessionVariables = rec {
|
|
NIXTAMAL_DIRECTORY = "tamal";
|
|
};
|
|
|
|
environment.shellAliases = {
|
|
nixtamal = "bash -c 'cd /etc/nixos && nixtamal \"$@\"' --";
|
|
};
|
|
}
|