mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
nix: expose shared home manager configuration via homeModules
This commit is contained in:
parent
5155bd69e8
commit
5b95c43559
47 changed files with 45 additions and 29 deletions
41
nix/homeModules/user-nixconf/default.nix
Normal file
41
nix/homeModules/user-nixconf/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
# generates user's substituter's config
|
||||
# should be used with home-manager
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
nix = {
|
||||
package = lib.mkDefault pkgs.nixVersions.nix_2_21;
|
||||
settings = {
|
||||
allow-import-from-derivation = "true";
|
||||
/*
|
||||
substituters can only be used by users that are trusted by nix -> nix trusts the user to do it right
|
||||
trusted-substituters can be used by any user -> nix trusts everything the substituter provides
|
||||
|
||||
"In addition, each store path should be trusted as described in trusted-public-keys"
|
||||
-> keys for everything
|
||||
*/
|
||||
extra-substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://leana8959.cachix.org"
|
||||
];
|
||||
extra-trusted-substituters = [
|
||||
"https://nix-community.cachix.org"
|
||||
"https://leana8959.cachix.org"
|
||||
];
|
||||
extra-trusted-public-keys = [
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
"leana8959.cachix.org-1:CxQSAp8lcgMv8Me459of0jdXRW2tcyeYRKTiiUq8z0M="
|
||||
];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
};
|
||||
|
||||
registry.flakies = {
|
||||
from.id = "flakies";
|
||||
from.type = "indirect";
|
||||
to.type = "git";
|
||||
to.url = "https://git.earth2077.fr/leana/flakies";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue