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 {
# Hardware
imports = [./hardware-configuration.nix];
@ -11,6 +18,10 @@ in {
pkgs.lutris
pkgs.godot
pkgs.rustdesk-flutter
pkgs.motion
pkgs.linuxPackages.v4l2loopback
pkgs.v4l-utils
pkgs.qmk
];
# System
@ -32,7 +43,7 @@ in {
mods.containers.steam.enable = false;
mods.server.astral.enable = false;
mods.server.astral.autoStart = false;
mods.server.nvr.enable = true;
mods.server.nvr.enable = false;
mods.docker.enable = true;
mods.docker.media.enable = false;
@ -60,6 +71,9 @@ in {
## Mouse
services.libinput.mouse.accelProfile = "flat";
## Keyboard
hardware.keyboard.qmk.enable = true;
## Monitors
mods.monitors = {
primary = {

View file

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