Compare commits
2 Commits
d7d800b346
...
224b53dda1
| Author | SHA1 | Date | |
|---|---|---|---|
| 224b53dda1 | |||
| fdb32cae0e |
@ -34,7 +34,6 @@
|
|||||||
modules = [
|
modules = [
|
||||||
./hosts/server/configuration.nix
|
./hosts/server/configuration.nix
|
||||||
inputs.home-manager.nixosModules.default
|
inputs.home-manager.nixosModules.default
|
||||||
nixos-hardware.nixosModules.system76
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -49,10 +49,10 @@
|
|||||||
services.xserver.desktopManager.gnome.enable = false;
|
services.xserver.desktopManager.gnome.enable = false;
|
||||||
|
|
||||||
# Enable CUPS to print documents.
|
# Enable CUPS to print documents.
|
||||||
services.auto-cpufreq.enable = true;
|
# services.auto-cpufreq.enable = true;
|
||||||
services.thermald.enable = true;
|
# services.thermald.enable = true;
|
||||||
powerManagement.powertop.enable = true;
|
# powerManagement.powertop.enable = true;
|
||||||
powerManagement.enable = true;
|
# powerManagement.enable = true;
|
||||||
|
|
||||||
# Enable sound with pipewire.
|
# Enable sound with pipewire.
|
||||||
sound.enable = false;
|
sound.enable = false;
|
||||||
@ -78,6 +78,34 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.udev.extraRules = ''
|
||||||
|
# Allows Wolf to acces /dev/uinput
|
||||||
|
KERNEL=="uinput", SUBSYSTEM=="misc", MODE="0660", GROUP="input", OPTIONS+="static_node=uinput"
|
||||||
|
|
||||||
|
# Allows Wolf to access /dev/uhid
|
||||||
|
KERNEL=="uhid", TAG+="uaccess"
|
||||||
|
|
||||||
|
# Move virtual keyboard and mouse into a different seat
|
||||||
|
SUBSYSTEMS=="input", ATTRS{id/vendor}=="ab00", MODE="0660", GROUP="input", ENV{ID_SEAT}="seat9"
|
||||||
|
|
||||||
|
# Joypads
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Wolf X-Box One (virtual) pad", MODE="0660", GROUP="input"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Wolf PS5 (virtual) pad", MODE="0660", GROUP="input"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Wolf gamepad (virtual) motion sensors", MODE="0660", GROUP="input"
|
||||||
|
SUBSYSTEMS=="input", ATTRS{name}=="Wolf Nintendo (virtual) pad", MODE="0660", GROUP="input"
|
||||||
|
'';
|
||||||
|
|
||||||
|
users.users.game = {
|
||||||
|
isNormalUser = true;
|
||||||
|
extraGroups = ["docker" "input"];
|
||||||
|
packages = with pkgs; [docker-compose];
|
||||||
|
};
|
||||||
|
|
||||||
|
users.users.media = {
|
||||||
|
isNormalUser = true;
|
||||||
|
packages = with pkgs; [mpv ffmpeg handbrake makemkv];
|
||||||
|
};
|
||||||
|
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
nix.gc.automatic = true;
|
nix.gc.automatic = true;
|
||||||
|
|
||||||
|
|||||||
@ -28,15 +28,6 @@
|
|||||||
labels = ["ubuntu-latest:docker://node:16-bullseye" "ubuntu-22.04:docker://node:16-bullseye" "ubuntu-20.04:docker://node:16-bullseye" "ubuntu-18.04:docker://node:16-buster" "native:host"];
|
labels = ["ubuntu-latest:docker://node:16-bullseye" "ubuntu-22.04:docker://node:16-bullseye" "ubuntu-20.04:docker://node:16-bullseye" "ubuntu-18.04:docker://node:16-buster" "native:host"];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.pufferpanel = {
|
|
||||||
enable = true;
|
|
||||||
extraGroups =["docker"];
|
|
||||||
extraPackages = [pkgs.jre];
|
|
||||||
environment = {
|
|
||||||
PUFFER_WEB_HOST = ":8002";
|
|
||||||
PUFFER_PANEL_REGISTRATIONENABLED = "false";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
services.home-assistant = {
|
services.home-assistant = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -94,7 +85,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable=false;
|
enable=true;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
@ -142,14 +133,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
"puf.dhilton.xyz" = {
|
|
||||||
addSSL = true;
|
|
||||||
enableACME = true;
|
|
||||||
locations."/" = {
|
|
||||||
proxyPass = "http://127.0.0.1:8002";
|
|
||||||
proxyWebsockets = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
"srx.dhilton.xyz" = {
|
"srx.dhilton.xyz" = {
|
||||||
addSSL = true;
|
addSSL = true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user