From 6e34ca8bda9cddcce1ea73f73b883a3ec8358678 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 14 Oct 2022 18:01:11 +0200 Subject: Reformat nix files --- system/settings/gaming.nix | 8 ++++- system/settings/hardware/adb.nix | 5 +-- system/settings/hardware/nvidia-gpu.nix | 4 ++- system/settings/kubernetes.nix | 7 ++-- system/settings/programs/shell.nix | 9 ++--- system/settings/programs/window-manager.nix | 53 +++++++++++++++-------------- system/settings/satoshipay.nix | 5 +-- system/settings/services/airplay-sink.nix | 1 + 8 files changed, 53 insertions(+), 39 deletions(-) (limited to 'system/settings') diff --git a/system/settings/gaming.nix b/system/settings/gaming.nix index 493a201e..139210cf 100644 --- a/system/settings/gaming.nix +++ b/system/settings/gaming.nix @@ -71,6 +71,12 @@ "context.properties" = { "log.level" = 2; }; + "pulse.properties" = { + "server.address" = [ + "unix:native" + "tcp:127.0.0.1:4713" + ]; + }; "context.modules" = [ { name = "libpipewire-module-rtkit"; @@ -96,7 +102,7 @@ "pulse.max.quantum" = "32/48000"; "server.address" = [ "unix:native" - "tcp:[::1]:4713" + "tcp:127.0.0.1:4713" ]; }; } diff --git a/system/settings/hardware/adb.nix b/system/settings/hardware/adb.nix index 8b511f55..0c27b380 100644 --- a/system/settings/hardware/adb.nix +++ b/system/settings/hardware/adb.nix @@ -1,9 +1,10 @@ { config, pkgs, ... }: -{ programs.adb.enable = true; +{ + programs.adb.enable = true; users.groups.adbusers = {}; services.udev = { - packages = [ pkgs.android-udev-rules ]; + packages = [ pkgs.android-udev-rules ]; }; } diff --git a/system/settings/hardware/nvidia-gpu.nix b/system/settings/hardware/nvidia-gpu.nix index 3c099e42..052cd678 100644 --- a/system/settings/hardware/nvidia-gpu.nix +++ b/system/settings/hardware/nvidia-gpu.nix @@ -2,7 +2,9 @@ let nvidia_x11 = config.boot.kernelPackages.nvidia_x11; -in { services.xserver.videoDrivers = [ "nvidia" ]; +in +{ + services.xserver.videoDrivers = [ "nvidia" ]; boot = { blacklistedKernelModules = [ "nouveau" ]; extraModulePackages = [ nvidia_x11 ]; diff --git a/system/settings/kubernetes.nix b/system/settings/kubernetes.nix index 692e46d6..68bcb627 100644 --- a/system/settings/kubernetes.nix +++ b/system/settings/kubernetes.nix @@ -7,9 +7,10 @@ networking.interfaces = { cbr0 = { ipv4.addresses = [ - { address = "10.10.0.1"; - prefixLength = 24; - } + { + address = "10.10.0.1"; + prefixLength = 24; + } ]; }; }; diff --git a/system/settings/programs/shell.nix b/system/settings/programs/shell.nix index edc39d0e..bf8fc3aa 100644 --- a/system/settings/programs/shell.nix +++ b/system/settings/programs/shell.nix @@ -1,10 +1,11 @@ { config, pkgs, ... }: -{ programs.zsh = { +{ + programs.zsh = { enable = true; promptInit = ""; -} // (if pkgs.stdenv.isDarwin then {} else { - enableGlobalCompInit = false; -}); + } // (if pkgs.stdenv.isDarwin then {} else { + enableGlobalCompInit = false; + }); programs.bash.enableCompletion = true; } diff --git a/system/settings/programs/window-manager.nix b/system/settings/programs/window-manager.nix index c3e89709..b2d94929 100644 --- a/system/settings/programs/window-manager.nix +++ b/system/settings/programs/window-manager.nix @@ -1,27 +1,28 @@ { config, pkgs, ... }: -{ services.xserver = { - desktopManager.xterm.enable = false; +{ + services.xserver = { + desktopManager.xterm.enable = false; - displayManager = { - autoLogin = { - user = "alan"; - enable = false; - }; - lightdm = { - enable = true; - greeter.enable = true; - greeters.mini = { - enable = false; - user = "alan"; - }; - }; - sessionCommands = '' - ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.xresources/main - ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c' - ${pkgs.networkmanagerapplet}/bin/nm-applet & - ''; - }; + displayManager = { + autoLogin = { + user = "alan"; + enable = false; + }; + lightdm = { + enable = true; + greeter.enable = true; + greeters.mini = { + enable = false; + user = "alan"; + }; + }; + sessionCommands = '' + ${pkgs.xorg.xrdb}/bin/xrdb -merge $HOME/.xresources/main + ${pkgs.xorg.xsetroot}/bin/xsetroot -cursor_name left_ptr -solid '#4d4d4c' + ${pkgs.networkmanagerapplet}/bin/nm-applet & + ''; + }; xautolock = { enable = true; locker = "${pkgs.i3lock}/bin/i3lock -n"; @@ -33,11 +34,11 @@ services.xserver.displayManager.setupCommands = '' ${pkgs.redshift}/bin/redshift \ - -l ${toString config.location.latitude}:${toString config.location.longitude} \ - -t ${toString config.services.redshift.temperature.day}:${toString config.services.redshift.temperature.night} \ - -b 1:1 \ - -o \ - -r + -l ${toString config.location.latitude}:${toString config.location.longitude} \ + -t ${toString config.services.redshift.temperature.day}:${toString config.services.redshift.temperature.night} \ + -b 1:1 \ + -o \ + -r ''; environment.systemPackages = with pkgs; [ diff --git a/system/settings/satoshipay.nix b/system/settings/satoshipay.nix index 7155902c..9e185570 100644 --- a/system/settings/satoshipay.nix +++ b/system/settings/satoshipay.nix @@ -9,8 +9,9 @@ let }; }; in -{ virtualisation = { - docker = { +{ + virtualisation = { + docker = { enable = true; enableOnBoot = false; liveRestore = false; diff --git a/system/settings/services/airplay-sink.nix b/system/settings/services/airplay-sink.nix index 36fde9b4..617adaa2 100644 --- a/system/settings/services/airplay-sink.nix +++ b/system/settings/services/airplay-sink.nix @@ -6,4 +6,5 @@ enable = true; group = "pipewire"; }; + systemd.services.shairport-sync.serviceConfig.Environment = "PULSE_SERVER=tcp:127.0.0.1:4713"; } -- cgit 1.4.1