syntching testing and qmk

This commit is contained in:
Andrea Ciceri 2022-01-19 13:07:50 +01:00
parent 4a657d52f5
commit 63ee0f1209
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
6 changed files with 16 additions and 50 deletions

View file

@ -168,7 +168,7 @@
gui = [ sway xdg gtk foot bat ];
browser = [ firefox chromium qutebrowser tor-browser ];
multimedia = [ mpv zathura ];
dev = [ vim emacs vscode lorri direnv ];
dev = [ vim emacs vscode lorri direnv qmk ];
modelling = [ blender cura ];
};
};

View file

@ -165,34 +165,21 @@
guiAddress = "0.0.0.0:8384";
dataDir = "/mnt/archivio/syncthing";
user = "ccr";
devices = {
oneplus5t = {
id = "IUETIK2-LBTIIKO-GTZXVMA-LEDFK5I-F2M7JKX-76OUDJL-QRJ62J4-5DYYIAI";
};
pc = {
id = "VI4CPQE-PTRRBQQ-LQVG3SE-7BVHQC2-TT4TIP7-L3OBXQR-AWLZVCO-GVPQUQG";
};
};
folders = {
"/mnt/archivio/syncthing/camera" = {
id = "camera";
devices = [ "oneplus5t" ];
};
"/mnt/archivio/syncthing/orgzly" = {
id = "orgzly";
devices = [ "oneplus5t" "pc" ];
};
"/mnt/archivio/syncthing/roam" = {
id = "roam";
devices = [ "oneplus5t" "pc" ];
};
"/mnt/archivio/syncthing/whatsapp" = {
id = "whatsapp";
devices = [ "oneplus5t" ];
};
"/mnt/archivio/syncthing/calls" = {
id = "calls";
devices = [ "oneplus5t" ];
};
};
};

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, profiles, pbpKernelLatest, ... }:
{
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg ];
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg syncthing ];
boot = {
initrd.availableKernelModules = [ "usbhid" ];
@ -56,22 +56,5 @@
};
};
services.syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
dataDir = "/home/ccr/syncthing";
user = "ccr";
folders = {
"orgzly" = {
id = "orgzly";
path = "/home/ccr/orgzly";
};
"roam" = {
id = "roam";
path = "/home/ccr/roam";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
}

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, profiles, ... }:
{
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg docker adb ];
imports = with profiles; [ mount-nas sshd dbus avahi printing xdg docker adb syncthing ];
boot = {
initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
@ -51,22 +51,5 @@
};
};
services.syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
dataDir = "/home/ccr/syncthing";
user = "ccr";
folders = {
"orgzly" = {
id = "orgzly";
path = "/home/ccr/orgzly";
};
"roam" = {
id = "roam";
path = "/home/ccr/roam";
};
};
};
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
}

View file

@ -0,0 +1,8 @@
{
services.syncthing = {
enable = true;
guiAddress = "127.0.0.1:8384";
dataDir = "/home/ccr/syncthing";
user = "ccr";
};
}

View file

@ -0,0 +1,5 @@
{ pkgs, ... }: with pkgs; {
home.packages = [ qmk ];
}