summaryrefslogtreecommitdiff
path: root/nixos/nix.nix
blob: 0f17fcb34a0cc896fbcb849f20e89f66cf32cf0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }:

{
  personal.nix = {
    enable = true;
    autoUpgrade = true;
    flake = "git+file:///etc/nixos";
    gc.enable = true;
  };

  system.autoUpgrade.flags = pkgs.personal.lib.updateInputFlags [
    "latitude-7490/home-manager"
    "latitude-7490/my-nixpkgs"
    "latitude-7490/nixos-hardware"
    "latitude-7490/nixpkgs"
    "lattitude-7490/stylix"
  ];

  # make auto-upgrade service lightweight
  systemd.services.nixos-upgrade.unitConfig = { CPUWeight = 1; };
}