Skip to content

Commit d49cd29

Browse files
committed
add niks3-auto-upload
1 parent e3a2686 commit d49cd29

9 files changed

Lines changed: 89 additions & 1 deletion

File tree

configurations/nixos/desktop/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ in
1818
self.nixosModules.graphical-steam
1919
self.nixosModules.graphical-fonts
2020
self.nixosModules.graphical-trusted
21+
self.nixosModules.niks3-auto-upload
2122
self.nixosModules.pam-limits
2223
self.nixosModules.hardware-secureboot
2324
self.nixosModules.services-podman

configurations/nixos/laptop/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# NixOS configuration for laptop
22
{
3+
config,
34
flake,
45
pkgs,
56
lib,
@@ -18,6 +19,7 @@ in
1819
self.nixosModules.graphical-steam
1920
self.nixosModules.graphical-fonts
2021
self.nixosModules.graphical-trusted
22+
self.nixosModules.niks3-auto-upload
2123
self.nixosModules.pam-limits
2224
self.nixosModules.hardware-secureboot
2325
self.nixosModules.services-podman

flake.lock

Lines changed: 44 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
# Core infrastructure
1818
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
1919
nixpkgs_resticprofile.url = "github:bbigras/nixpkgs/push-zswsmktvsmpo";
20+
niks3 = {
21+
url = "github:Mic92/niks3";
22+
inputs = {
23+
nixpkgs.follows = "nixpkgs";
24+
};
25+
};
2026
flake-parts = {
2127
url = "github:hercules-ci/flake-parts";
2228
inputs.nixpkgs-lib.follows = "nixpkgs";

modules/nixos/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ in
1717
inputs.home-manager.nixosModules.home-manager
1818
inputs.impermanence.nixosModules.impermanence
1919
inputs.lanzaboote.nixosModules.lanzaboote
20+
inputs.niks3.nixosModules.niks3-auto-upload
2021
inputs.nix-index-database.nixosModules.nix-index
2122
inputs.nixos-facter-modules.nixosModules.facter
2223
]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{ config, ... }:
2+
3+
{
4+
age.secrets.desktop-niks3-auth-token.rekeyFile = ../../secrets/niks3-auth-token.age;
5+
6+
services.niks3-auto-upload = {
7+
enable = true;
8+
serverUrl = "http://cade:5751";
9+
authTokenFile = config.age.secrets.niks3-auth-token.path;
10+
};
11+
}

secrets/niks3-auth-token.age

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
age-encryption.org/v1
2+
-> ssh-ed25519 rRe3bA ygCbLnwit5V7540pcf0ZWrn8y7urscqSNwvUdrPFNi0
3+
TanBnU4minwjvWW0QikIWrBOrLeYx08QJCoirxfcD8A
4+
-> (?S^^&C%-grease /ri29]
5+
OPlF452cPw
6+
--- LqTUex19l38m6WGVFv2Si06HGwyyX4HKXZhEP2kdZy4
7+
V��o��.��Xs���2I���q^#;uj�9Fd;���Äo�O���o�Lp9��.E4��-[���\Z�ou�=z�#�
8+
�
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
age-encryption.org/v1
2+
-> ssh-ed25519 mXzM5Q 1HzO4qIL0MU2QOofE/zJ3eC4hc3xd6RVIWJFNN5XCCY
3+
hInZ96JHueaJokGHGvyoBpVecqX4/6OBvFCOE7qhp50
4+
-> 3V!KD-grease ufL:? ,oCr\
5+
Sf5DszwvdnnD8qNPR1mndkVnWdrfcog8JAoF1BniPUcW8LKg3rJdvtv+
6+
--- bstRcSq7GgmBVPWjHF0yLzNk9eFSE5QiDa26TTRCR+M
7+
|�R�WM�E>��T"���@}PxG���4���hu1�\��jVj���^�1��q���'��R����l���U����4�����e
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
age-encryption.org/v1
2+
-> ssh-ed25519 Jta5Xg 0GmPdFiwz4o5t9R0LYsDYgbIjk4RAKYPQbf3iXL7Hm4
3+
DDXgCT4gK7BBdPEkCW0T4dA1As/bXhDtiRR3afS13G4
4+
-> 2-grease xo39 8W
5+
q2/c4dDdsIPcXZwmE4l0bulR1L2KN/7RZgurQ2OeQvjJJXQSqp1F4b8p31OeQzcW
6+
o6wZ44+RLviOpASW
7+
--- hiKC1IiyjCHzaNGHLBBQzrwNLA7E5QI6F0v220RBvkQ
8+
���v00����Jړ�Ɩ��ĜnŒWXx �D͠�7*'6��-;٭X�~�L�`�
9+
rp1s(R�^��(ݬm�%WK�ʠ'8K6

0 commit comments

Comments
 (0)