nixfiles/modules/common/default.nix
2025-11-16 16:26:02 +01:00

66 lines
1.2 KiB
Nix

{ nixpkgs-unstable, nixpkgs-stable, pin-factorio, ... }:
{
imports =
[
./packages.nix
./system.nix
];
# Import local packages
nixpkgs.overlays = [
(final: prev: {
local = import ../../pkgs { pkgs = final; };
})
# Unstable
(final: prev: {
unstable = import nixpkgs-unstable {
system = prev.system;
};
})
# Stable
(final: prev: {
stable = import nixpkgs-stable {
system = prev.system;
};
})
# Pins
(final: prev: {
pin = {
factorio = import pin-factorio { system = prev.system; config.allowUnfree = true; };
};
})
];
nixpkgs.config = {
allowUnfree = true;
# allowBroken = true;
permittedInsecurePackages = [
"jitsi-meet-1.0.8792"
];
};
nix.extraOptions = ''
experimental-features = nix-command flakes
'';
nix.optimise.automatic = true;
# Switch to nh
# nix.gc = {
# automatic = true;
# dates = "weekly";
# options = "--delete-older-than 30d";
# };
programs.nh = {
enable = true;
clean = {
enable = true;
extraArgs = "--keep 5 --keep-since 15d";
};
flake = "/home/lyes/Documents/nixos";
};
}