mirror of
https://codeberg.org/muon/home.git
synced 2025-12-06 08:07:45 +00:00
Add motion and qmk
This commit is contained in:
parent
19458d6c02
commit
bc6d381e9f
2 changed files with 34 additions and 23 deletions
|
|
@ -1,9 +1,16 @@
|
||||||
{ 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];
|
||||||
|
|
||||||
environment.systemPackages = with inputs.nix-alien.packages.${system}; [
|
environment.systemPackages = with inputs.nix-alien.packages.${system}; [
|
||||||
nix-alien
|
nix-alien
|
||||||
|
|
@ -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;
|
||||||
|
|
@ -48,7 +59,7 @@ in {
|
||||||
programs.kdeconnect.enable = true;
|
programs.kdeconnect.enable = true;
|
||||||
|
|
||||||
virtualisation.virtualbox.host.enable = true;
|
virtualisation.virtualbox.host.enable = true;
|
||||||
users.extraGroups.vboxusers.members = [ "user-with-access-to-virtualbox" ];
|
users.extraGroups.vboxusers.members = ["user-with-access-to-virtualbox"];
|
||||||
|
|
||||||
# Proprietary </3
|
# Proprietary </3
|
||||||
mods.unfree.steam.enable = true;
|
mods.unfree.steam.enable = true;
|
||||||
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,16 @@
|
||||||
# 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,
|
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
|
||||||
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 =
|
||||||
boot.initrd.kernelModules = [];
|
[ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ];
|
||||||
boot.kernelModules = ["kvm-intel"];
|
boot.initrd.kernelModules = [ ];
|
||||||
|
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."/" = {
|
||||||
device = "/dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891";
|
device = "/dev/disk/by-uuid/03e49688-cc62-49c9-a906-e2ea87a38891";
|
||||||
|
|
@ -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" = {
|
||||||
|
|
@ -35,11 +32,11 @@
|
||||||
fileSystems."/boot" = {
|
fileSystems."/boot" = {
|
||||||
device = "/dev/disk/by-uuid/CCCC-449E";
|
device = "/dev/disk/by-uuid/CCCC-449E";
|
||||||
fsType = "vfat";
|
fsType = "vfat";
|
||||||
options = ["fmask=0022" "dmask=0022"];
|
options = [ "fmask=0022" "dmask=0022" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
swapDevices = [
|
swapDevices = [
|
||||||
{device = "/dev/disk/by-uuid/e7cf209d-386d-41db-8a35-6c9fff014722";}
|
{ device = "/dev/disk/by-uuid/e7cf209d-386d-41db-8a35-6c9fff014722"; }
|
||||||
{
|
{
|
||||||
device = "/var/lib/swapfile";
|
device = "/var/lib/swapfile";
|
||||||
size = 8 * 1024;
|
size = 8 * 1024;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue