more modules

This commit is contained in:
2026-03-03 10:11:31 +01:00
parent f0edc40e91
commit 7c7df8b7d4
16 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
{ ... }: {
flake.nixosModules.bluetooth = {
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
};
}

View File

@@ -0,0 +1,12 @@
{ inputs, ... }: {
flake.nixosModules.desktop = {
imports = with inputs.self.nixosModules; [
bluetooth
fonts
gpu-amd
input
printing
sound
];
};
}

View File

@@ -0,0 +1,8 @@
{ ... }: {
flake.nixosModules.fonts = { pkgs-unstable, ... }: {
environment.systemPackages = with pkgs-unstable; [
ibm-plex
adwaita-fonts
];
};
}

View File

@@ -0,0 +1,16 @@
{ ... }: {
flake.nixosModules.gpu-amd = { pkgs, ... }: {
boot.initrd.kernelModules = [ "amdgpu" ];
boot.kernelModules = [ "amdgpu" ];
hardware.amdgpu.initrd.enable = true;
hardware.graphics = {
enable = true;
enable32Bit = true;
};
environment.systemPackages = with pkgs; [
vulkan-tools
];
};
}

View File

@@ -0,0 +1,5 @@
{ ... }: {
flake.nixosModules.input = {
services.libinput.enable = true;
};
}

View File

@@ -0,0 +1,5 @@
{ ... }: {
flake.nixosModules.printing = {
services.printing.enable = true;
};
}

View File

@@ -0,0 +1,10 @@
{ ... }: {
flake.nixosModules.sound = { ... }: {
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
};
};
}