2024-11-12 23:44:38 +01:00
|
|
|
|
{ config, lib, pkgs, inputs, ... }:
|
2024-08-12 00:33:16 +02:00
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
|
|
|
|
./hardware.nix
|
|
|
|
|
];
|
|
|
|
|
|
2024-11-12 23:44:38 +01:00
|
|
|
|
# Configure Nix
|
|
|
|
|
nix.package = pkgs.lix;
|
|
|
|
|
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
|
nixpkgs.config.permittedInsecurePackages = [
|
|
|
|
|
"electron-27.3.11"
|
|
|
|
|
"olm-3.2.16"
|
|
|
|
|
];
|
2024-11-16 04:09:18 +01:00
|
|
|
|
nix.settings.trusted-public-keys = [
|
|
|
|
|
"cache.HyperC:90YNJ0eWsuBGVVP989lJh1rL8C0KM6IKbAtEUiu+FCU="
|
|
|
|
|
];
|
|
|
|
|
|
2024-11-12 23:44:38 +01:00
|
|
|
|
|
2024-08-12 00:33:16 +02:00
|
|
|
|
# Bootloader.
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
|
|
# Crosscompiling
|
|
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
|
|
|
|
|
|
networking.hostName = "voloxo"; # Define your hostname.
|
|
|
|
|
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
|
|
|
|
|
|
|
|
|
# Configure network proxy if necessary
|
|
|
|
|
# networking.proxy.default = "http://user:password@proxy:port/";
|
|
|
|
|
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
|
|
|
|
|
|
|
|
|
# Enable networking
|
|
|
|
|
networking.networkmanager.enable = true;
|
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Berlin";
|
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
|
LC_ADDRESS = "de_DE.UTF-8";
|
|
|
|
|
LC_IDENTIFICATION = "de_DE.UTF-8";
|
|
|
|
|
LC_MEASUREMENT = "de_DE.UTF-8";
|
|
|
|
|
LC_MONETARY = "de_DE.UTF-8";
|
|
|
|
|
LC_NAME = "de_DE.UTF-8";
|
|
|
|
|
LC_NUMERIC = "de_DE.UTF-8";
|
|
|
|
|
LC_PAPER = "de_DE.UTF-8";
|
|
|
|
|
LC_TELEPHONE = "de_DE.UTF-8";
|
|
|
|
|
LC_TIME = "de_DE.UTF-8";
|
|
|
|
|
};
|
|
|
|
|
|
2024-11-12 23:44:38 +01:00
|
|
|
|
|
2024-08-12 00:33:16 +02:00
|
|
|
|
|
|
|
|
|
# Nvidia Configuration
|
|
|
|
|
hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
|
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
hardware.bluetooth.powerOnBoot = true;
|
|
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
|
|
|
|
services.xserver.enable = true;
|
|
|
|
|
|
|
|
|
|
services.xserver.videoDrivers = [ "nvidia" ];
|
|
|
|
|
|
|
|
|
|
# Enable the KDE Plasma Desktop Environment.
|
|
|
|
|
services.displayManager.sddm.enable = true;
|
|
|
|
|
services.xserver.desktopManager.plasma5.enable = true;
|
|
|
|
|
|
|
|
|
|
# Configure keymap in X11
|
|
|
|
|
services.xserver.xkb = {
|
|
|
|
|
layout = "us,dv2,de";
|
|
|
|
|
variant = "esc:swapcaps";
|
|
|
|
|
extraLayouts.dv2 = {
|
|
|
|
|
description = "German Dvorak Type 2";
|
|
|
|
|
languages = [ "de" ];
|
|
|
|
|
symbolsFile = ./symbols/dv2;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Configure console keymap
|
|
|
|
|
console.keyMap = "de";
|
|
|
|
|
|
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable sound with pipewire.
|
|
|
|
|
hardware.pulseaudio.enable = false;
|
|
|
|
|
security.rtkit.enable = true;
|
|
|
|
|
services.pipewire = {
|
|
|
|
|
enable = true;
|
|
|
|
|
alsa.enable = true;
|
|
|
|
|
alsa.support32Bit = true;
|
|
|
|
|
pulse.enable = true;
|
|
|
|
|
# If you want to use JACK applications, uncomment this
|
|
|
|
|
#jack.enable = true;
|
|
|
|
|
|
|
|
|
|
# use the example session manager (no others are packaged yet so this is enabled by default,
|
|
|
|
|
# no need to redefine it in your config for now)
|
|
|
|
|
#media-session.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable touchpad support (enabled default in most desktopManager).
|
|
|
|
|
# services.xserver.libinput.enable = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.kb = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
description = "kb";
|
|
|
|
|
extraGroups = [ "networkmanager" "wheel" ];
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
|
firefox
|
|
|
|
|
kate
|
|
|
|
|
thunderbird
|
|
|
|
|
cheese
|
|
|
|
|
obs-studio
|
2024-11-12 23:44:38 +01:00
|
|
|
|
# blender
|
2024-08-12 00:33:16 +02:00
|
|
|
|
syncthing
|
|
|
|
|
keepassxc
|
|
|
|
|
freetube
|
|
|
|
|
libreoffice
|
|
|
|
|
adafruit-nrfutil
|
|
|
|
|
prismlauncher
|
|
|
|
|
gimp
|
|
|
|
|
inkscape
|
|
|
|
|
veracrypt
|
|
|
|
|
matrix-commander
|
|
|
|
|
vlc
|
|
|
|
|
protonvpn-gui
|
|
|
|
|
telegram-desktop
|
|
|
|
|
logseq
|
|
|
|
|
signal-desktop
|
|
|
|
|
kid3
|
2024-10-18 00:21:52 +02:00
|
|
|
|
#calibre
|
2024-08-12 00:33:16 +02:00
|
|
|
|
spotify-player
|
|
|
|
|
tidal-hifi
|
|
|
|
|
iamb # Matrix with Vim-Binds
|
|
|
|
|
yazi
|
|
|
|
|
nerdfonts
|
|
|
|
|
scrcpy
|
|
|
|
|
ryujinx
|
|
|
|
|
razergenie
|
|
|
|
|
webcord
|
2024-09-02 22:28:13 +02:00
|
|
|
|
mangohud
|
2024-09-03 23:01:50 +02:00
|
|
|
|
vscodium
|
|
|
|
|
pass-wayland
|
2024-09-03 23:03:03 +02:00
|
|
|
|
gnupg
|
2024-09-03 23:01:50 +02:00
|
|
|
|
kdePackages.kcalc
|
|
|
|
|
|
2024-08-12 00:33:16 +02:00
|
|
|
|
];
|
|
|
|
|
};
|
2024-11-16 04:09:18 +01:00
|
|
|
|
|
|
|
|
|
users.users.remotebuild = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
openssh.authorizedKeys.keys = [
|
2024-11-16 04:17:42 +01:00
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID8CBRiViR+JVFHEeeUbeHLY4gCvZ1TTlt63HlBD8xls Remotebuilds from HyperC"
|
2024-11-16 04:09:18 +01:00
|
|
|
|
];
|
|
|
|
|
};
|
2024-08-12 00:33:16 +02:00
|
|
|
|
|
|
|
|
|
# Define Service Users
|
|
|
|
|
users.groups.languagetool = {};
|
|
|
|
|
users.users.languagetool = {
|
|
|
|
|
isSystemUser = true;
|
|
|
|
|
group = "languagetool";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable automatic login for the user.
|
|
|
|
|
services.displayManager.autoLogin.enable = true;
|
|
|
|
|
services.displayManager.autoLogin.user = "kb";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
programs.vim = {
|
|
|
|
|
enable = true;
|
|
|
|
|
defaultEditor = true;
|
|
|
|
|
};
|
|
|
|
|
programs.ssh.startAgent = true;
|
|
|
|
|
programs.kdeconnect.enable = true;
|
|
|
|
|
programs.steam = {
|
|
|
|
|
enable = true;
|
|
|
|
|
remotePlay.openFirewall = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
programs.firefox.enable = true;
|
|
|
|
|
programs.firefox.nativeMessagingHosts.packages = [ pkgs.firefoxpwa ];
|
|
|
|
|
|
|
|
|
|
# List packages installed in system profile. To search, run:
|
|
|
|
|
# $ nix search wget
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
|
|
|
|
wget
|
|
|
|
|
fastfetch
|
|
|
|
|
usbutils
|
|
|
|
|
fprintd
|
|
|
|
|
nss
|
|
|
|
|
mesa
|
|
|
|
|
python3
|
|
|
|
|
zulu
|
|
|
|
|
zulu8
|
|
|
|
|
languagetool
|
|
|
|
|
btop
|
|
|
|
|
firefoxpwa
|
|
|
|
|
bookworm
|
|
|
|
|
foliate
|
|
|
|
|
gparted
|
|
|
|
|
git
|
|
|
|
|
ntfs3g
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Some programs need SUID wrappers, can be configured further or are
|
|
|
|
|
# started in user sessions.
|
|
|
|
|
# programs.mtr.enable = true;
|
|
|
|
|
# programs.gnupg.agent = {
|
|
|
|
|
# enable = true;
|
|
|
|
|
# enableSSHSupport = true;
|
|
|
|
|
# };
|
|
|
|
|
|
|
|
|
|
# List services that you want to enable:
|
|
|
|
|
systemd.services.languagetool = {
|
|
|
|
|
description = "LanguageTool HTTP Server for local Spellchecking";
|
|
|
|
|
wants = [ "network.target" ];
|
|
|
|
|
wantedBy = [ "multi-user.target" ];
|
|
|
|
|
serviceConfig = {
|
|
|
|
|
ExecStart = "/run/current-system/sw/bin/languagetool-http-server --port 8081 --allow-origin '*'";
|
|
|
|
|
WorkingDirectory = "~"; # Defaults to "/" If the user has no home
|
|
|
|
|
User = "languagetool";
|
|
|
|
|
Restart = "always";
|
|
|
|
|
RestartSec = 30;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# services.udev.extraRules = ''
|
|
|
|
|
#ENV{ID_VENDOR_ID}=="EloTouchSystems_Inc",ENV{ID_MODEL_ID}=="Elo_TouchSystems_2216_AccuTouch®_USB_Touchmonitor_Interface",ENV{WL_OUTPUT}="DP-0",ENV{LIBINPUT_CALIBRATION_MATRIX}="0.4 0 0 0 -0.347826087 0.652173913"
|
|
|
|
|
#'';
|
|
|
|
|
|
|
|
|
|
# services.xserver.inputClassSections = [
|
|
|
|
|
# ''
|
|
|
|
|
# Identifier "calibration"
|
|
|
|
|
# MatchProduct "EloTouchSystems,Inc Elo TouchSystems 2216 AccuTouch® USB Touchmonitor Interface"
|
|
|
|
|
# Option "MinX" "6225"
|
|
|
|
|
# Option "MaxX" "59846"
|
|
|
|
|
# Option "MinY" "57849"
|
|
|
|
|
# Option "MaxY" "5925"
|
|
|
|
|
# Option "InvertY" "1"
|
|
|
|
|
# ''
|
|
|
|
|
# ];
|
|
|
|
|
|
|
|
|
|
# Virtualisation
|
|
|
|
|
virtualisation.podman = {
|
|
|
|
|
enable = true;
|
|
|
|
|
dockerCompat = true;
|
|
|
|
|
dockerSocket.enable = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services.syncthing = {
|
|
|
|
|
enable = true;
|
|
|
|
|
user = "kb";
|
|
|
|
|
dataDir = "/home/kb/sync";
|
|
|
|
|
configDir = "/home/kb/.config/syncthing";
|
2024-11-16 04:29:44 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# SSH
|
|
|
|
|
services.openssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
settings.PasswordAuthentication = false;
|
|
|
|
|
settings.KbdInteractiveAuthentication = false;
|
|
|
|
|
ports = [ 4125 ];
|
|
|
|
|
openFirewall = true;
|
|
|
|
|
};
|
2024-08-12 00:33:16 +02:00
|
|
|
|
|
2024-11-16 04:09:18 +01:00
|
|
|
|
services.nix-serve = {
|
|
|
|
|
enable = true;
|
|
|
|
|
secretKeyFile = "/var/cache-voloxo-priv-key.pem";
|
|
|
|
|
};
|
2024-08-12 00:33:16 +02:00
|
|
|
|
|
2024-11-16 04:09:18 +01:00
|
|
|
|
# Do NOT change this value
|
2024-08-12 00:33:16 +02:00
|
|
|
|
system.stateVersion = "23.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|