feat: migrate capptuccin themes into my nur-packages, add nix's access-tokens into secrets

This commit is contained in:
Ryan Yin
2023-12-20 12:03:37 +08:00
parent 58b02a6b16
commit 50d9301e13
13 changed files with 171 additions and 254 deletions

View File

@@ -1,9 +1,12 @@
{
pkgs,
config,
lib,
username,
...
}: {
nix.extraOptions = ''
!include ${config.age.secrets.nix-access-tokens.path}
'';
nix.settings = {
# enable flakes globally
experimental-features = ["nix-command" "flakes"];
@@ -13,6 +16,7 @@
# 2. command line args `--options substituers http://xxx`
trusted-users = [username];
# substituers that will be considered before the official ones(https://cache.nixos.org)
substituters = [
# cache mirror located in China
# status: https://mirror.sjtu.edu.cn/
@@ -20,11 +24,14 @@
# status: https://mirrors.ustc.edu.cn/status/
# "https://mirrors.ustc.edu.cn/nix-channels/store"
"https://cache.nixos.org"
"https://nix-community.cachix.org"
# my own cache server
"https://ryan4yin.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"ryan4yin.cachix.org-1:Gbk27ZU5AYpGS9i3ssoLlwdvMIh0NxG0w8it/cv9kbU="
];
builders-use-substitutes = true;
};