diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-12-11 13:33:40 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-12-11 13:33:40 +0100 |
| commit | 74c1182bbf0b74a96cd2b9e3b2080f9e2acb2461 (patch) | |
| tree | 5f4129a26ea91a9d5243b7ef8edb294a3d0ea948 /share/system/client-common.nix | |
| parent | dd0cfef2ef6c77c396fb71f968ee9762e648f0c7 (diff) | |
Deduplicate client code
Diffstat (limited to 'share/system/client-common.nix')
| -rw-r--r-- | share/system/client-common.nix | 53 |
1 files changed, 51 insertions, 2 deletions
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; } |
