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 14:13:02 +0100 |
| commit | 7bb669a08115169f02b643ece04473569a2fd54b (patch) | |
| tree | 2e568aa78d52537af7068be663498e53281d9fc6 /share | |
| parent | c4109a1bb465dedf6a1ca79297792cd3931f2aaa (diff) | |
Deduplicate client code
Diffstat (limited to 'share')
| -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; } |
