mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
chore: merge remote-tracking branch 'refs/remotes/origin/master'
This commit is contained in:
commit
5930179d51
5 changed files with 56 additions and 8 deletions
17
flake.nix
17
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
41
hosts/posy/default.nix
Normal file
41
hosts/posy/default.nix
Normal 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;
|
||||
}
|
||||
|
|
@ -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 = [
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue