omniflake/system/default.nix
2024-08-08 23:37:21 +02:00

111 lines
2 KiB
Nix

{ config, pkgs, ... }:
{
imports =
[
./interception-tools.nix
];
nix = {
settings.experimental-features = [ "nix-command" "flakes" ];
gc.automatic = true;
gc.dates = "weekly";
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;
openssh.enable = true;
fwupd.enable = true;
printing.enable = true;
mullvad-vpn.enable = true;
mullvad-vpn.package = pkgs.mullvad-vpn;
};
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
programs.dconf.enable = true;
system.stateVersion = "22.11";
}