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
./bluetooth.nix
./zsh.nix
./sops.nix
];
system.stateVersion = "24.11";

View file

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

View file

@ -29,7 +29,7 @@
".keepass"
];
files = [];
}
};
};
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
host = networking.hostName;
{ config, sops, ...}: let
host = config.networking.hostName;
in {
sops.secrets."syncthing/key.pem" = {
@ -12,7 +12,7 @@
services.syncthing = {
enable = true;
user = lilith;
user = "lilith";
dataDir = "/home/lilith";
configDir = "/home/lilith/.config/syncthing";

View file

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