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;
|
|
|
|
|
|
|
|
|
|
nix = {
|
|
|
|
|
package = pkgs.nixFlakes;
|
|
|
|
|
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";
|
|
|
|
|
networking.extraHosts = "100.122.76.64 listenwithme.tailnet.ckie.dev";
|
|
|
|
|
|
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-08-12 18:31:05 +02:00
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
2022-08-12 12:14:32 +02:00
|
|
|
|
|
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-08-02 09:55:12 +02:00
|
|
|
|
programs.dconf.enable = true;
|
2022-08-12 12:14:32 +02:00
|
|
|
|
|
2022-09-05 18:31:22 +02:00
|
|
|
|
programs.kdeconnect.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;
|
|
|
|
|
|
|
|
|
|
hardware.opengl.enable = true;
|
|
|
|
|
|
|
|
|
|
services.xserver.layout = "us";
|
|
|
|
|
services.xserver.xkbVariant = "altgr-intl";
|
|
|
|
|
hardware.uinput.enable = true;
|
|
|
|
|
|
|
|
|
|
services.printing.enable = true;
|
2022-08-12 12:14:32 +02:00
|
|
|
|
# services.tailscale.enable = true;
|
2022-08-02 09:55:12 +02:00
|
|
|
|
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
hardware.keyboard.uhk.enable = true;
|
|
|
|
|
|
|
|
|
|
environment.sessionVariables = rec {
|
|
|
|
|
QT_QPA_PLATFORMTHEME = "qt5ct";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
users.users.jade = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
extraGroups = [ "wheel" "input" "uinput" "libvirtd" ];
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
2022-09-06 12:07:27 +02:00
|
|
|
|
# missing: picom-jonaburg
|
2022-08-02 09:55:12 +02:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
2022-09-01 21:23:12 +02:00
|
|
|
|
wget git neofetch pciutils pavucontrol font-manager zip unzip gnutar
|
2022-08-02 09:55:12 +02:00
|
|
|
|
iw btop xdotool xorg.xwininfo nodejs gparted networkmanagerapplet
|
2022-08-31 22:49:48 +02:00
|
|
|
|
mailspring betterdiscordctl pulseaudioFull speedtest-cli
|
2022-08-02 09:55:12 +02:00
|
|
|
|
librewolf polymc jdk8 jdk11 jdk vlc xfce.thunar xfce.tumbler
|
|
|
|
|
xfce.thunar-archive-plugin gnome.file-roller uhk-agent spotify spotify-tray
|
|
|
|
|
spotify-tui cool-retro-term lutris libsecret gh xorg.xhost helvum
|
2022-08-12 12:14:32 +02:00
|
|
|
|
xdg-desktop-portal-gtk nheko obsidian jetbrains.clion
|
2022-08-02 09:55:12 +02:00
|
|
|
|
jetbrains.webstorm jetbrains.datagrip jetbrains.idea-ultimate
|
|
|
|
|
jetbrains.pycharm-professional nix-prefetch-scripts audacity rustup
|
2022-08-12 12:14:32 +02:00
|
|
|
|
easyeffects virt-manager evince direnv nix-direnv python3Full
|
2022-09-09 12:55:45 +02:00
|
|
|
|
fzf openrgb krita gmic-qt-krita gimp-with-plugins inkscape-with-extensions blender virglrenderer ddccontrol-db
|
2022-08-02 09:55:12 +02:00
|
|
|
|
glab firebird-emu
|
2022-08-31 22:49:48 +02:00
|
|
|
|
discord
|
2022-09-05 18:31:46 +02:00
|
|
|
|
obs-studio kdenlive
|
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; [
|
|
|
|
|
nerdfonts montserrat noto-fonts
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
programs.mtr.enable = true;
|
|
|
|
|
programs.gnupg.agent = {
|
|
|
|
|
enable = true;
|
|
|
|
|
enableSSHSupport = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.zsh.enable = true;
|
|
|
|
|
users.defaultUserShell = pkgs.zsh;
|
|
|
|
|
|
|
|
|
|
services.openssh.enable = true;
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|