mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 16:33:55 -05:00
moved syncthing key/cert hosts -> nixosModules
This commit is contained in:
parent
819ea712fe
commit
d772abff12
|
@ -96,6 +96,7 @@
|
|||
specialArgs = {inherit inputs self;};
|
||||
modules = [
|
||||
./hosts/${host}
|
||||
self.nixosModules.default
|
||||
inputs.agenix.nixosModules.default
|
||||
];
|
||||
}
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
self.nixosModules.default
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -25,17 +24,8 @@
|
|||
|
||||
networking.hostName = "fallarbor"; # Define your hostname.
|
||||
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
services = {
|
||||
fwupd.enable = true;
|
||||
syncthing = {
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
};
|
||||
};
|
||||
|
||||
alyraffauf = {
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
self.nixosModules.default
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -25,17 +24,8 @@
|
|||
|
||||
networking.hostName = "lavaridge"; # Define your hostname.
|
||||
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
services = {
|
||||
fwupd.enable = true;
|
||||
syncthing = {
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
};
|
||||
};
|
||||
|
||||
alyraffauf = {
|
||||
|
|
|
@ -16,7 +16,6 @@ in {
|
|||
imports = [
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
self.nixosModules.default
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
@ -25,16 +24,6 @@ in {
|
|||
|
||||
networking.hostName = hostName; # Define your hostname.
|
||||
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
};
|
||||
|
||||
alyraffauf = {
|
||||
apps = {
|
||||
nicotine-plus.enable = true;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
self.nixosModules.default
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -25,16 +24,6 @@
|
|||
|
||||
networking.hostName = "petalburg"; # Define your hostname.
|
||||
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
};
|
||||
|
||||
alyraffauf = {
|
||||
system = {
|
||||
plymouth.enable = true;
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
./disko.nix
|
||||
./hardware.nix
|
||||
./home.nix
|
||||
self.nixosModules.default
|
||||
];
|
||||
|
||||
boot = {
|
||||
|
@ -22,16 +21,6 @@
|
|||
|
||||
networking.hostName = "rustboro"; # Define your hostname.
|
||||
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
};
|
||||
|
||||
alyraffauf = {
|
||||
system = {
|
||||
plymouth.enable = true;
|
||||
|
|
|
@ -28,12 +28,20 @@
|
|||
};
|
||||
|
||||
config = lib.mkIf config.alyraffauf.services.syncthing.enable {
|
||||
age.secrets = {
|
||||
syncthingCert.file = ../../../secrets/hosts + "/${config.networking.hostName}/syncthing/cert.age";
|
||||
syncthingKey.file = ../../../secrets/hosts + "/${config.networking.hostName}/syncthing/key.age";
|
||||
};
|
||||
|
||||
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
dataDir = "/home/${config.alyraffauf.services.syncthing.user}";
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
openDefaultPorts = true;
|
||||
user = config.alyraffauf.services.syncthing.user;
|
||||
dataDir = "/home/${config.alyraffauf.services.syncthing.user}";
|
||||
settings = {
|
||||
options = {
|
||||
localAnnounceEnabled = true;
|
||||
|
|
Loading…
Reference in a new issue