2022-08-02 09:55:12 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
2022-08-12 12:14:32 +02:00
|
|
|
|
{ config, pkgs, lib, ... }:
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-08-12 12:14:32 +02:00
|
|
|
|
# let smol = import <nixos-unstable-small> {config.allowUnfree = true;};
|
|
|
|
|
with lib;
|
|
|
|
|
with builtins;
|
|
|
|
|
{
|
|
|
|
|
imports = [ ./modules ];
|
2022-08-02 09:55:12 +02:00
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
|
2022-10-23 15:28:26 +02:00
|
|
|
|
nixpkgs.overlays = [
|
|
|
|
|
(import (builtins.fetchTarball "https://github.com/PrismLauncher/PrismLauncher/archive/develop.tar.gz")).overlay
|
|
|
|
|
];
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
nix = {
|
2022-10-02 17:39:04 +02:00
|
|
|
|
package = pkgs.nixVersions.stable;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
extraOptions = ''
|
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
|
keep-outputs = true
|
|
|
|
|
keep-derivations = true
|
|
|
|
|
'';
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
networking.networkmanager.enable = true; # Easiest to use and most distros use this by default.
|
|
|
|
|
networking.networkmanager.wifi.backend = "iwd";
|
2022-09-20 20:28:13 +02:00
|
|
|
|
networking.extraHosts = ''
|
2022-10-02 17:39:04 +02:00
|
|
|
|
127.0.0.1 www.youtube.com
|
|
|
|
|
127.0.0.1 www.reddit.com
|
|
|
|
|
127.0.0.1 www.tiktok.com
|
|
|
|
|
127.0.0.1 www.twitter.com
|
|
|
|
|
127.0.0.1 www.instagram.com
|
|
|
|
|
127.0.0.1 www.facebook.com
|
|
|
|
|
127.0.0.1 www.snapchat.com
|
|
|
|
|
|
2022-09-21 00:10:30 +02:00
|
|
|
|
127.0.0.1 youtube.com
|
|
|
|
|
127.0.0.1 reddit.com
|
2022-10-02 17:39:04 +02:00
|
|
|
|
127.0.0.1 tiktok.com
|
2022-09-21 00:10:30 +02:00
|
|
|
|
127.0.0.1 twitter.com
|
|
|
|
|
127.0.0.1 instagram.com
|
|
|
|
|
127.0.0.1 facebook.com
|
2022-09-26 19:30:49 +02:00
|
|
|
|
127.0.0.1 snapchat.com
|
2022-09-21 08:58:48 +02:00
|
|
|
|
|
|
|
|
|
127.0.0.1 google-analytics.com
|
|
|
|
|
127.0.0.1 stats.g.doubleclick.net
|
|
|
|
|
127.0.0.1 googleadservices.com
|
|
|
|
|
127.0.0.1 googletagmanager.com
|
|
|
|
|
127.0.0.1 googletagservices.com
|
|
|
|
|
127.0.0.1 googlesyndication.com
|
2022-09-20 20:28:13 +02:00
|
|
|
|
'';
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-08-12 12:14:32 +02:00
|
|
|
|
home-manager.users.jade = { nixosConfig, pkgs, ... }: {
|
|
|
|
|
home.sessionVariables.TZ = nixosConfig.time.timeZone;
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-09-28 18:55:03 +02:00
|
|
|
|
nixpkgs.config.packageOverrides = pkgs: {
|
|
|
|
|
sudo = pkgs.sudo.override { withInsults = true; };
|
|
|
|
|
};
|
|
|
|
|
security.sudo.extraConfig = "Defaults insults";
|
|
|
|
|
|
2022-08-12 18:31:05 +02:00
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
2022-08-12 12:14:32 +02:00
|
|
|
|
|
2022-12-31 23:50:30 +01:00
|
|
|
|
wacom.enable = true;
|
|
|
|
|
libinput = {
|
|
|
|
|
enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-12 18:31:05 +02:00
|
|
|
|
desktopManager = {
|
|
|
|
|
xterm.enable = false;
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-08-12 18:31:05 +02:00
|
|
|
|
displayManager = {
|
|
|
|
|
defaultSession = "none+i3";
|
|
|
|
|
gdm.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
windowManager.i3 = {
|
|
|
|
|
enable = true;
|
|
|
|
|
package = pkgs.i3-gaps;
|
|
|
|
|
extraPackages = with pkgs; [
|
|
|
|
|
gnome.gdm i3lock-fancy rofi rofimoji volumeicon feh xorg.xinput dunst
|
|
|
|
|
arandr lxappearance gruvbox-dark-gtk gruvbox-dark-icons-gtk
|
|
|
|
|
gruvterial-theme flameshot tesseract5 imagemagick xclip polybar kitty
|
|
|
|
|
xkeysnail gtk-engine-murrine playerctl xmacro
|
2022-12-31 23:50:30 +01:00
|
|
|
|
libwacom wacomtablet xorg.xev
|
2022-08-12 18:31:05 +02:00
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
programs.dconf.enable = true;
|
2022-09-05 18:31:22 +02:00
|
|
|
|
programs.kdeconnect.enable = true;
|
2022-09-10 12:18:11 +02:00
|
|
|
|
programs.corectrl.enable = true;
|
|
|
|
|
|
2022-08-12 12:14:32 +02:00
|
|
|
|
qt5.platformTheme = "qt5ct";
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
|
|
|
|
virtualisation.libvirtd.enable = true;
|
|
|
|
|
|
2022-10-07 00:49:16 +02:00
|
|
|
|
boot.plymouth = {
|
|
|
|
|
enable = true;
|
2022-10-16 22:05:04 +02:00
|
|
|
|
#theme = "glow";
|
2022-10-07 00:49:16 +02:00
|
|
|
|
};
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
|
|
|
|
services.xserver.layout = "us";
|
|
|
|
|
services.xserver.xkbVariant = "altgr-intl";
|
|
|
|
|
hardware.uinput.enable = true;
|
|
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
2023-01-06 14:22:42 +01:00
|
|
|
|
#alsa.support32Bit = true;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
pulse.enable = true;
|
2023-01-06 14:22:42 +01:00
|
|
|
|
jack.enable = true;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
hardware.keyboard.uhk.enable = true;
|
|
|
|
|
|
2023-01-06 14:22:42 +01:00
|
|
|
|
hardware.spacenavd.enable = true;
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
environment.sessionVariables = rec {
|
|
|
|
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
2022-10-23 15:28:26 +02:00
|
|
|
|
TERMINAL = "kitty";
|
2022-08-02 09:55:12 +02:00
|
|
|
|
};
|
2023-01-06 14:22:42 +01:00
|
|
|
|
users.users.jade = {
|
2022-08-02 09:55:12 +02:00
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "wheel" "input" "uinput" "libvirtd" ];
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
2022-09-26 19:33:48 +02:00
|
|
|
|
zramSwap = {
|
|
|
|
|
enable = true;
|
|
|
|
|
algorithm = "zstd";
|
|
|
|
|
};
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
2022-09-06 12:07:27 +02:00
|
|
|
|
# missing: picom-jonaburg
|
2022-08-02 09:55:12 +02:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
2022-10-02 17:39:04 +02:00
|
|
|
|
# spotify-tui jetbrains.webstorm jetbrains.datagrip jetbrains.idea-ultimate jetbrains.pycharm-professional python3Full jetbrains.clion
|
|
|
|
|
wget git neofetch pciutils pavucontrol font-manager zip unzip gnutar iw
|
|
|
|
|
btop xdotool xorg.xwininfo nodejs gparted networkmanagerapplet mailspring
|
2022-12-31 23:50:30 +01:00
|
|
|
|
betterdiscordctl pulseaudioFull speedtest-cli librewolf firefox jdk8 jdk11
|
2022-10-02 17:39:04 +02:00
|
|
|
|
jdk vlc xfce.thunar xfce.tumbler xfce.thunar-archive-plugin
|
|
|
|
|
gnome.file-roller uhk-agent spotify spotify-tray cool-retro-term lutris
|
|
|
|
|
libsecret gh xorg.xhost helvum xdg-desktop-portal-gtk nheko obsidian
|
|
|
|
|
nix-prefetch-scripts audacity rustup easyeffects virt-manager evince direnv
|
|
|
|
|
nix-direnv fzf openrgb krita gmic-qt-krita gimp-with-plugins
|
2023-01-08 22:22:19 +01:00
|
|
|
|
inkscape-with-extensions virglrenderer ddccontrol-db glab
|
2022-10-02 17:39:04 +02:00
|
|
|
|
firebird-emu obs-studio kdenlive openal
|
2022-10-07 00:49:16 +02:00
|
|
|
|
mullvad mullvad-vpn
|
2023-01-29 13:38:53 +01:00
|
|
|
|
sl lolcat ifuse
|
2023-01-08 16:47:51 +01:00
|
|
|
|
fspy spacenav-cube-example
|
2022-12-31 23:50:30 +01:00
|
|
|
|
cava appimage-run
|
2023-01-20 15:12:33 +01:00
|
|
|
|
spacenavd libspnav fluent-reader
|
2022-12-13 18:57:27 +01:00
|
|
|
|
#prismlauncher
|
2023-01-29 13:38:53 +01:00
|
|
|
|
evolution
|
|
|
|
|
godot
|
2023-01-08 19:50:38 +01:00
|
|
|
|
gitg gnome-builder git-crypt
|
2022-11-20 22:01:49 +01:00
|
|
|
|
gpick qdirstat file whois ffmpeg_5 scribus p7zip file nmap cmatrix tree socat libreoffice
|
2022-08-02 09:55:12 +02:00
|
|
|
|
];
|
|
|
|
|
|
2023-01-06 14:22:42 +01:00
|
|
|
|
programs.noisetorch.enable = true;
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
environment.pathsToLink = [
|
|
|
|
|
"/share/nix-direnv"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
services.flatpak.enable = true;
|
|
|
|
|
xdg.portal.enable = true;
|
|
|
|
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
|
|
|
|
|
|
|
|
|
fonts.fonts = with pkgs; [
|
2023-01-29 13:38:53 +01:00
|
|
|
|
nerdfonts montserrat noto-fonts atkinson-hyperlegible
|
2022-08-02 09:55:12 +02:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
2022-10-07 00:49:16 +02:00
|
|
|
|
services.mullvad-vpn.enable = true;
|
|
|
|
|
|
2022-08-02 09:55:12 +02:00
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
programs.seahorse.enable = true;
|
|
|
|
|
security.pam.services.jade.enableGnomeKeyring = true;
|
|
|
|
|
|
|
|
|
|
# Copy the NixOS configuration file and link it from the resulting system
|
|
|
|
|
# (/run/current-system/configuration.nix). This is useful in case you
|
|
|
|
|
# accidentally delete configuration.nix.
|
|
|
|
|
# system.copySystemConfiguration = true;
|
|
|
|
|
|
2022-08-31 22:49:48 +02:00
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8384 22000 ];
|
|
|
|
|
networking.firewall.allowedUDPPorts = [ 8080 22000 21027 ];
|
2022-08-02 09:55:12 +02:00
|
|
|
|
systemd.services."NetworkManager-wait-online".enable = false;
|
2022-09-02 08:40:33 +02:00
|
|
|
|
|
|
|
|
|
services.syncthing = rec {
|
|
|
|
|
enable = true;
|
|
|
|
|
user = "jade";
|
|
|
|
|
dataDir = "/home/${user}/Documents";
|
|
|
|
|
configDir = "/home/${user}/Documents/.config/syncthing";
|
|
|
|
|
};
|
2022-08-02 09:55:12 +02:00
|
|
|
|
}
|
|
|
|
|
|