mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
nix: register flakes as local registrys
This commit is contained in:
parent
1ca1981457
commit
599d55fa6a
1 changed files with 22 additions and 15 deletions
|
@ -1,21 +1,28 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, inputs, ... }:
|
||||||
{
|
{
|
||||||
nix.settings = {
|
nix = {
|
||||||
trusted-users = [
|
settings = {
|
||||||
"root"
|
trusted-users = [
|
||||||
"@wheel"
|
"root"
|
||||||
];
|
"@wheel"
|
||||||
auto-optimise-store = true;
|
];
|
||||||
};
|
auto-optimise-store = true;
|
||||||
|
};
|
||||||
|
|
||||||
nix.gc = {
|
gc = {
|
||||||
automatic = true;
|
automatic = true;
|
||||||
options = "--delete-older-than 30d";
|
options = "--delete-older-than 30d";
|
||||||
};
|
};
|
||||||
|
|
||||||
nix.extraOptions = ''
|
extraOptions = ''
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
registry = {
|
||||||
|
nixpkgs.flake = inputs.nixpkgs;
|
||||||
|
unstable.flake = inputs.nixpkgs-unstable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# support auto upgrade with flakes
|
# support auto upgrade with flakes
|
||||||
system.autoUpgrade.flags = [
|
system.autoUpgrade.flags = [
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue