mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-05 15:15:39 +01:00
Compare commits
No commits in common. "11004284838bd6f573059d35aecbdc7e5158d052" and "83ea9f4916da22ed86531986be377d55ba21e0e8" have entirely different histories.
1100428483
...
83ea9f4916
5 changed files with 8 additions and 56 deletions
17
flake.nix
17
flake.nix
|
|
@ -40,6 +40,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/sakura)
|
(import ./hosts/sakura)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "sakura";
|
host = "sakura";
|
||||||
|
|
@ -50,6 +51,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/yoshino)
|
(import ./hosts/yoshino)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "yoshino";
|
host = "yoshino";
|
||||||
|
|
@ -60,6 +62,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/ichiyo)
|
(import ./hosts/ichiyo)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "ichiyo";
|
host = "ichiyo";
|
||||||
|
|
@ -70,6 +73,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/violet)
|
(import ./hosts/violet)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "violet";
|
host = "violet";
|
||||||
|
|
@ -80,6 +84,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/dandelion)
|
(import ./hosts/dandelion)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "dandelion";
|
host = "dandelion";
|
||||||
|
|
@ -90,6 +95,7 @@
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
(import ./hosts/lily)
|
(import ./hosts/lily)
|
||||||
|
# sops-nix.nixosModules.sops
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
host = "lily";
|
host = "lily";
|
||||||
|
|
@ -100,22 +106,13 @@
|
||||||
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;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,41 +0,0 @@
|
||||||
{ 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 = ''
|
systemd.sleep.extraConfig = ''
|
||||||
HibernateDelaySec=30m
|
HibernateDelaySec=30m
|
||||||
'';
|
'';
|
||||||
services.logind.lidSwitch = "suspend";
|
services.logind.lidSwitch = "suspend-then-hibernate";
|
||||||
boot = {
|
boot = {
|
||||||
# plymouth.enable = true; # is a module now
|
# plymouth.enable = true; # is a module now
|
||||||
kernelParams = [
|
kernelParams = [
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@
|
||||||
[ ./../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
|
||||||
|
|
|
||||||
|
|
@ -62,8 +62,6 @@ 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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue