From a43d03525785de869857a5cc175a095770218a7d Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 28 Jul 2025 15:03:57 +0200 Subject: [PATCH 1/4] fix: forgot that frameworks don't work like normal computers do with suspend/hibernate :( --- hosts/sakura/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/sakura/default.nix b/hosts/sakura/default.nix index dff5d04..0d48a0b 100644 --- a/hosts/sakura/default.nix +++ b/hosts/sakura/default.nix @@ -75,7 +75,7 @@ systemd.sleep.extraConfig = '' HibernateDelaySec=30m ''; - services.logind.lidSwitch = "suspend-then-hibernate"; + services.logind.lidSwitch = "suspend"; boot = { # plymouth.enable = true; # is a module now kernelParams = [ From d9b9208aa849972ba7f0506ff6d4284d17cc5017 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 28 Jul 2025 16:04:11 +0200 Subject: [PATCH 2/4] feat: adds `posy` host --- flake.nix | 17 ++++++++++------- modules/core/user.nix | 2 ++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/flake.nix b/flake.nix index 93bb76a..1256397 100644 --- a/flake.nix +++ b/flake.nix @@ -40,7 +40,6 @@ inherit system; modules = [ (import ./hosts/sakura) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "sakura"; @@ -51,7 +50,6 @@ inherit system; modules = [ (import ./hosts/yoshino) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "yoshino"; @@ -62,7 +60,6 @@ inherit system; modules = [ (import ./hosts/ichiyo) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "ichiyo"; @@ -73,7 +70,6 @@ inherit system; modules = [ (import ./hosts/violet) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "violet"; @@ -84,7 +80,6 @@ inherit system; modules = [ (import ./hosts/dandelion) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "dandelion"; @@ -95,7 +90,6 @@ inherit system; modules = [ (import ./hosts/lily) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "lily"; @@ -106,13 +100,22 @@ inherit system; modules = [ (import ./hosts/zinnia) - # sops-nix.nixosModules.sops ]; specialArgs = { host = "zinnia"; inherit self inputs username; }; }; + posy = nixpkgs.lib.nixosSystem { + system = "aarch64-linux"; + modules = [ + (import ./hosts/posy) + ]; + specialArgs = { + host = "posy"; + inherit self inputs username; + }; + }; }; }; } diff --git a/modules/core/user.nix b/modules/core/user.nix index 756878a..eef3a74 100644 --- a/modules/core/user.nix +++ b/modules/core/user.nix @@ -24,6 +24,8 @@ [ ./../home/default.server.nix ] else if (host == "lily") then [ ./../home/default.server.nix ] + else if (host == "posy") then + [ ./../home/default.server.nix ] # else if (host == "yoshino") then # [ ./../home/default.nix ] else From dc7bf48ea55d35450f5b53d65ebae008665a7958 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 28 Jul 2025 16:04:40 +0200 Subject: [PATCH 3/4] feat: adds `rfkill` commands as bluetooth apparently dies even more sometimes --- modules/home/scripts/scripts/unfuck.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/home/scripts/scripts/unfuck.sh b/modules/home/scripts/scripts/unfuck.sh index 4e7dbb6..480bd72 100644 --- a/modules/home/scripts/scripts/unfuck.sh +++ b/modules/home/scripts/scripts/unfuck.sh @@ -62,6 +62,8 @@ unfuck_audio() { devices+=("$device") done systemctl --user restart wireplumber pipewire pipewire-pulse bluetooth + rfkill block bluetooth + rfkill unblock bluetooth bluetoothctl power off bluetoothctl power on for device in ${devices[*]}; do From 11004284838bd6f573059d35aecbdc7e5158d052 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Mon, 28 Jul 2025 16:05:11 +0200 Subject: [PATCH 4/4] feat: adds `posy` host (2) --- hosts/posy/default.nix | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 hosts/posy/default.nix diff --git a/hosts/posy/default.nix b/hosts/posy/default.nix new file mode 100644 index 0000000..e51f387 --- /dev/null +++ b/hosts/posy/default.nix @@ -0,0 +1,41 @@ +{ config, pkgs, lib, ... }: +{ + imports = [ + ./../../modules/core/default.server.nix + ./../../modules/services/mpd.nix + ]; + + networking.hostName = "posy"; + + time.timeZone = "Europe/Amsterdam"; + + environment.systemPackages = with pkgs; [ + pkgs.kitty.terminfo + ]; + + boot = { + kernelPackages = pkgs.linuxKernel.packages.linux_rpi4; + initrd.availableKernelModules = [ "xhci_pci" "usbhid" "usb_storage" ]; + loader = { + grub.enable = false; + generic-extlinux-compatible.enable = true; + }; + }; + + services = { + smartd = { + enable = lib.mkForce false; + autodetect = lib.mkForce false; + }; + }; + + fileSystems = { + "/" = { + device = "/dev/disk/by-label/NIXOS_SD"; + fsType = "ext4"; + options = [ "noatime" ]; + }; + }; + + hardware.enableRedistributableFirmware = true; +}