mirror of
https://github.com/Moe1369/nix-fleet.git
synced 2026-04-24 15:59:06 +02:00
more modules
This commit is contained in:
6
modules/desktop/bluetooth/bluetooth.nix
Normal file
6
modules/desktop/bluetooth/bluetooth.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.bluetooth = {
|
||||
hardware.bluetooth.enable = true;
|
||||
hardware.bluetooth.powerOnBoot = true;
|
||||
};
|
||||
}
|
||||
12
modules/desktop/desktop.nix
Normal file
12
modules/desktop/desktop.nix
Normal file
@@ -0,0 +1,12 @@
|
||||
{ inputs, ... }: {
|
||||
flake.nixosModules.desktop = {
|
||||
imports = with inputs.self.nixosModules; [
|
||||
bluetooth
|
||||
fonts
|
||||
gpu-amd
|
||||
input
|
||||
printing
|
||||
sound
|
||||
];
|
||||
};
|
||||
}
|
||||
8
modules/desktop/fonts/fonts.nix
Normal file
8
modules/desktop/fonts/fonts.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.fonts = { pkgs-unstable, ... }: {
|
||||
environment.systemPackages = with pkgs-unstable; [
|
||||
ibm-plex
|
||||
adwaita-fonts
|
||||
];
|
||||
};
|
||||
}
|
||||
16
modules/desktop/gpu-amd/gpu-amd.nix
Normal file
16
modules/desktop/gpu-amd/gpu-amd.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
5
modules/desktop/input/input.nix
Normal file
5
modules/desktop/input/input.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.input = {
|
||||
services.libinput.enable = true;
|
||||
};
|
||||
}
|
||||
5
modules/desktop/printing/printing.nix
Normal file
5
modules/desktop/printing/printing.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.printing = {
|
||||
services.printing.enable = true;
|
||||
};
|
||||
}
|
||||
10
modules/desktop/sound/sound.nix
Normal file
10
modules/desktop/sound/sound.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }: {
|
||||
flake.nixosModules.sound = { ... }: {
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user