Update NixOS config
This commit is contained in:
parent
14cdb748d0
commit
9d9a349b65
@ -1,7 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
my-python-packages = python-packages: with python-packages; [
|
my-python3-packages = python3-packages: with python3-packages; [
|
||||||
pip setuptools
|
pip setuptools
|
||||||
z3
|
z3
|
||||||
requests
|
requests
|
||||||
@ -12,17 +12,18 @@ let
|
|||||||
markdown
|
markdown
|
||||||
psutil
|
psutil
|
||||||
];
|
];
|
||||||
my-python2-packages = python2-packages: with python2-packages; [
|
#my-python2-packages = python2-packages: with python2-packages; [
|
||||||
pip setuptools
|
# pip setuptools
|
||||||
cython
|
# cython
|
||||||
pygame
|
# pygame
|
||||||
numpy
|
# numpy
|
||||||
pillow
|
# pillow
|
||||||
pyopengl
|
# pyopengl
|
||||||
pyopengl-accelerate
|
# pyopengl-accelerate
|
||||||
];
|
#];
|
||||||
python-with-my-packages = pkgs.python3.withPackages my-python-packages;
|
python3-with-my-packages = pkgs.python3.withPackages my-python3-packages;
|
||||||
python2-with-my-packages = pkgs.python2.withPackages my-python2-packages;
|
#python2-with-my-packages = pkgs.python2.withPackages my-python2-packages;
|
||||||
|
linuxPackages = pkgs.linuxPackages_5_10;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports =
|
imports =
|
||||||
@ -33,7 +34,7 @@ in
|
|||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
boot.kernelPackages = pkgs.linuxPackages_5_10;
|
boot.kernelPackages = linuxPackages;
|
||||||
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||||
boot.kernelModules = [ "v4l2loopback" ];
|
boot.kernelModules = [ "v4l2loopback" ];
|
||||||
boot.kernelParams = [ "mitigations=off" ];
|
boot.kernelParams = [ "mitigations=off" ];
|
||||||
@ -65,7 +66,15 @@ in
|
|||||||
networking.firewall.logRefusedConnections = false;
|
networking.firewall.logRefusedConnections = false;
|
||||||
networking.firewall.rejectPackets = true;
|
networking.firewall.rejectPackets = true;
|
||||||
networking.firewall.allowedTCPPorts = [ 12783 12975 25565 ];
|
networking.firewall.allowedTCPPorts = [ 12783 12975 25565 ];
|
||||||
|
networking.firewall.allowedTCPPortRanges = [
|
||||||
|
# KDE Connect
|
||||||
|
{ from = 1714; to = 1764; }
|
||||||
|
];
|
||||||
networking.firewall.allowedUDPPorts = [ 12975 ];
|
networking.firewall.allowedUDPPorts = [ 12975 ];
|
||||||
|
networking.firewall.allowedUDPPortRanges = [
|
||||||
|
# KDE Connect
|
||||||
|
{ from = 1714; to = 1764; }
|
||||||
|
];
|
||||||
# Or disable the firewall altogether.
|
# Or disable the firewall altogether.
|
||||||
#networking.firewall.enable = false;
|
#networking.firewall.enable = false;
|
||||||
|
|
||||||
@ -84,14 +93,14 @@ in
|
|||||||
XDG_CACHE_HOME = "$HOME/.cache";
|
XDG_CACHE_HOME = "$HOME/.cache";
|
||||||
XDG_DATA_HOME = "$HOME/.local/share";
|
XDG_DATA_HOME = "$HOME/.local/share";
|
||||||
|
|
||||||
KDEHOME = "/home/arne/.config/kde";
|
KDEHOME = "$HOME/.config/kde";
|
||||||
KDESYCOCA = "/home/arne/.cache/kdesycoca";
|
KDESYCOCA = "$HOME/.cache/kdesycoca";
|
||||||
KDE_HOME_READONLY = "1";
|
KDE_HOME_READONLY = "1";
|
||||||
KDE_UTF8_FILENAMES = "1";
|
KDE_UTF8_FILENAMES = "1";
|
||||||
ANDROID_SDK_HOME = "/home/arne/.cache";
|
ANDROID_SDK_HOME = "$HOME/.cache";
|
||||||
GRADLE_USER_HOME = "/home/arne/.cache/gradle";
|
GRADLE_USER_HOME = "$HOME/.cache/gradle";
|
||||||
MATHEMATICA_USERBASE = "/home/arne/.cache/mathematica";
|
MATHEMATICA_USERBASE = "$HOME/.cache/mathematica";
|
||||||
XCOMPOSECACHE = "/home/arne/.cache/X11/xcompose";
|
XCOMPOSECACHE = "$HOME/.cache/X11/xcompose";
|
||||||
};
|
};
|
||||||
environment.extraInit = ''
|
environment.extraInit = ''
|
||||||
export XAUTHORITY=/tmp/Xauthority
|
export XAUTHORITY=/tmp/Xauthority
|
||||||
@ -129,6 +138,10 @@ in
|
|||||||
liberation_ttf
|
liberation_ttf
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.docker.enable = true;
|
||||||
|
virtualisation.docker.logDriver = "journald";
|
||||||
|
#virtualisation.anbox.enable = true;
|
||||||
|
|
||||||
# services.printing.enable = true;
|
# services.printing.enable = true;
|
||||||
services.boinc.enable = true;
|
services.boinc.enable = true;
|
||||||
services.vnstat.enable = true;
|
services.vnstat.enable = true;
|
||||||
@ -184,9 +197,12 @@ in
|
|||||||
"mathematica"
|
"mathematica"
|
||||||
"idea-ultimate"
|
"idea-ultimate"
|
||||||
"android-studio-stable"
|
"android-studio-stable"
|
||||||
"logmein-hamachi"
|
#"logmein-hamachi"
|
||||||
];
|
];
|
||||||
packageOverrides = super: let self = super.pkgs; in {
|
packageOverrides = super: let self = super.pkgs; in {
|
||||||
|
maven = super.maven.override {
|
||||||
|
jdk = super.pkgs.jdk11;
|
||||||
|
};
|
||||||
# remove tesseract and ImageMagick
|
# remove tesseract and ImageMagick
|
||||||
ripgrep-all = super.ripgrep-all.overrideDerivation (attrs: {
|
ripgrep-all = super.ripgrep-all.overrideDerivation (attrs: {
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
@ -195,9 +211,25 @@ in
|
|||||||
'';
|
'';
|
||||||
doInstallCheck = false;
|
doInstallCheck = false;
|
||||||
});
|
});
|
||||||
|
qbittorrent = super.qbittorrent.overrideAttrs (attrs: rec {
|
||||||
|
version = "4.3.4.1";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "qbittorrent";
|
||||||
|
repo = "qbittorrent";
|
||||||
|
rev = "release-4.3.4.1"; # TODO: is there some reason this also has to be specified?
|
||||||
|
sha256 = "0hpv99ky077h5rvxxd76l5xv99ivqa1hq6739jp1gvl4w6w3cbgc";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
# remove openssl
|
||||||
|
#rustup = super.rustup.overrideAttrs (attrs: rec {
|
||||||
|
# buildInputs = [ super.pkgs.zlib ];
|
||||||
|
# # this does not actually work due to #103130
|
||||||
|
# cargoBuildFlags = [ "--no-default-features" "--features" "no-self-update" "reqwest-backend" "reqwest-rustls-tls" ];
|
||||||
|
# doCheck = false;
|
||||||
|
#});
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# programs.steam.enable = true;
|
programs.steam.enable = true;
|
||||||
programs.zsh.enable = true;
|
programs.zsh.enable = true;
|
||||||
programs.zsh.enableGlobalCompInit = false;
|
programs.zsh.enableGlobalCompInit = false;
|
||||||
programs.adb.enable = true;
|
programs.adb.enable = true;
|
||||||
@ -232,14 +264,15 @@ in
|
|||||||
|
|
||||||
# programming environments
|
# programming environments
|
||||||
geckodriver
|
geckodriver
|
||||||
python2-with-my-packages
|
#python2-with-my-packages
|
||||||
python-with-my-packages
|
python3-with-my-packages
|
||||||
jdk14 maven visualvm
|
jdk11 maven visualvm
|
||||||
rustup
|
rustup
|
||||||
jupyter
|
jupyter
|
||||||
vscodium
|
vscodium
|
||||||
jetbrains.idea-ultimate
|
jetbrains.idea-ultimate
|
||||||
androidStudioPackages.stable
|
#androidStudioPackages.stable
|
||||||
|
nodejs
|
||||||
|
|
||||||
# CLI applications
|
# CLI applications
|
||||||
lynx
|
lynx
|
||||||
@ -250,6 +283,10 @@ in
|
|||||||
gallery-dl
|
gallery-dl
|
||||||
youtube-dl
|
youtube-dl
|
||||||
plantuml
|
plantuml
|
||||||
|
tectonic
|
||||||
|
docker-compose
|
||||||
|
qemu
|
||||||
|
graphviz
|
||||||
|
|
||||||
# GUI applications
|
# GUI applications
|
||||||
sqlitebrowser
|
sqlitebrowser
|
||||||
@ -275,6 +312,8 @@ in
|
|||||||
plasma-vault
|
plasma-vault
|
||||||
ksshaskpass
|
ksshaskpass
|
||||||
notepadqq
|
notepadqq
|
||||||
|
mpv
|
||||||
|
bitcoin
|
||||||
|
|
||||||
xorg.xkbcomp
|
xorg.xkbcomp
|
||||||
xorg.xrandr
|
xorg.xrandr
|
||||||
@ -283,36 +322,26 @@ in
|
|||||||
xclip
|
xclip
|
||||||
ntfs3g
|
ntfs3g
|
||||||
cryptsetup pinentry-qt
|
cryptsetup pinentry-qt
|
||||||
logmein-hamachi
|
|
||||||
mpv
|
|
||||||
wineWowPackages.full
|
wineWowPackages.full
|
||||||
winetricks
|
winetricks
|
||||||
cdrkit
|
cdrkit
|
||||||
vnstat
|
vnstat
|
||||||
aspellDicts.de
|
aspellDicts.de
|
||||||
hunspellDicts.de-de
|
hunspellDicts.de-de
|
||||||
bitcoin
|
#texlive.combined.scheme-full
|
||||||
qemu
|
linuxPackages.perf
|
||||||
docker-compose
|
|
||||||
update-resolv-conf
|
|
||||||
texlive.combined.scheme-full
|
|
||||||
tectonic
|
|
||||||
linuxPackages_5_10.perf
|
|
||||||
perf-tools
|
perf-tools
|
||||||
smartmontools
|
smartmontools
|
||||||
nodejs
|
|
||||||
libfaketime
|
libfaketime
|
||||||
afl
|
afl
|
||||||
|
|
||||||
|
# Games
|
||||||
multimc
|
multimc
|
||||||
minecraft
|
minecraft
|
||||||
|
#logmein-hamachi
|
||||||
|
|
||||||
update-resolv-conf
|
update-resolv-conf
|
||||||
openssl
|
|
||||||
];
|
];
|
||||||
virtualisation.docker.enable = true;
|
|
||||||
virtualisation.docker.logDriver = "journald";
|
|
||||||
|
|
||||||
# This value determines the NixOS release from which the default
|
# This value determines the NixOS release from which the default
|
||||||
# settings for stateful data, like file locations and database versions
|
# settings for stateful data, like file locations and database versions
|
||||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||||
|
Loading…
Reference in New Issue
Block a user