This commit is contained in:
Lilith 2025-02-27 01:37:42 +01:00
parent 44fc8ce456
commit 7f17a9eadb
Signed by: lilith
GPG key ID: 8712A0F317C37175
6 changed files with 14 additions and 7 deletions

View file

@ -20,6 +20,8 @@
./fonts.nix ./fonts.nix
./bluetooth.nix ./bluetooth.nix
./zsh.nix ./zsh.nix
./sops.nix
]; ];
system.stateVersion = "24.11"; system.stateVersion = "24.11";

View file

@ -1,4 +1,4 @@
{...}: { { pkgs, ...}: {
fonts.packages = with pkgs; [ fonts.packages = with pkgs; [
nerd-fonts.jetbrains-mono nerd-fonts.jetbrains-mono
twemoji-color-font twemoji-color-font

View file

@ -29,7 +29,7 @@
".keepass" ".keepass"
]; ];
files = []; files = [];
} };
}; };
environment.persistence."/persist/cache" = { environment.persistence."/persist/cache" = {

5
system/sops.nix Normal file
View file

@ -0,0 +1,5 @@
{ sops-nix, ... }: {
imports = [ sops-nix.nixosModules.sops ];
sops.age.keyFile = /persist/data/home/lilith/.config.sops/age/keys.txt;
}

View file

@ -1,5 +1,5 @@
{ config, ...}: let { config, sops, ...}: let
host = networking.hostName; host = config.networking.hostName;
in { in {
sops.secrets."syncthing/key.pem" = { sops.secrets."syncthing/key.pem" = {
@ -12,7 +12,7 @@
services.syncthing = { services.syncthing = {
enable = true; enable = true;
user = lilith; user = "lilith";
dataDir = "/home/lilith"; dataDir = "/home/lilith";
configDir = "/home/lilith/.config/syncthing"; configDir = "/home/lilith/.config/syncthing";

View file

@ -17,12 +17,12 @@
neededForUsers = true; neededForUsers = true;
}; };
"user/ssh/private" = { "user/ssh/private" = {
sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml; sopsFile = ../hosts/${host}/secrets/default.yaml;
path = "/home/lilith/.ssh/id_ed25519"; path = "/home/lilith/.ssh/id_ed25519";
owner = "lilith"; owner = "lilith";
}; };
"user/ssh/public" = { "user/ssh/public" = {
sopsFile = ../hosts/${conf.hostname}/secrets/default.yaml; sopsFile = ../hosts/${host}/secrets/default.yaml;
path = "/home/lilith/.ssh/id_ed25519.pub"; path = "/home/lilith/.ssh/id_ed25519.pub";
owner = "lilith"; owner = "lilith";
}; };