up
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
16
hosts/metadata.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
chidi = {
|
||||
email = "christoph@tuist.dev";
|
||||
extraPackages = ["slack"];
|
||||
};
|
||||
|
||||
jason = {
|
||||
email = "christoph@schmatzler.com";
|
||||
extraPackages = [];
|
||||
};
|
||||
|
||||
tahani = {
|
||||
email = "christoph@schmatzler.com";
|
||||
extraPackages = [];
|
||||
};
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user