Changed Security Details

This commit is contained in:
DerGrumpf
2026-04-04 16:18:02 +02:00
parent 62d3c12930
commit 6b665c5763
16 changed files with 9 additions and 18 deletions

1
.gitignore vendored
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

BIN
assets/avatar/Miku/^ Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

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 = { };

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" ];
}; };
} }

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";
};
};
}; };
} }

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", \