mirror of
https://github.com/Dichgrem/DCGOS.git
synced 2025-12-16 19:22:00 -05:00
Init:start-nix
This commit is contained in:
14
modules/drivers/amd-gpu.nix
Normal file
14
modules/drivers/amd-gpu.nix
Normal 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"];
|
||||
};
|
||||
}
|
||||
16
modules/drivers/bluetooth.nix
Normal file
16
modules/drivers/bluetooth.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user