Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Jul 2, 2024
1 parent caffae3 commit 477f331
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
9 changes: 9 additions & 0 deletions hosts/hastur/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
};
programs.sway.enable = true;

systemd.user.services.add-ssh-keys = {
script = ''
eval `${pkgs.openssh}/bin/ssh-agent -s`
export SSH_ASKPASS_REQUIRE="prefer"
${pkgs.openssh}/bin/ssh-add ${config.age.secrets.id.path}
'';
wantedBy = [ "default.target" ];
};

systemd = {
services = {
atuin.serviceConfig.Environment = [ "RUST_LOG=debug" ];
Expand Down
9 changes: 9 additions & 0 deletions hosts/kaambl/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@
programs.sway.enable = true;
programs.gtklock.enable = true;

systemd.user.services.add-ssh-keys = {
script = ''
eval `${pkgs.openssh}/bin/ssh-agent -s`
export SSH_ASKPASS_REQUIRE="prefer"
${pkgs.openssh}/bin/ssh-add ${config.age.secrets.id.path}
'';
wantedBy = [ "default.target" ];
};

srv = {
openssh.enable = true;
fail2ban.enable = true;
Expand Down
4 changes: 2 additions & 2 deletions hosts/nodens/spec.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

system.stateVersion = "22.11";

users.mutableUsers = false;
system.etc.overlay.mutable = false;
users.mutableUsers = true;
system.etc.overlay.mutable = true;

nix.gc = {
automatic = true;
Expand Down
9 changes: 0 additions & 9 deletions misc.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,6 @@

boot.tmp.useTmpfs = true;

systemd.user.services.add-ssh-keys = {
script = ''
eval `${pkgs.openssh}/bin/ssh-agent -s`
export SSH_ASKPASS_REQUIRE="prefer"
${pkgs.openssh}/bin/ssh-add ${config.age.secrets.id.path}
'';
wantedBy = [ "default.target" ];
};

virtualisation = {
vmVariant = {
virtualisation = {
Expand Down

0 comments on commit 477f331

Please sign in to comment.