mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-05 10:13:14 -06:00
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{
|
|
inputs,
|
|
self,
|
|
pkgs,
|
|
enabled,
|
|
...
|
|
}:
|
|
{
|
|
imports = [ inputs.nix-index-database.nixosModules.nix-index ];
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
# nix.package = pkgs.nixVersions.latest;
|
|
nix.extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
use-xdg-base-directories = true
|
|
'';
|
|
|
|
nix.optimise.automatic = true;
|
|
nix.gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
|
|
environment.systemPackages = [
|
|
pkgs.nixd
|
|
pkgs.nixfmt-rfc-style
|
|
pkgs.nix-output-monitor
|
|
|
|
self.packages.${pkgs.system}.default
|
|
];
|
|
|
|
programs.nix-index-database.comma = enabled;
|
|
|
|
# nix-index didn't like this being enabled?
|
|
programs.command-not-found.enable = false;
|
|
|
|
# I'm getting errors related to a non-existent nix-index?
|
|
programs.nix-index.enableZshIntegration = false;
|
|
programs.nix-index.enableBashIntegration = false;
|
|
programs.nix-index.enableFishIntegration = false;
|
|
|
|
nix.settings = {
|
|
trusted-users = [ "@wheel" ];
|
|
accept-flake-config = true;
|
|
};
|
|
}
|