clean up nix config
This commit is contained in:
parent
fe0b5710e6
commit
90b549f5a9
6 changed files with 37 additions and 37 deletions
30
nixos/modules/nix.nix
Normal file
30
nixos/modules/nix.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ self
|
||||
, home-manager
|
||||
, nixpkgs
|
||||
, ...
|
||||
}:
|
||||
{ config, pkgs, lib, ... }:
|
||||
# Global settings for nix daemon
|
||||
{
|
||||
nix.nixPath = [
|
||||
"home-manager=${home-manager}"
|
||||
"nixpkgs=${nixpkgs}"
|
||||
"dadada=${self}"
|
||||
];
|
||||
nix.registry = {
|
||||
home-manager.flake = home-manager;
|
||||
nixpkgs.flake = nixpkgs;
|
||||
dadada.flake = self;
|
||||
};
|
||||
nix.binaryCaches = [
|
||||
https://cache.nixos.org/
|
||||
https://nix-community.cachix.org/
|
||||
];
|
||||
nix.binaryCachePublicKeys = [
|
||||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"gorgon:eEE/PToceRh34UnnoFENERhk89dGw5yXOpJ2CUbfL/Q="
|
||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||
];
|
||||
nix.requireSignedBinaryCaches = true;
|
||||
nix.useSandbox = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue