Add motion and qmk

This commit is contained in:
muon 2025-08-11 18:27:54 +00:00
parent 19458d6c02
commit bc6d381e9f
2 changed files with 34 additions and 23 deletions

View file

@ -1,6 +1,13 @@
{ config, lib, pkgs, inputs, system, sources, ... }: {
let cfg = config.mods; config,
lib,
pkgs,
inputs,
system,
sources,
...
}: let
cfg = config.mods;
in { in {
# Hardware # Hardware
imports = [./hardware-configuration.nix]; imports = [./hardware-configuration.nix];
@ -11,6 +18,10 @@ in {
pkgs.lutris pkgs.lutris
pkgs.godot pkgs.godot
pkgs.rustdesk-flutter pkgs.rustdesk-flutter
pkgs.motion
pkgs.linuxPackages.v4l2loopback
pkgs.v4l-utils
pkgs.qmk
]; ];
# System # System
@ -32,7 +43,7 @@ in {
mods.containers.steam.enable = false; mods.containers.steam.enable = false;
mods.server.astral.enable = false; mods.server.astral.enable = false;
mods.server.astral.autoStart = false; mods.server.astral.autoStart = false;
mods.server.nvr.enable = true; mods.server.nvr.enable = false;
mods.docker.enable = true; mods.docker.enable = true;
mods.docker.media.enable = false; mods.docker.media.enable = false;
@ -60,6 +71,9 @@ in {
## Mouse ## Mouse
services.libinput.mouse.accelProfile = "flat"; services.libinput.mouse.accelProfile = "flat";
## Keyboard
hardware.keyboard.qmk.enable = true;
## Monitors ## Monitors
mods.monitors = { mods.monitors = {
primary = { primary = {

View file

@ -1,20 +1,15 @@
# Do not modify this file! It was generated by nixos-generate-config # Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes # and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead. # to /etc/nixos/configuration.nix instead.
{ { config, lib, pkgs, modulesPath, ... }: {
config,
lib,
pkgs,
modulesPath,
...
}: {
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
boot.initrd.availableKernelModules = ["xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules =
[ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
boot.kernelModules = ["kvm-intel"]; boot.kernelModules = [ "kvm-intel" "v4l2loopback" ];
virtualisation.libvirtd.enable = true; virtualisation.libvirtd.enable = true;
boot.extraModulePackages = []; boot.extraModulePackages = [ pkgs.linuxPackages.v4l2loopback ];
boot.supportedFilesystems = [ "zfs" "ntfs" "btrfs" ]; boot.supportedFilesystems = [ "zfs" "ntfs" "btrfs" ];
fileSystems."/" = { fileSystems."/" = {
@ -23,8 +18,10 @@
}; };
boot.initrd.luks.devices = { boot.initrd.luks.devices = {
"luks-root".device = "/dev/disk/by-uuid/86769693-b61c-4712-852d-e0fba612d260"; "luks-root".device =
"luks-swap".device = "/dev/disk/by-uuid/0418acfc-792c-43f4-a887-cc8bb51fa7c3"; "/dev/disk/by-uuid/86769693-b61c-4712-852d-e0fba612d260";
"luks-swap".device =
"/dev/disk/by-uuid/0418acfc-792c-43f4-a887-cc8bb51fa7c3";
}; };
fileSystems."/mnt/bulk" = { fileSystems."/mnt/bulk" = {