-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
49 lines (47 loc) · 1.39 KB
/
Copy pathflake.nix
File metadata and controls
49 lines (47 loc) · 1.39 KB
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
46
47
48
49
{
description = "Home Manager configuration of samchan0221";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixpkgs-24.11-darwin";
};
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
darwin = {
url = "github:lnl7/nix-darwin";
inputs.nixpkgs.follows = "nixpkgs";
};
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let local = import ./.env.nix;
in
{
darwinConfigurations.normal = inputs.darwin.lib.darwinSystem {
system = "aarch64-darwin";
modules = [
./nix/modules/nix-core.nix
./nix/modules/apps.nix
# home manager
inputs.home-manager.darwinModules.home-manager
{
users.users.${local.username}.home = local.homeDirectory;
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.extraSpecialArgs = inputs // {
defaultGitUsername = local.defaultGitUserName;
defaultGitEmail = local.defaultGitEmail;
username = local.username;
nvfModule = inputs.nvf.homeManagerModules.default;
};
home-manager.users.${local.username} = import ./nix/home;
}
];
};
};
}