alyssum/home.syncthing: create another instance
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
Some checks are pending
CI / Build linux-lava for x86_64-linux (push) Waiting to run
This commit is contained in:
parent
63d9d6b004
commit
bc3269a814
1 changed files with 23 additions and 17 deletions
|
|
@ -1,21 +1,27 @@
|
||||||
{ config, ... }: {
|
{ config, lib, ... }:
|
||||||
me.binds."/home/kujira/.config/syncthing" = "kujira/syncthing/config";
|
let
|
||||||
me.binds."/home/kujira/.local/state/syncthing" = "kujira/syncthing/state";
|
configOn = user: port: {
|
||||||
|
me.binds."/home/${user}/.config/syncthing" = "${user}/syncthing/config";
|
||||||
|
me.binds."/home/${user}/.local/state/syncthing" = "${user}/syncthing/state";
|
||||||
|
|
||||||
users.users.kujira = {
|
users.users.${user} = {
|
||||||
hashedPasswordFile = config.age.secrets.passwd.path;
|
hashedPasswordFile = config.age.secrets.passwd.path;
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
linger = true;
|
linger = true;
|
||||||
};
|
|
||||||
home-manager.users.kujira = { ... }: {
|
|
||||||
home = {
|
|
||||||
username = "kujira";
|
|
||||||
homeDirectory = "/home/kujira";
|
|
||||||
stateVersion = "26.05";
|
|
||||||
};
|
};
|
||||||
services.syncthing = {
|
home-manager.users.${user} = { ... }: {
|
||||||
enable = true;
|
home = {
|
||||||
guiAddress = "[::]:8385";
|
username = "${user}";
|
||||||
|
homeDirectory = "/home/${user}";
|
||||||
|
stateVersion = "26.05";
|
||||||
|
};
|
||||||
|
services.syncthing = {
|
||||||
|
enable = true;
|
||||||
|
guiAddress = "[::]:${toString port}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
in lib.mkMerge [
|
||||||
|
(configOn "kujira" 8385)
|
||||||
|
(configOn "cilly" 8386)
|
||||||
|
]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue