diff --git a/README.md b/README.md index cd0ebc90..4323f875 100644 --- a/README.md +++ b/README.md @@ -209,3 +209,19 @@ Completed ToDo List [here](docs/complete.md) * https://github.com/Pipshag/dotfiles_nord * https://github.com/hajosattila/dotfiles/ * https://gist.github.com/toger5/3a509d9a9d7ebba1e02205b00449ccff + + +Example of passwordless SSH for deploy-rs: +``` +nixosConfigurations.target = { + # enable passwordless elevation + security.pam.enableSSHAgentAuth = true; +}; +deploy.nodes.target = { + # ssh as normal user but elevate to root after + sshUser = "me"; + user = "root"; + sshOpts = [ "-A" ]; +}; + +``` \ No newline at end of file diff --git a/nixos/common/services/telegraf.nix b/nixos/common/services/telegraf.nix index 89f7a3ea..2621931e 100644 --- a/nixos/common/services/telegraf.nix +++ b/nixos/common/services/telegraf.nix @@ -17,11 +17,12 @@ # Allow telegraf to talk to other executables it requires: systemd.services.telegraf = { - path = with pkgs; [ - lm_sensors # sensors - # linuxPackages.nvidia_x11 # nvidia-smi - smartmontools # smartctl - sudo # sudo + path = [ + pkgs.lm_sensors # sensors + pkgs.linuxPackages.nvidia_x11 # nvidia-smi + pkgs.smartmontools # smartctl + pkgs.sudo # sudo + nixos-version ]; }; @@ -63,6 +64,9 @@ }; temp = {}; wireless = {}; + files = { + files = [ "/etc/os-release" ]; + }; exec = { commands = [ "nixos-version" ]; name_suffix = "_nixos-version";