Evie Litherland-Smith
0889818512
Move commonModule into system/default.nix Keep most essential parts (user definition, home-manager init) in flake.nix but move rest to system/default.nix Remove some tui expressions from home and add all to home/default.nix, will always want those so always use Disable gamescope session unless gamescope.nix imported Move various home.package definitions to environment.systemPackage in system/ expressions, located based on appropriate use Move wallpapers directory due to restructure, no other changes to it
81 lines
2.4 KiB
Nix
81 lines
2.4 KiB
Nix
{ config, lib, pkgs, user, ... }:
|
|
let
|
|
devices = [ "Legion" "Northstar" "Ronin" "Scorch" "Vanguard" ];
|
|
devicesWithPhone = devices ++ [ "Ion" ];
|
|
in {
|
|
services.syncthing = {
|
|
inherit user;
|
|
inherit (config.users.users.${user}) group;
|
|
enable = true;
|
|
dataDir = lib.mkDefault "/home/${user}";
|
|
systemService = true;
|
|
openDefaultPorts = true;
|
|
settings = {
|
|
devices = {
|
|
"Ion".id =
|
|
"7DD4NPH-6T2ET5A-4FCLFWW-CS6UR2W-IO5XQXC-DM5B2Q4-6X7DGU2-UKKVEAB";
|
|
"Legion".id =
|
|
"6OX54CG-EAQMXKA-K7TXB5P-G5A27HB-52JE2FA-XNAYZU6-YMIDBXP-RKPBJQV";
|
|
"Northstar".id =
|
|
"HNK5Z72-757G3BP-I4PBWXY-FM5FWCM-ES4XP56-E5ULWB5-RGRCBUI-RHWRXQV";
|
|
"Ronin".id =
|
|
"ZOL5YHK-ZZZULIE-UHGVKHW-H5E4BP7-S4CZBOX-OIZVUCV-RZUXOKA-QVBUBAJ";
|
|
"Scorch".id =
|
|
"VVKKUT6-DMNEJ6J-ZI2QREG-SOLG7S5-V2V6WN3-UCQH2EN-6S2XXLS-FKN6KQF";
|
|
"Vanguard".id =
|
|
"I366QNQ-D3FTDRX-RNOTXMW-YITZXOF-DSCDMQD-63Q72LI-ME2Y4HZ-T34RMQK";
|
|
};
|
|
folders = {
|
|
"Archive" = {
|
|
inherit devices;
|
|
id = "hwnqy-xzcdx";
|
|
path = lib.mkDefault "~/Documents/Archive";
|
|
ignorePerms = true;
|
|
};
|
|
"Books" = {
|
|
inherit devices;
|
|
id = "zjmxy-ycmbq";
|
|
path = lib.mkDefault "~/Documents/Books";
|
|
ignorePerms = true;
|
|
};
|
|
"Comics" = {
|
|
inherit devices;
|
|
id = "kc2h0-q3wot";
|
|
path = lib.mkDefault "~/Documents/Comics";
|
|
ignorePerms = true;
|
|
};
|
|
"Documents" = {
|
|
id = "qc6qa-bipsd";
|
|
path = lib.mkDefault "~/Documents/Sync";
|
|
ignorePerms = true;
|
|
devices = devicesWithPhone;
|
|
};
|
|
"Exports" = {
|
|
inherit devices;
|
|
id = "tof2e-pdtde";
|
|
path = lib.mkDefault "~/Documents/Exports";
|
|
ignorePerms = true;
|
|
};
|
|
"Notes" = {
|
|
id = "4ggjz-5dyop";
|
|
path = lib.mkDefault "~/Notes";
|
|
ignorePerms = true;
|
|
devices = devicesWithPhone;
|
|
};
|
|
"Pictures" = {
|
|
id = "ziuj8-rm6dn";
|
|
path = lib.mkDefault "~/Pictures";
|
|
ignorePerms = true;
|
|
devices = devicesWithPhone;
|
|
};
|
|
"Zotero" = {
|
|
id = "huyvn-liwc9";
|
|
path = lib.mkDefault "~/Documents/Zotero";
|
|
ignorePerms = true;
|
|
devices = devicesWithPhone;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|