feat: replace further relative paths by input.self

This commit is contained in:
Swarsel 2024-12-05 03:14:54 +01:00
parent 3a95254b88
commit 83dd2c3f8f
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
5 changed files with 137 additions and 140 deletions

View file

@ -4710,19 +4710,19 @@ Also, the system state version is set here. No need to touch it.
**** ssh
#+begin_src nix :tangle profiles/server/common/nixos/ssh.nix
_:
{ 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
];
}
@ -5760,7 +5760,7 @@ Also, the system state version is set here. No need to touch it.
**** monitoring
#+begin_src nix :tangle profiles/server/common/nixos/monitoring.nix
{ lib, config, ... }:
{ self, lib, config, ... }:
{
config = lib.mkIf config.swarselsystems.server.monitoring {
@ -5832,7 +5832,7 @@ Also, the system state version is set here. No need to touch it.
globalConfig = {
scrape_interval = "10s";
};
webConfigFile = ../../../programs/server/prometheus/web.config;
webConfigFile = self + /programs/server/prometheus/web.config;
scrapeConfigs = [
{
job_name = "node";
@ -6162,25 +6162,24 @@ This smashes Atmosphere 1.3.2 on the switch, which is what I am currenty using.
Options that I need specifically at work. There are more options at [[#h:f0b2ea93-94c8-48d8-8d47-6fe58f58e0e6][Work]] (home-manager side).
#+begin_src nix :tangle profiles/optional/nixos/work.nix
{ 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;
};
};
};