- Delete homeManagerConfigurations from flake. - Delete laptop nixosConfiguration. - Delete `home-manager/` and `nixos/` directories. - Switch from one general "vars" attrset for variables to using built-for-purpose attrsets for variables, each declared where it makes most sense (e.g. the "sys" attrset will be used for system-specific attributes). - Create `systems/` directory for root-level system configurations and `modules/` directory for re-usable config files. - Consolidate most app and system configuration into the `desktop-environment.nix` and `terminal-environment.nix` files. - Standardize all `.nix` files to nixos config nodes, as opposed to home-manager. May reverse this decision. - Use `${sys.username}` for the username of the primary user of the system. - Use `${usr.${sys.username}}` for attributes related to that user (e.g. realname, email).
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ vars, ... }: {
|
|
networking.firewall = {
|
|
allowedTCPPorts = [ 8384 22000 ];
|
|
allowedUDPPorts = [ 22000 21027 ];
|
|
};
|
|
services.syncthing = {
|
|
enable = false;
|
|
group = "users";
|
|
user = "${vars.user.username}";
|
|
configDir = /home/${vars.user.username}/.config/syncthing;
|
|
overrideDevices = false;
|
|
overrideFolders = false;
|
|
settings = {
|
|
devices = {
|
|
#"server" = { id = ""; };
|
|
"phone" = { id = "JJNURBH-YHHCPGJ-6I6YKE4-4CLD35N-LWA3JAV-KUPNYBO-I7Q4ZHY-FR3RNAU"; };
|
|
#"laptop" = { id = ""; };
|
|
};
|
|
folders = {
|
|
"Documents" = {
|
|
path = "~/Documents/";
|
|
devices = [ "phone" ];
|
|
};
|
|
"Pictures" = {
|
|
path = "~/Pictures/";
|
|
devices = [ "phone" ];
|
|
};
|
|
"Videos" = {
|
|
path = "~/Videos/";
|
|
devices = [ "phone" ];
|
|
};
|
|
"Emulators" = {
|
|
path = "~/Emulators/";
|
|
devices = [ "phone" ];
|
|
};
|
|
"Backups" = {
|
|
path = "~/Backups/";
|
|
devices = [];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|