mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
restructure folder organisation
This commit is contained in:
parent
599d55fa6a
commit
9cf7be677d
72 changed files with 95 additions and 98 deletions
41
legacy/modules/nix.nix
Normal file
41
legacy/modules/nix.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ config, lib, pkgs, inputs, ... }:
|
||||
{
|
||||
nix = {
|
||||
settings = {
|
||||
trusted-users = [
|
||||
"root"
|
||||
"@wheel"
|
||||
];
|
||||
auto-optimise-store = true;
|
||||
};
|
||||
|
||||
gc = {
|
||||
automatic = true;
|
||||
options = "--delete-older-than 30d";
|
||||
};
|
||||
|
||||
extraOptions = ''
|
||||
experimental-features = nix-command flakes
|
||||
'';
|
||||
|
||||
registry = {
|
||||
nixpkgs.flake = inputs.nixpkgs;
|
||||
unstable.flake = inputs.nixpkgs-unstable;
|
||||
};
|
||||
};
|
||||
|
||||
# support auto upgrade with flakes
|
||||
system.autoUpgrade.flags = [
|
||||
"--update-input"
|
||||
"nixpkgs"
|
||||
"--commit-lock-file"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
nix-prefetch
|
||||
nix-update
|
||||
nixpkgs-fmt
|
||||
nixpkgs-lint
|
||||
nixpkgs-review
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue