This commit is contained in:
Morten Olsen
2024-02-20 00:01:02 +01:00
parent 22d85c368c
commit a1dfe29b3f
4 changed files with 38 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
./nix.nix ./nix.nix
./network.nix ./network.nix
./security.nix ./security.nix
./udev.nix
]; ];
environment.systemPackages = [ environment.systemPackages = [
pkgs.nfs-utils pkgs.nfs-utils

30
modules/basic/udev.nix Normal file
View File

@@ -0,0 +1,30 @@
{ config, pkgs, ... }:
{
services.udev.packages = [
(pkgs.writeTextFile {
name = "streamdeck-udev";
text = ''
SUBSYSTEM=="input", GROUP="input", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0080", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0084", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0086", MODE:="666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0090", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0060", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0063", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006c", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="006d", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0080", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0084", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0086", MODE:="666", GROUP="plugdev"
KERNEL=="hidraw*", ATTRS{idVendor}=="0fd9", ATTRS{idProduct}=="0090", MODE:="666", GROUP="plugdev"
'';
destination = "/etc/udev/rules.d/50-elgato.rules";
})
];
}

View File

@@ -1,7 +1,7 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
{ {
environment.sessionVariables.NIXOS_OZONE_WL = "1"; # environment.sessionVariables.NIXOS_OZONE_WL = "1";
programs.zsh.enable = true; programs.zsh.enable = true;
users.users.alice = { users.users.alice = {
@@ -11,6 +11,10 @@
shell = pkgs.zsh; shell = pkgs.zsh;
}; };
networking.firewall = {
enable = true;
allowedTCPPorts = [ 8081 5001 ];
};
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"1password-gui" "1password-gui"

View File

@@ -3,11 +3,11 @@
let let
astronvim = builtins.fetchGit { astronvim = builtins.fetchGit {
url = "https://github.com/AstroNvim/AstroNvim"; url = "https://github.com/AstroNvim/AstroNvim";
rev = "7f087b2ea45073be3386a29e805143f0a1f896e8"; rev = "ba0fbdf974eb63639e43d6467f7232929b8b9b4c";
}; };
astronvimUser = builtins.fetchGit { astronvimUser = builtins.fetchGit {
url = "https://foo:foo@github.com/morten-olsen/astrovim"; url = "https://foo:foo@github.com/morten-olsen/astrovim";
rev = "44b38567fe3adedd972b5b07f5883d47600a9078"; rev = "295278f715810a2917e0eb38c304cfc290e796d7";
}; };
in { in {
programs.neovim.enable = true; programs.neovim.enable = true;