Moved all nix configs

This commit is contained in:
ari committed 2024-08-09 14:57:03 -04:00
1 parent ad7fdad2c6
commit 1fcffc0650
6 files changed
+61 -82

No files matched your search

+1
View File
@@ -4,5 +4,6 @@
./core.nix
./user.nix
./macos.nix
./nix-substituters.nix
];
}
+39
View File
@@ -0,0 +1,39 @@
{ config, lib, ... }:
with lib;
let
cfg = config.skyg.core.substituters;
skygUser = config.skyg.user;
in
{
options = {
skyg.core.substituters = {
urls = mkOption {
type = types.listOf types.str;
default = [ ];
};
keys = mkOption {
type = types.listOf types.str;
default = [ ];
};
};
};
config = {
nix.settings.substituters = [
"https://cache.nixos.org"
"https://cache.flox.dev"
"https://devenv.cachix.org"
] ++ cfg.urls;
nix.settings.trusted-substituters = [
"https://cache.flox.dev"
"https://devenv.cachix.org"
] ++ cfg.urls;
nix.settings.trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
] ++ cfg.keys;
nix.settings.trusted-users = [ "root" skygUser.name ];
};
}
+1
View File
@@ -40,6 +40,7 @@ in
};
config = {
programs.zsh.enable = true;
home-manager.users.root = {
home.stateVersion = cfg.home-manager.version;
programs.git = {