Changed Security Details

This commit is contained in:
DerGrumpf
2026-04-04 16:18:02 +02:00
parent 824c7cc4fc
commit a97789868a
16 changed files with 36 additions and 18 deletions
+1
View File
@@ -5,6 +5,7 @@ result-*
# sops age keys (never commit private keys) # sops age keys (never commit private keys)
*.age *.age
keys.txt keys.txt
!key.txt.age
# macOS # macOS
.DS_Store .DS_Store
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+2 -2
View File
@@ -101,9 +101,9 @@
defaultSopsFile = ../secrets/secrets.yaml; defaultSopsFile = ../secrets/secrets.yaml;
defaultSopsFormat = "yaml"; defaultSopsFormat = "yaml";
age.keyFile = if pkgs.stdenv.isDarwin then age.keyFile = if pkgs.stdenv.isDarwin then
"/Users/${primaryUser}/.config/sops/age/keys.txt" "/Users/${primaryUser}/.config/nix/secrets/keys.txt"
else else
"/home/${primaryUser}/.config/sops/age/keys.txt"; "/home/${primaryUser}/.config/nix/secrets/keys.txt";
secrets = { secrets = {
GROQ_API_KEY = { }; GROQ_API_KEY = { };
+1 -1
View File
@@ -93,7 +93,7 @@
home = "/home/${primaryUser}"; home = "/home/${primaryUser}";
shell = pkgs.fish; shell = pkgs.fish;
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keyFiles = [ ./ssh-key ]; openssh.authorizedKeys.keyFiles = [ ../secrets/ssh-key ];
extraGroups = [ "wheel" "video" "audio" "libvirtd" ]; extraGroups = [ "wheel" "video" "audio" "libvirtd" ];
}; };
} }
+2 -13
View File
@@ -1,18 +1,7 @@
{ primaryUser, ... }: { primaryUser, ... }: {
{
sops = { sops = {
defaultSopsFile = ../secrets/secrets.yaml; defaultSopsFile = ../secrets/secrets.yaml;
defaultSopsFormat = "yaml"; defaultSopsFormat = "yaml";
age.keyFile = "/home/phil/.config/sops/age/keys.txt"; age.keyFile = "/home/${primaryUser}/.config/nix/secrets/keys.txt";
secrets = {
GROQ_API_KEY = { };
OPENWEATHER_API_KEY = { };
ssh_private_key = {
path = "/home/${primaryUser}/.ssh/ssh";
owner = primaryUser;
mode = "0600";
};
};
}; };
} }
+3 -2
View File
@@ -1,5 +1,6 @@
{ pkgs, ... }: { pkgs, ... }: {
{
# TODO: This need to be tested against the cam and kernel rules need to be refined
services.udev.extraRules = '' services.udev.extraRules = ''
ACTION=="add", \ ACTION=="add", \
SUBSYSTEM=="usb", \ SUBSYSTEM=="usb", \
View File