nixfiles/modules/common/default.nix

71 lines
1.4 KiB
Nix

{ nixpkgs-unstable, nixpkgs-stable, pin-factorio, helix-ext, ... }:
{
imports =
[
./packages.nix
./system.nix
];
nixpkgs.overlays = [
# Import local packages
(final: prev: {
local = import ../../pkgs { pkgs = final; };
})
# Unstable
(final: prev: {
unstable = import nixpkgs-unstable {
system = final.stdenv.hostPlatform.system;
};
})
# Stable
(final: prev: {
stable = import nixpkgs-stable {
system = final.stdenv.hostPlatform.system;
};
})
# Pins
(final: prev: {
pin = {
factorio = import pin-factorio { system = final.stdenv.hostPlatform.system; config.allowUnfree = true; };
};
})
# Helix
(final: prev: {
helix-with-extensions = helix-ext.packages."x86_64-linux".helix;
})
];
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";
};
}