From 2022609ca9951df751eed73c1b0c3ab17e726194 Mon Sep 17 00:00:00 2001 From: ChaotiCryptidz Date: Mon, 24 Jan 2022 16:04:40 +0000 Subject: [PATCH] add bluetooth to raspbery and misc other things --- flake.lock | 18 +++++++++--------- home/gui/environments/sway/sway.nix | 2 +- hosts/hetzner-vm/services/mpd.nix | 2 +- hosts/lappy/profiles/mpd-music-sync.nix | 1 - hosts/raspberry/raspberry.nix | 4 +++- profiles/sshd/sshd.nix | 2 +- 6 files changed, 15 insertions(+), 14 deletions(-) diff --git a/flake.lock b/flake.lock index e59825a..1c67011 100644 --- a/flake.lock +++ b/flake.lock @@ -41,11 +41,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1642445622, - "narHash": "sha256-EpiRAcFWs5HdyPr+1i5wtc7tsDUm/BoIIyP9wjAck2o=", + "lastModified": 1642882610, + "narHash": "sha256-pmdgeJ9v6y+T0UfNQ/Z+Hdv5tPshFFra5JLF/byUA/Y=", "owner": "nix-community", "repo": "home-manager", - "rev": "a69f3e9b0390f03defb834b15e80c236a537157d", + "rev": "c47c350f6518ed39c2a16e4fadf9137b6c559ddc", "type": "github" }, "original": { @@ -72,11 +72,11 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1642130244, - "narHash": "sha256-/5FhZkZFQCRQIRFosUQW1zmDrsNHVOJIB/+XgRPHiPU=", + "lastModified": 1643000262, + "narHash": "sha256-8hrbufiCcZgicU8UvHaRkruYuzM8z3lJvQkSh9ezMEg=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "bc59ba15b64d0a0ee1d1764f18b4f3480d2c3e5a", + "rev": "cc68710784ffe0ee035ee7b726656c44566cac94", "type": "github" }, "original": { @@ -86,11 +86,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1642104392, - "narHash": "sha256-m71b7MgMh9FDv4MnI5sg9MiBVW6DhE1zq+d/KlLWSC8=", + "lastModified": 1642903813, + "narHash": "sha256-0lNfGW8sNfyTrixoQhVG00Drl/ECaf5GbfKAQ1ZDoyE=", "owner": "nixos", "repo": "nixpkgs", - "rev": "5aaed40d22f0d9376330b6fa413223435ad6fee5", + "rev": "689b76bcf36055afdeb2e9852f5ecdd2bf483f87", "type": "github" }, "original": { diff --git a/home/gui/environments/sway/sway.nix b/home/gui/environments/sway/sway.nix index 6cdf328..5dd4181 100644 --- a/home/gui/environments/sway/sway.nix +++ b/home/gui/environments/sway/sway.nix @@ -11,7 +11,7 @@ QT_WAYLAND_DISABLE_WINDOWDECORATION = 1; _JAVA_AWT_WM_NONREPARENTING = 1; GDK_SCALE = 2; - GDK_DPI_SCALE = 0.5; + GDK_DPI_SCALE = 2; XCURSOR_SIZE = 64; QT_AUTO_SCREEN_SCALE_FACTOR = 1; }; diff --git a/hosts/hetzner-vm/services/mpd.nix b/hosts/hetzner-vm/services/mpd.nix index 42905b0..c592278 100644 --- a/hosts/hetzner-vm/services/mpd.nix +++ b/hosts/hetzner-vm/services/mpd.nix @@ -18,7 +18,7 @@ name "HTTP Music Out" encoder "opus" port "8012" - bitrate "128000" + bitrate "64000" format "48000:16:2" always_on "yes" tags "yes" diff --git a/hosts/lappy/profiles/mpd-music-sync.nix b/hosts/lappy/profiles/mpd-music-sync.nix index f4b6f89..3dc0d02 100644 --- a/hosts/lappy/profiles/mpd-music-sync.nix +++ b/hosts/lappy/profiles/mpd-music-sync.nix @@ -8,7 +8,6 @@ in { after = [ "network.target" ]; path = [ pkgs.rclone ]; script = '' - set -x export PASSWORD=$(cat ${passwordFile}) rclone sync :ftp:/storage/music /music \ --ftp-host=hetzner-vm.servers.owo.monster \ diff --git a/hosts/raspberry/raspberry.nix b/hosts/raspberry/raspberry.nix index 4b3f2f8..25a7042 100644 --- a/hosts/raspberry/raspberry.nix +++ b/hosts/raspberry/raspberry.nix @@ -5,10 +5,12 @@ users.root users.chaoticryptidz + profiles.base profiles.tailscale profiles.sshd - #hosts.raspberry.services.router + profiles.connectivity.bluetooth + profiles.connectivity.ios (modulesPath + "/installer/sd-card/sd-image-aarch64.nix") ]; diff --git a/profiles/sshd/sshd.nix b/profiles/sshd/sshd.nix index 7cc94de..e6ec902 100644 --- a/profiles/sshd/sshd.nix +++ b/profiles/sshd/sshd.nix @@ -2,7 +2,7 @@ services.openssh = { enable = true; passwordAuthentication = false; - challengeResponseAuthentication = false; + kbdInteractiveAuthentication = false; permitRootLogin = "prohibit-password"; kexAlgorithms = [ "curve25519-sha256@libssh.org" ]; extraConfig = ''