aboutsummaryrefslogtreecommitdiff
path: root/share/system
diff options
context:
space:
mode:
authorMiran Bastaja <miran.bastaja04@gmail.com>2023-12-11 13:33:40 +0100
committerMiran Bastaja <miran.bastaja04@gmail.com>2023-12-11 13:36:22 +0100
commitd1383a4764bb2b44b65dd5251853c6d754b85e4f (patch)
tree49717efc57020513b6d5e06c00fb2534e3cb533f /share/system
parentdd0cfef2ef6c77c396fb71f968ee9762e648f0c7 (diff)
Deduplicate client code
Diffstat (limited to 'share/system')
-rw-r--r--share/system/client-common.nix53
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;
}