-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
61 lines (57 loc) · 1.77 KB
/
flake.nix
File metadata and controls
61 lines (57 loc) · 1.77 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
50
51
52
53
54
55
56
57
58
59
60
61
{
description = "My Home Manager Configuration";
inputs = {
home-manager.url = "github:nix-community/home-manager";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, home-manager, nixpkgs, ... }@inputs:
flake-utils.lib.eachDefaultSystemPassThrough (system:
let
pkgs = nixpkgs.legacyPackages.x86_64-linux;
username = "uniqueding";
homeDirectory = "/home/uniqueding";
stateVersion = "25.11";
confPath = "/home/uniqueding/dotfiles/conf";
in {
homeConfigurations.docker = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home.username = username;
home.homeDirectory = homeDirectory;
home.stateVersion = stateVersion;
imports = [
./modules/editor.nix
./modules/tools.nix
./modules/shell.nix
./modules/filemanager.nix
./modules/lang.nix
];
}
];
extraSpecialArgs = {
inherit confPath;
};
};
homeConfigurations.app = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
{
home.username = username;
home.homeDirectory = homeDirectory;
home.stateVersion = stateVersion;
imports = [
./modules/editor.nix
./modules/tools.nix
./modules/shell.nix
./modules/filemanager.nix
./modules/lang.nix
./modules/app.nix
];
}
];
};
}
);
}