41 lines
905 B
Nix
41 lines
905 B
Nix
{ config, pkgs, ... }:
|
|
|
|
let user = "dekker1"; in
|
|
|
|
{
|
|
imports = [
|
|
./home-manager.nix
|
|
../shared
|
|
../shared/cachix
|
|
];
|
|
|
|
# Auto upgrade nix package and the daemon service.
|
|
services.nix-daemon.enable = true;
|
|
|
|
# Setup user, packages, programs
|
|
nix = {
|
|
package = pkgs.nixUnstable;
|
|
settings.trusted-users = [ "@admin" "${user}" ];
|
|
|
|
gc = {
|
|
user = "root";
|
|
automatic = true;
|
|
interval = { Weekday = 0; Hour = 2; Minute = 0; };
|
|
options = "--delete-older-than 30d";
|
|
};
|
|
|
|
# Turn this on to make command line easier
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes
|
|
'';
|
|
};
|
|
|
|
# Turn off NIX_PATH warnings now that we're using flakes
|
|
system.checks.verifyNixPath = false;
|
|
|
|
# Load configuration that is shared across systems
|
|
environment.systemPackages = with pkgs; [
|
|
] ++ (import ../shared/packages.nix { inherit pkgs; });
|
|
|
|
}
|