mirror of
https://github.com/harivansh-afk/nix.git
synced 2026-04-15 16:04:05 +00:00
57 lines
918 B
Nix
57 lines
918 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 = lib.mkDefault "--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";
|
|
};
|
|
}
|