chore: merge remote-tracking branch 'refs/remotes/origin/master'

This commit is contained in:
Ahwx 2025-07-30 15:04:22 +02:00
commit 5930179d51
5 changed files with 56 additions and 8 deletions

View file

@ -40,7 +40,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/sakura) (import ./hosts/sakura)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "sakura"; host = "sakura";
@ -51,7 +50,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/yoshino) (import ./hosts/yoshino)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "yoshino"; host = "yoshino";
@ -62,7 +60,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/ichiyo) (import ./hosts/ichiyo)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "ichiyo"; host = "ichiyo";
@ -73,7 +70,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/violet) (import ./hosts/violet)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "violet"; host = "violet";
@ -84,7 +80,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/dandelion) (import ./hosts/dandelion)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "dandelion"; host = "dandelion";
@ -95,7 +90,6 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/lily) (import ./hosts/lily)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "lily"; host = "lily";
@ -106,13 +100,22 @@
inherit system; inherit system;
modules = [ modules = [
(import ./hosts/zinnia) (import ./hosts/zinnia)
# sops-nix.nixosModules.sops
]; ];
specialArgs = { specialArgs = {
host = "zinnia"; host = "zinnia";
inherit self inputs username; inherit self inputs username;
}; };
}; };
posy = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
(import ./hosts/posy)
];
specialArgs = {
host = "posy";
inherit self inputs username;
};
};
}; };
}; };
} }

41
hosts/posy/default.nix Normal file
View file

@ -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;
}

View file

@ -75,7 +75,7 @@
systemd.sleep.extraConfig = '' systemd.sleep.extraConfig = ''
HibernateDelaySec=30m HibernateDelaySec=30m
''; '';
services.logind.lidSwitch = "suspend-then-hibernate"; services.logind.lidSwitch = "suspend";
boot = { boot = {
# plymouth.enable = true; # is a module now # plymouth.enable = true; # is a module now
kernelParams = [ kernelParams = [

View file

@ -24,6 +24,8 @@
[ ./../home/default.server.nix ] [ ./../home/default.server.nix ]
else if (host == "lily") then else if (host == "lily") then
[ ./../home/default.server.nix ] [ ./../home/default.server.nix ]
else if (host == "posy") then
[ ./../home/default.server.nix ]
# else if (host == "yoshino") then # else if (host == "yoshino") then
# [ ./../home/default.nix ] # [ ./../home/default.nix ]
else else

View file

@ -62,6 +62,8 @@ unfuck_audio() {
devices+=("$device") devices+=("$device")
done done
systemctl --user restart wireplumber pipewire pipewire-pulse bluetooth systemctl --user restart wireplumber pipewire pipewire-pulse bluetooth
rfkill block bluetooth
rfkill unblock bluetooth
bluetoothctl power off bluetoothctl power off
bluetoothctl power on bluetoothctl power on
for device in ${devices[*]}; do for device in ${devices[*]}; do