From 7bb669a08115169f02b643ece04473569a2fd54b Mon Sep 17 00:00:00 2001 From: Miran Bastaja Date: Mon, 11 Dec 2023 13:33:40 +0100 Subject: Deduplicate client code --- share/system/client-common.nix | 53 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 51 insertions(+), 2 deletions(-) (limited to 'share/system') diff --git a/share/system/client-common.nix b/share/system/client-common.nix index c6ae988..b6b9981 100644 --- a/share/system/client-common.nix +++ b/share/system/client-common.nix @@ -1,9 +1,58 @@ # Common configuration options for client machines (i.e. not servers) -{ ... }: +{ pkgs, ... }: { - boot.supportedFilesystems = [ "ntfs" "bcachefs" ]; imports = [ ./hyprland.nix ./steam.nix ]; + + boot.supportedFilesystems = [ "ntfs" "bcachefs" ]; + + nixpkgs.config.allowUnfree = true; + nix.gc = { + dates = "weekly"; + automatic = true; + persistent = true; + randomizedDelaySec = "15min"; + }; + + networking = { + useNetworkd = true; + firewall = { + enable = true; + allowedTCPPorts = [ 80 443 34197 ]; + }; + }; + services.mullvad-vpn.enable = true; + + virtualisation.podman = { + enable = true; + dockerCompat = true; + autoPrune.enable = true; + }; + + programs.gnupg.agent = { + enable = true; + enableSSHSupport = true; + }; + + sound.enable = true; + services.pipewire = { + enable = true; + alsa.enable = true; + pulse.enable = true; + }; + + fonts.packages = with pkgs; [ + noto-fonts + noto-fonts-cjk + noto-fonts-emoji + proggyfonts + (nerdfonts.override { fonts = [ "FiraCode" ]; }) + overpass + inter + ]; + + programs.zsh.enable = true; + users.defaultUserShell = pkgs.zsh; } -- cgit v1.3.1