swapped nvf for nixvim, syncthing is only in home-manager now
This commit is contained in:
parent
4794efc276
commit
d11bfc67ec
15 changed files with 334 additions and 3027 deletions
|
|
@ -137,7 +137,7 @@
|
|||
users.users.maya = {
|
||||
isNormalUser = true;
|
||||
description = "Maya";
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" "camera" ];
|
||||
extraGroups = [ "networkmanager" "wheel" "libvirtd" "camera" "input"];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
];
|
||||
|
|
|
|||
|
|
@ -3,8 +3,9 @@
|
|||
./configuration.nix
|
||||
../overrides.nix
|
||||
../ssh.nix
|
||||
../syncthing.nix
|
||||
../firewall.nix
|
||||
../substituters.nix
|
||||
../fonts.nix
|
||||
../udev.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
5
base/firewall.nix
Normal file
5
base/firewall.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
networking.firewall.allowedTCPPorts = [ 22000 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||
#for syncthing
|
||||
}
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
{
|
||||
networking.firewall.allowedTCPPorts = [ 22000 ];
|
||||
networking.firewall.allowedUDPPorts = [ 22000 21027 ];
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "maya";
|
||||
dataDir = "/home/maya/sync/";
|
||||
configDir = "/home/maya/.config/syncthing";
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
settings = {
|
||||
devices = {
|
||||
"hypermac" = { id = "XVY5YLM-QETCA4H-KT4XBEH-IR4U47O-CJCJ5YM-DPVWQQX-VHEK4MS-GJCMIQ2"; };
|
||||
"adventurer" = { id = "LLKP3BJ-5RBN5KR-63NXUCW-JC4FMAX-QOXTJBK-65OHI7V-OKZQPTD-5FJIIAB"; };
|
||||
"callisto" = { id = "NPXGWEK-JP4C2NM-QZZPBYI-ISAXIZK-ORCNVGO-C4GFRHJ-SWWFQGC-F5JAMQC"; };
|
||||
"traveler" = { id = "JVNNE3V-IMVW2YL-JKEWUJZ-N5PU4NE-3YQDEU7-77ZHIP3-ADW3LAA-NODOVA3"; };
|
||||
};
|
||||
folders = {
|
||||
"General" = {
|
||||
path = "/home/maya/sync/general";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
"Music" = {
|
||||
path = "/home/maya/Music";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
"College" = {
|
||||
path = "/home/maya/sync/college";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
versioning = {
|
||||
type = "staggered";
|
||||
params = {
|
||||
cleanInterval = "3600";
|
||||
maxAge = "15768000";
|
||||
};
|
||||
};
|
||||
};
|
||||
"PrusaSlicer" = {
|
||||
path = "/home/maya/.config/PrusaSlicer";
|
||||
devices = [ "callisto" "hypermac" "adventurer" "traveler" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
11
base/template/default.nix
Normal file
11
base/template/default.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{config, pkgs, ...}:{
|
||||
imports = [
|
||||
./configuration.nix
|
||||
../overrides.nix
|
||||
../ssh.nix
|
||||
../firewall.nix
|
||||
../substituters.nix
|
||||
../fonts.nix
|
||||
../udev.nix
|
||||
];
|
||||
}
|
||||
0
base/template/put-configuration-and-hw-conf-in-here
Normal file
0
base/template/put-configuration-and-hw-conf-in-here
Normal file
38
base/udev.nix
Normal file
38
base/udev.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{
|
||||
services.udev.extraRules = ''
|
||||
# Sony PlayStation Strikepack; USB
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c5", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Sony PlayStation DualShock 3; Bluetooth; USB
|
||||
KERNEL=="hidraw*", KERNELS=="*054C:0268*", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0268", MODE="0660", TAG+="uaccess"
|
||||
## Motion Sensors
|
||||
SUBSYSTEM=="input", KERNEL=="event*|input*", KERNELS=="*054C:0268*", TAG+="uaccess"
|
||||
|
||||
# Sony PlayStation DualShock 4; Bluetooth; USB
|
||||
KERNEL=="hidraw*", KERNELS=="*054C:05C4*", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="05c4", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Sony PlayStation DualShock 4 Slim; Bluetooth; USB
|
||||
KERNEL=="hidraw*", KERNELS=="*054C:09CC*", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="09cc", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Sony PlayStation DualShock 4 Wireless Adapter; USB
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ba0", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Sony DualSense Wireless-Controller; Bluetooth; USB
|
||||
KERNEL=="hidraw*", KERNELS=="*054C:0CE6*", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0ce6", MODE="0660", TAG+="uaccess"
|
||||
|
||||
# Sony DualSense Edge Wireless-Controller; Bluetooth; USB
|
||||
KERNEL=="hidraw*", KERNELS=="*054C:0DF2*", MODE="0660", TAG+="uaccess"
|
||||
KERNEL=="hidraw*", ATTRS{idVendor}=="054c", ATTRS{idProduct}=="0df2", MODE="0660", TAG+="uaccess"
|
||||
'';
|
||||
services.udev.extraHwdb = ''
|
||||
id-input:modalias:input:b0003v054Cp0268*
|
||||
id-input:modalias:input:b0005v054Cp0268*
|
||||
ID_INPUT_ACCELEROMETER=1
|
||||
ID_INPUT_JOYSTICK=1
|
||||
'';
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue