This commit is contained in:
2025-08-12 19:32:49 +00:00
parent 2a40e49f70
commit fc6bf69f00
22 changed files with 102 additions and 98 deletions

View File

@@ -1,6 +1,7 @@
{
pkgs,
user,
hostMeta,
...
}: {
imports = [
@@ -11,10 +12,8 @@
networking.computerName = "Chidi";
home-manager.users.${user} = {
programs.git.userEmail = "christoph@tuist.dev";
programs.git.userEmail = hostMeta.email;
};
environment.systemPackages = with pkgs; [
slack
];
environment.systemPackages = with pkgs; hostMeta.extraPackages;
}

View File

@@ -1,4 +1,8 @@
{user, ...}: {
{
user,
hostMeta,
...
}: {
imports = [
../shared.nix
];
@@ -7,6 +11,6 @@
networking.computerName = "Jason";
home-manager.users.${user} = {
programs.git.userEmail = "christoph@schmatzler.com";
programs.git.userEmail = hostMeta.email;
};
}

16
hosts/metadata.nix Normal file
View File

@@ -0,0 +1,16 @@
{
chidi = {
email = "christoph@tuist.dev";
extraPackages = ["slack"];
};
jason = {
email = "christoph@schmatzler.com";
extraPackages = [];
};
tahani = {
email = "christoph@schmatzler.com";
extraPackages = [];
};
}

View File

@@ -2,6 +2,7 @@
pkgs,
hostname,
user,
hostMeta,
...
}: {
imports = [
@@ -50,13 +51,20 @@
nameservers = ["1.1.1.1"];
};
# sops.secrets = {
# tahani-syncthing-cert = {
# sopsFile = "./secrets/tahani-syncthing-cert";
# format = "binary";
# path = "/home/${user}/.config/syncthing/cert.pem";
# };
# };
sops.secrets = {
tahani-syncthing-cert = {
sopsFile = ../../../secrets/tahani-syncthing-cert;
format = "binary";
owner = user;
path = "/home/${user}/.config/syncthing/cert.pem";
};
tahani-syncthing-key = {
sopsFile = ../../../secrets/tahani-syncthing-key;
format = "binary";
owner = user;
path = "/home/${user}/.config/syncthing/key.pem";
};
};
services.syncthing = {
enable = true;
@@ -73,6 +81,12 @@
devices = {};
options.globalAnnounceEnabled = false;
};
folders = {
"Projects" = {
path = "/home/${user}/Projects";
devices = [];
};
};
};
services.postgresql = {
@@ -110,6 +124,6 @@
};
home-manager.users.${user} = {
programs.git.userEmail = "christoph@schmatzler.com";
programs.git.userEmail = hostMeta.email;
};
}