sops
This commit is contained in:
parent
44fc8ce456
commit
7f17a9eadb
6 changed files with 14 additions and 7 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
".keepass"
|
".keepass"
|
||||||
];
|
];
|
||||||
files = [];
|
files = [];
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.persistence."/persist/cache" = {
|
environment.persistence."/persist/cache" = {
|
||||||
|
|
|
||||||
5
system/sops.nix
Normal file
5
system/sops.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{ sops-nix, ... }: {
|
||||||
|
imports = [ sops-nix.nixosModules.sops ];
|
||||||
|
|
||||||
|
sops.age.keyFile = /persist/data/home/lilith/.config.sops/age/keys.txt;
|
||||||
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue