updated razer working on server

This commit is contained in:
Matt Nish-Lapidus 2025-04-13 12:04:12 -04:00
parent f8b713b3d1
commit 6cb21efae5
9 changed files with 69 additions and 35 deletions

View file

@ -18,7 +18,7 @@
filesystems-filez
filesystems-media-server
sound
openrazer
# openrazer
];
nixpkgs = {
@ -153,6 +153,7 @@
win-virtio
win-spice
xwayland-satellite
openrazer-daemon
];
# Bootloader.
@ -178,7 +179,7 @@
extraModulePackages = with config.boot.kernelPackages; [
ddcci-driver
xpadneo
# openrazer
openrazer
];
extraModprobeConfig = ''
options bluetooth disable_ertm=Y
@ -220,10 +221,10 @@
};
i2c.enable = true;
uinput.enable = true;
# openrazer = {
# enable = true;
# users = [ "emenel" ];
# };
openrazer = {
enable = true;
users = [ "emenel" ];
};
graphics = {
enable = true;
enable32Bit = true;

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }:{
{ config, lib, pkgs, inputs, ... }:{
imports = [
./hardware-configuration.nix
@ -41,7 +41,17 @@
];
};
services = {
forgejo = {
enable = true;
lfs.enable = true;
settings = {
server = {
HTTP_PORT = 12345;
};
};
};
};
system.stateVersion = "25.05"; # Did you read the comment?

View file

@ -1,4 +1,4 @@
{
{ ... }:{
disko.devices = {
disk = {
main = {

View file

@ -1,8 +1,6 @@
{ config, lib, pkgs, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
# boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
# fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}

View file

@ -2,7 +2,10 @@
# This file was populated at runtime with the networking
# details gathered from the active system.
networking = {
nameservers = [ "8.8.8.8" ];
firewall = {
enable = true;
allowedTCPPorts = [ 22 80 12345 53 443 ];
};
defaultGateway = "172.31.1.1";
defaultGateway6 = {
address = "fe80::1";