refactor, web server

This commit is contained in:
Till 2024-11-21 17:54:08 +01:00
parent e5c2b86918
commit c1d97785e0
5 changed files with 99 additions and 116 deletions

View file

@ -1,11 +1,6 @@
{ config, pkgs, ... }:
{
imports =
[
./interception-tools.nix
];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
gc.automatic = true;
@ -13,101 +8,33 @@
optimise.automatic = true;
};
zramSwap.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.networkmanager.enable = true;
networking.firewall = {
enable = true;
allowedTCPPorts = [ 4000 ];
};
time.timeZone = "Europe/Berlin";
i18n.extraLocaleSettings = {
LC_TIME = "en_GB.UTF-8";
LC_CTYPE = "de_DE.UTF-8";
LC_PAPER = "de_DE.UTF-8";
};
users.users.till = {
isNormalUser = true;
description = "Till";
extraGroups = [
"wheel"
"networkmanager"
];
shell = pkgs.fish;
};
programs.steam = {
enable = true;
};
# sound
hardware.pulseaudio.enable = false;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
nixpkgs.config.allowUnfree = true;
programs.gnupg.agent = {
enable = true;
pinentryPackage = pkgs.pinentry-curses;
};
programs.fish.enable = true;
environment.sessionVariables = {
XDG_CONFIG_HOME = "$HOME/.config";
XDG_CACHE_HOME = "$HOME/.cache";
XDG_DATA_HOME = "$HOME/.local/share";
};
environment.systemPackages = with pkgs; [
dig.dnsutils
file
firefox
foot
git
htop
killall
neovim
pciutils
pwgen
tree
unzip
# libguestfs
# guestfs-tools
virtiofsd
wget
];
nixpkgs.config.joypixels.acceptLicense = true;
fonts.packages = with pkgs; [
jetbrains-mono
joypixels
];
services = {
dbus.enable = true;
flatpak.enable = true;
fwupd.enable = true;
mullvad-vpn.enable = true;
mullvad-vpn.package = pkgs.mullvad-vpn;
ntp.enable = true;
openssh.enable = true;
printing.enable = true;
};
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
programs.dconf.enable = true;
system.stateVersion = "22.11";
}