blob: 880902a6c5b169e1198c5e281f8a655b50016b9e (
plain)
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
|
{ config, lib, pkgs, ... }:
with lib; let
cfg = config.local.environ;
py = pkgs.python3Packages;
in
{
config = mkIf cfg.enable {
nix.registry."system".to = {
type = "path";
path = "${config.home.homeDirectory}/nix";
};
programs = {
# This is the correct way to mkDefault signByDefault ('signing' can be null)
git.signing = mkDefault { signByDefault = mkDefault true; };
home-manager.enable = true;
};
xdg.configFile."home-manager" = {
source = config.lib.file.mkOutOfStoreSymlink "${config.home.homeDirectory}/nix";
};
};
}
|