Init:start-nix

This commit is contained in:
dichgrem
2025-07-22 12:18:15 +08:00
parent 7ce7214a74
commit e57cdd246c
178 changed files with 22667 additions and 1 deletions

View File

@@ -0,0 +1,14 @@
{
hostname,
lib,
pkgs,
...
}: let
inherit (import ../../hosts/${hostname}/env.nix) GPU-AMD;
in
with lib; {
config = mkIf GPU-AMD {
systemd.tmpfiles.rules = ["L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}"];
services.xserver.videoDrivers = ["amdgpu"];
};
}

View File

@@ -0,0 +1,16 @@
{
hostname,
lib,
...
}: let
inherit (import ../../hosts/${hostname}/env.nix) Bluetooth;
in
with lib; {
config = mkIf Bluetooth {
hardware.bluetooth = {
enable = lib.mkDefault true;
powerOnBoot = lib.mkDefault true;
};
services.blueman.enable = lib.mkDefault true;
};
}