-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.nix
45 lines (39 loc) · 1.13 KB
/
home.nix
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
35
36
37
38
39
40
41
42
43
44
45
{ inputs
, outputs
, username
, lib
, ...
}: {
imports = [
inputs.orzklv.homeModules.zsh
inputs.orzklv.homeModules.helix
inputs.orzklv.homeModules.nixpkgs
inputs.orzklv.homeModules.topgrade
inputs.orzklv.homeModules.packages
];
# This is required information for home-manager to do its job
home = {
stateVersion = "24.05";
username = username;
homeDirectory = "/home/${username}";
# Tell it to map everything in the `config` directory in this
# repository to the `.config` in my home-manager directory
file.".config" = {
# source = ./configs/config;
source = "${inputs.orzklv}/configs/config";
recursive = true;
};
file.".local/share" = {
source = "${inputs.orzklv}/configs/share";
recursive = true;
};
# Don't check if home manager is same as nixpkgs
enableNixpkgsReleaseCheck = false;
};
programs.topgrade.settings.linux = lib.mkForce {
nix_arguments = "--flake github:kolyma-labs/instances";
home_manager_arguments = [ "--flake" "github:kolyma-labs/instances" ];
};
# Let's enable home-manager
programs.home-manager.enable = true;
}