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,7 @@
{ ... }: {
flake.nixosModules.brave = { pkgs, ... }: {
environment.systemPackages = with pkgs; [
brave
];
};
}

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;
};
};
}

View File

@@ -0,0 +1,7 @@
{ ... }: {
flake.nixosModules.controller = { ... }: {
services.udev.extraRules = ''
ACTION=="add|change", KERNEL=="event[0-9]*", ATTRS{name}=="*Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1"
'';
};
}

View File

@@ -0,0 +1,8 @@
{ ... }: {
flake.nixosModules.jovian = { user, ... }:{
jovian.steam.enable = true;
jovian.steam.autoStart = true;
jovian.steam.user = user;
jovian.steam.desktopSession = "gnome";
};
}

View File

@@ -0,0 +1,6 @@
{ ... }: {
flake.nixosModules.lact = {
services.lact.enable = true;
hardware.amdgpu.overdrive.enable = true;
};
}

View File

@@ -0,0 +1,17 @@
{ ... }: {
flake.nixosModules.steam = { pkgs-unstable, ... }: {
programs.steam = {
enable = true;
extest.enable = true;
extraCompatPackages = with pkgs-unstable; [
proton-ge-bin
];
extraPackages = with pkgs-unstable; [
gamescope
mangohud
];
};
};
}

View File

@@ -0,0 +1,7 @@
{ ... }: {
flake.nixosModules.gdm = { user, ... }:{
services.displayManager.gdm.enable = true;
services.displayManager.autoLogin.enable = true;
services.displayManager.autoLogin.user = user;
};
}

View File

@@ -0,0 +1,7 @@
{ ... }: {
flake.nixosModules.gnome-apps = { pkgs-unstable, ...}:{
environment.systemPackages = with pkgs-unstable; [
gnome-text-editor
];
};
}

View File

@@ -0,0 +1,8 @@
{ ... }: {
flake.nixosModules.gnome = { pkgs, ... }:{
services.desktopManager.gnome.enable = true;
services.gnome.core-apps.enable = false;
services.gnome.core-developer-tools.enable = false;
services.gnome.games.enable = false;
};
}

View File

@@ -3,7 +3,11 @@
flake.nixosModules.computer-mo = {
imports = with inputs.self.nixosModules; [
base
desktop
singledisk
gdm
gnome-apps
gnome
];
};
}