refactor
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./secrets.nix
|
||||
./syncthing.nix
|
||||
../../modules/syncthing.nix
|
||||
../../profiles/core.nix
|
||||
../../profiles/darwin.nix
|
||||
@@ -19,30 +21,6 @@
|
||||
networking.hostName = "chidi";
|
||||
networking.computerName = "Chidi";
|
||||
|
||||
sops.age.keyFile = "/Users/${user}/.config/sops/age/keys.txt";
|
||||
|
||||
sops.secrets = {
|
||||
chidi-syncthing-cert = {
|
||||
sopsFile = ../../secrets/chidi-syncthing-cert;
|
||||
format = "binary";
|
||||
owner = user;
|
||||
path = "/Users/${user}/.config/syncthing/cert.pem";
|
||||
};
|
||||
chidi-syncthing-key = {
|
||||
sopsFile = ../../secrets/chidi-syncthing-key;
|
||||
format = "binary";
|
||||
owner = user;
|
||||
path = "/Users/${user}/.config/syncthing/key.pem";
|
||||
};
|
||||
};
|
||||
|
||||
services.syncthing.settings.folders = {
|
||||
"Projects/Work" = {
|
||||
path = "/Users/${user}/Projects/Work";
|
||||
devices = ["tahani" "chidi"];
|
||||
};
|
||||
};
|
||||
|
||||
home-manager.users.${user} = {
|
||||
imports = [
|
||||
inputs.nixvim.homeModules.nixvim
|
||||
|
||||
18
hosts/chidi/secrets.nix
Normal file
18
hosts/chidi/secrets.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{user, ...}: {
|
||||
sops.age.keyFile = "/Users/${user}/.config/sops/age/keys.txt";
|
||||
|
||||
sops.secrets = {
|
||||
chidi-syncthing-cert = {
|
||||
sopsFile = ../../secrets/chidi-syncthing-cert;
|
||||
format = "binary";
|
||||
owner = user;
|
||||
path = "/Users/${user}/.config/syncthing/cert.pem";
|
||||
};
|
||||
chidi-syncthing-key = {
|
||||
sopsFile = ../../secrets/chidi-syncthing-key;
|
||||
format = "binary";
|
||||
owner = user;
|
||||
path = "/Users/${user}/.config/syncthing/key.pem";
|
||||
};
|
||||
};
|
||||
}
|
||||
8
hosts/chidi/syncthing.nix
Normal file
8
hosts/chidi/syncthing.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{user, ...}: {
|
||||
services.syncthing.settings.folders = {
|
||||
"Projects/Work" = {
|
||||
path = "/Users/${user}/Projects/Work";
|
||||
devices = ["tahani" "chidi"];
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user