mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 08:03:44 +00:00
56 lines
938 B
Nix
56 lines
938 B
Nix
{
|
|
inputs,
|
|
lib,
|
|
pkgs,
|
|
username,
|
|
...
|
|
}: let
|
|
packageSets = import ../lib/package-sets.nix {inherit inputs lib pkgs;};
|
|
in {
|
|
nix.enable = true;
|
|
|
|
nix.settings = {
|
|
auto-optimise-store = true;
|
|
experimental-features = [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
trusted-users = [
|
|
"@admin"
|
|
username
|
|
];
|
|
use-xdg-base-directories = true;
|
|
};
|
|
|
|
nix.gc =
|
|
{
|
|
automatic = true;
|
|
options = "--delete-older-than 14d";
|
|
}
|
|
// (
|
|
if pkgs.stdenv.isDarwin then
|
|
{
|
|
interval = {
|
|
Weekday = 7;
|
|
Hour = 3;
|
|
Minute = 0;
|
|
};
|
|
}
|
|
else
|
|
{
|
|
dates = "weekly";
|
|
}
|
|
);
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
|
|
programs.zsh.enable = true;
|
|
environment.shells = [pkgs.zsh];
|
|
|
|
environment.systemPackages = packageSets.core;
|
|
|
|
environment.variables = {
|
|
EDITOR = "nvim";
|
|
VISUAL = "nvim";
|
|
};
|
|
}
|