mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 00:57:22 +01:00
feat: replace further relative paths by input.self
This commit is contained in:
parent
3a95254b88
commit
83dd2c3f8f
5 changed files with 137 additions and 140 deletions
|
|
@ -1,22 +1,21 @@
|
|||
{ pkgs, config, ... }:
|
||||
{
|
||||
{ self, pkgs, config, ... }:
|
||||
let
|
||||
owner + "swarsel";
|
||||
sopsFile = self + /secrets/work/secrets.yaml;
|
||||
{
|
||||
sops = {
|
||||
secrets = {
|
||||
clad = {
|
||||
owner = "swarsel";
|
||||
sopsFile = ../../../secrets/work/secrets.yaml;
|
||||
inherit owner sopsfile;
|
||||
};
|
||||
dcad = {
|
||||
owner = "swarsel";
|
||||
sopsFile = ../../../secrets/work/secrets.yaml;
|
||||
inherit owner sopsfile;
|
||||
};
|
||||
wsad = {
|
||||
owner = "swarsel";
|
||||
sopsFile = ../../../secrets/work/secrets.yaml;
|
||||
inherit owner sopsfile;
|
||||
};
|
||||
imbad = {
|
||||
owner = "swarsel";
|
||||
sopsFile = ../../../secrets/work/secrets.yaml;
|
||||
inherit owner sopsfile;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
@ -111,4 +110,4 @@
|
|||
};
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, config, ... }:
|
||||
{ self, lib, config, ... }:
|
||||
{
|
||||
config = lib.mkIf config.swarselsystems.server.monitoring {
|
||||
|
||||
|
|
@ -70,7 +70,7 @@
|
|||
globalConfig = {
|
||||
scrape_interval = "10s";
|
||||
};
|
||||
webConfigFile = ../../../programs/server/prometheus/web.config;
|
||||
webConfigFile = self + /programs/server/prometheus/web.config;
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "node";
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
_:
|
||||
{ self, ... }:
|
||||
{
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
settings.PermitRootLogin = "yes";
|
||||
};
|
||||
users.users.swarsel.openssh.authorizedKeys.keyFiles = [
|
||||
../../../secrets/keys/authorized_keys
|
||||
../../../secrets/keys/mysticant.pub
|
||||
self + /secrets/keys/authorized_keys
|
||||
self + /secrets/keys/magicant.pub
|
||||
];
|
||||
users.users.root.openssh.authorizedKeys.keyFiles = [
|
||||
../../../secrets/keys/authorized_keys
|
||||
../../../secrets/keys/mysticant.pub
|
||||
self + /secrets/keys/authorized_keys
|
||||
self + /secrets/keys/magicant.pub
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue