about summary refs log tree commit diff
path: root/modules/common/home-manager.nix
blob: 118fc0ebfdcc3acf21fafc1b8322be270aff8dd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
  config,
  inputs,
  lib,
  ...
}:
{
  imports = [
    inputs.home-manager.nixosModule
    (lib.mkAliasOptionModule
      [ "hm" ]
      [
        "home-manager"
        "users"
        lib.my.username
      ]
    )
  ];

  hm = {
    news.display = "silent";
    home = {
      inherit (config.system) stateVersion;
      enableNixpkgsReleaseCheck = false;
    };
  };

  home-manager = {
    backupFileExtension = "bak";
    useUserPackages = true;
    useGlobalPkgs = true;
    verbose = true;
  };
}

Consider giving Nix/NixOS a try! <3