mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
changed sops key generation
This commit is contained in:
parent
1ae7fc1049
commit
b9d740b9f0
2 changed files with 6 additions and 10 deletions
|
|
@ -1,14 +1,9 @@
|
||||||
_: {
|
_: {lib, ...}: {
|
||||||
#enable ssh
|
#enable ssh
|
||||||
programs = {
|
programs.mtr.enable = true; #ping and traceroute
|
||||||
mtr.enable = true; #ping and traceroute
|
|
||||||
gnupg.agent = {
|
|
||||||
enable = true;
|
|
||||||
enableSSHSupport = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
services.openssh = {
|
services.openssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
hostKeys = lib.mkForce [];
|
||||||
settings = {
|
settings = {
|
||||||
PermitRootLogin = "yes";
|
PermitRootLogin = "yes";
|
||||||
PasswordAuthentication = false;
|
PasswordAuthentication = false;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@
|
||||||
settings,
|
settings,
|
||||||
self,
|
self,
|
||||||
config,
|
config,
|
||||||
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
|
@ -14,8 +15,8 @@
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = "${self}/systems/${config.networking.hostName}/secrets.yaml";
|
defaultSopsFile = "${self}/systems/${config.networking.hostName}/secrets.yaml";
|
||||||
age = {
|
age = {
|
||||||
sshKeyPaths = ["/home/${settings.username}/.ssh/id_ed25519"];
|
sshKeyPaths = lib.mkForce ["/home/${settings.username}/.ssh/id_ed25519"];
|
||||||
keyFile = "/home/${settings.username}/.config/sops/age/keys.txt";
|
keyFile = "/etc/sops/age/keys.txt";
|
||||||
generateKey = true;
|
generateKey = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue