nix-config/src/main.nix

125 lines
1.9 KiB
Nix
Raw Normal View History

{ pkgs
, lib
, hypr-contrib
, nix-gaming
, ...
}:
2023-06-11 15:51:26 +02:00
let VARIABLES = import ./variables.nix; in {
imports = [
"${VARIABLES.hostHardwareConfiguration}"
../overlays
../modules
../home
2023-06-21 00:42:56 +02:00
../containers
];
# locale
2023-06-06 14:14:52 +02:00
i18n.defaultLocale = VARIABLES.defaultLocale;
i18n.supportedLocales = VARIABLES.supportedLocales;
hardware.opengl.driSupport32Bit = true;
environment.systemPackages = with pkgs; [
hypr-contrib.packages."${VARIABLES.system}".grimblast
nix-gaming.packages."${VARIABLES.system}".osu-stable
waycorner
slade
typespeed
osu-lazer-bin
2023-06-11 15:22:32 +02:00
pass
treefmt
jamesdsp
2023-06-05 18:16:21 +02:00
logseq
mullvad-browser
spek
gdu
fdupes
mediainfo
ponysay
lolcat
cmatrix
sox
httpie
p7zip
rsync
unar
genact
ffmpeg
killall
trashy
whois
dwt1-shell-color-scripts
dig
yt-dlp
neofetch
pywal
brightnessctl
zellij
hexyl
nb
jpegoptim
playerctl
recode
rmlint
sd
smartmontools
visidata
scc
hwinfo
stress
choose
gum
hdparm
imagemagick
onefetch
restic
watchexec
memento
mpvpaper
timg
ventoy
wf-recorder
mdcat
mdbook
zola
file
tessen
wtype
mtr
2023-06-13 00:35:19 +02:00
cointop
wl-clipboard
lnch
wev
swww
kickoff
greetd.tuigreet
hyprland-autoname-workspaces
srb2
crystalline
go-thumbnailer
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"osu-lazer-bin"
"vmware-workstation"
];
environment.sessionVariables = {
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
NODE_OPTIONS = "--max_old_space_size=16384";
};
environment.defaultPackages = [ ];
2023-06-06 11:15:41 +02:00
system.stateVersion = VARIABLES.stateVersion;
2023-06-13 00:35:19 +02:00
time.timeZone = "${VARIABLES.timezone}"; # Timezone
2023-06-05 18:12:12 +02:00
networking.firewall.allowedTCPPorts = [ 11918 ];
2023-05-18 21:54:15 +02:00
}