2023-06-11 15:33:54 +02:00
|
|
|
{ pkgs
|
|
|
|
, lib
|
|
|
|
, hypr-contrib
|
|
|
|
, nix-gaming
|
|
|
|
, crystal-flake
|
|
|
|
, nixpkgs-hyprland-autoname-workspaces
|
|
|
|
, nixpkgs-srb2
|
|
|
|
, ...
|
|
|
|
}:
|
2023-06-11 15:51:26 +02:00
|
|
|
|
|
|
|
let VARIABLES = import ./variables.nix; in {
|
2023-06-05 18:00:13 +02:00
|
|
|
imports = [
|
2023-06-06 03:23:27 +02:00
|
|
|
"${VARIABLES.hostHardwareConfiguration}"
|
2023-06-06 05:07:04 +02:00
|
|
|
../overlays
|
2023-06-06 03:14:44 +02:00
|
|
|
../modules
|
2023-06-16 14:12:58 +02:00
|
|
|
../home
|
2023-06-06 03:14:44 +02:00
|
|
|
../containers/rar.nix
|
|
|
|
../containers/wine.nix
|
2023-06-12 20:51:30 +02:00
|
|
|
../containers/dev.nix
|
2023-06-13 00:35:19 +02:00
|
|
|
../containers/gui.nix
|
2023-06-13 15:06:39 +02:00
|
|
|
../containers/srb2.nix
|
|
|
|
../containers/osu.nix
|
2023-06-05 18:00:13 +02:00
|
|
|
];
|
|
|
|
|
2023-05-25 15:09:53 +02:00
|
|
|
# locale
|
2023-06-06 14:14:52 +02:00
|
|
|
i18n.defaultLocale = VARIABLES.defaultLocale;
|
|
|
|
i18n.supportedLocales = VARIABLES.supportedLocales;
|
2023-05-25 15:09:53 +02:00
|
|
|
|
2023-06-05 18:00:13 +02:00
|
|
|
hardware.opengl.driSupport32Bit = true;
|
|
|
|
|
2023-06-16 14:19:22 +02:00
|
|
|
programs.neovim.enable = true;
|
2023-06-05 18:10:55 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2023-06-06 00:56:29 +02:00
|
|
|
hypr-contrib.packages."${VARIABLES.system}".grimblast
|
|
|
|
nix-gaming.packages."${VARIABLES.system}".osu-stable
|
2023-06-08 21:13:38 +02:00
|
|
|
crystal-flake.packages.${VARIABLES.system}.crystal
|
|
|
|
crystal-flake.packages.${VARIABLES.system}.crystalline
|
2023-06-13 00:35:19 +02:00
|
|
|
ameba
|
2023-06-10 16:41:16 +02:00
|
|
|
waycorner
|
|
|
|
nwg-dock-hyprland
|
2023-06-05 18:10:55 +02:00
|
|
|
slade
|
|
|
|
typespeed
|
|
|
|
osu-lazer-bin
|
2023-06-05 18:34:23 +02:00
|
|
|
mullvad-vpn
|
2023-06-11 15:22:32 +02:00
|
|
|
pass
|
|
|
|
treefmt
|
|
|
|
jamesdsp
|
2023-06-05 18:16:21 +02:00
|
|
|
|
2023-06-08 23:23:09 +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
|
|
|
|
librespeed-cli
|
|
|
|
wiki-tui
|
|
|
|
hexyl
|
|
|
|
nb
|
|
|
|
jpegoptim
|
|
|
|
playerctl
|
|
|
|
recode
|
|
|
|
rmlint
|
|
|
|
sd
|
|
|
|
shards
|
|
|
|
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
|
2023-06-08 23:23:09 +02:00
|
|
|
|
|
|
|
grim
|
|
|
|
slurp
|
|
|
|
wl-clipboard
|
|
|
|
lnch
|
|
|
|
wev
|
|
|
|
swww
|
|
|
|
kickoff
|
|
|
|
greetd.tuigreet
|
2023-06-09 00:18:11 +02:00
|
|
|
nixpkgs-hyprland-autoname-workspaces.legacyPackages.${VARIABLES.system}.hyprland-autoname-workspaces
|
2023-06-09 00:30:11 +02:00
|
|
|
nixpkgs-srb2.legacyPackages.${VARIABLES.system}.srb2
|
2023-06-05 18:10:55 +02:00
|
|
|
];
|
|
|
|
|
2023-06-06 02:37:52 +02:00
|
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
|
|
builtins.elem (lib.getName pkg) [
|
|
|
|
"osu-lazer-bin"
|
|
|
|
"vmware-workstation"
|
|
|
|
];
|
2023-06-05 18:00:13 +02:00
|
|
|
|
|
|
|
environment.sessionVariables = {
|
|
|
|
EDITOR = "nvim";
|
|
|
|
VISUAL = "nvim";
|
|
|
|
GIT_DISCOVERY_ACROSS_FILESYSTEM = "1";
|
|
|
|
FZF_DEFAULT_OPTS = "--height 40% --reverse --border --color=16";
|
|
|
|
NODE_OPTIONS = "--max_old_space_size=16384";
|
|
|
|
};
|
|
|
|
|
2023-06-11 15:33:54 +02:00
|
|
|
environment.defaultPackages = [ ];
|
2023-06-06 11:15:41 +02:00
|
|
|
system.stateVersion = VARIABLES.stateVersion;
|
2023-06-05 18:00:13 +02:00
|
|
|
|
2023-06-13 00:35:19 +02:00
|
|
|
systemd.extraConfig = "DefaultTimeoutStopSec=10s"; # Prevent hanging on shutdown
|
|
|
|
services.logind.lidSwitch = "ignore"; # Don't suspend on lid close
|
2023-06-18 21:31:24 +02:00
|
|
|
|
|
|
|
# Don't shutdown when power button is short-pressed
|
|
|
|
services.logind.extraConfig = "HandlePowerKey=ignore";
|
|
|
|
|
2023-06-13 00:35:19 +02:00
|
|
|
time.timeZone = "${VARIABLES.timezone}"; # Timezone
|
2023-06-05 18:12:12 +02:00
|
|
|
|
2023-06-05 18:34:23 +02:00
|
|
|
services.resolved.llmnr = "false";
|
|
|
|
|
|
|
|
systemd.services.NetworkManager-wait-online.enable = false;
|
|
|
|
|
|
|
|
# mullvad-vpn
|
|
|
|
services.mullvad-vpn = {
|
|
|
|
enable = true;
|
|
|
|
enableExcludeWrapper = false;
|
|
|
|
};
|
|
|
|
|
2023-06-11 15:33:54 +02:00
|
|
|
networking.firewall.allowedTCPPorts = [ 11918 ];
|
2023-06-05 18:34:23 +02:00
|
|
|
|
2023-06-13 00:35:19 +02:00
|
|
|
zramSwap.enable = true; # Swap
|
2023-05-18 21:54:15 +02:00
|
|
|
}
|