clean up nix config

This commit is contained in:
Tim Schubert 2021-11-14 13:06:18 +01:00
parent fe0b5710e6
commit 90b549f5a9
Signed by: dadada
GPG key ID: EEB8D1CE62C4DFEA
6 changed files with 37 additions and 37 deletions

30
nixos/modules/nix.nix Normal file
View 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;
}