1
0
Fork 0

Fix rbw usage

This commit is contained in:
Malte 2023-03-15 22:04:42 +01:00
parent ccbff07715
commit 9bf7453a50
5 changed files with 16 additions and 5 deletions

View file

@ -167,7 +167,7 @@
)
(
pkgs.writeShellScriptBin "print-ssh-pw"
"rbw ${config.m-0.hostName}.m-0.eu ssh-key"
"rbw get ${config.m-0.hostName}.m-0.eu ssh-key"
)
(
pkgs.writeShellScriptBin "dingdingding" (builtins.readFile ./signal.sh)
@ -178,7 +178,7 @@
BROWSER = "firefox";
SUDO_ASKPASS = toString (
pkgs.writeShellScript "print-sudo-pw"
"pass show eu/m-0/${config.m-0.hostName}.m-0.eu/${config.home.username}"
"rbw get ${config.m-0.hostName}.m-0.eu ${config.home.username}"
);
};
};

View file

@ -33,7 +33,7 @@ in {
mail2rss = {
Unit.Description = "Mail to rss exporter";
Service = {
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils config.programs.rbw.packages]}";
Environment = "PATH=${lib.makeBinPath [pkgs.coreutils config.programs.rbw.package]}";
ExecStart = "${mail2rss}/bin/mail2rss";
Type = "oneshot";
};

View file

@ -48,7 +48,7 @@
if (type == "caldav")
then {
inherit username;
"password.fetch" = ["command" (lib.getExe config.programs.rbw.package) passwordPath];
"password.fetch" = ["command" (lib.getExe config.programs.rbw.package) "get" passwordPath];
read_only = readOnly;
}
else {}

View file

@ -34,6 +34,8 @@ in {
pkgs.networkmanagerapplet # For when the gnome dialog sucks in asking for a wifi password.
];
services.fprintd.enable = true;
networking = {
hostName = "apollo";
domain = "m-0.eu";

View file

@ -12,7 +12,16 @@ in {
description = "maralorn";
isNormalUser = true;
uid = 1000;
extraGroups = ["wheel" "systemd-journal" "networkmanager" "docker" "video" "adbusers" "dialout"];
extraGroups = [
"wheel"
"systemd-journal"
"networkmanager"
"docker"
"video"
"keys"
"adbusers"
"dialout"
];
inherit openssh passwordFile;
};
root = {inherit openssh passwordFile;};