-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
64 lines (62 loc) · 1.58 KB
/
flake.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
colors.url = "github:misterio77/nix-colors";
helix.url = "github:vv3rd/helix/vv3rd-mods";
xremap.url = "github:xremap/nix-flake";
};
outputs =
{
self,
nixpkgs,
home-manager,
helix,
colors,
xremap,
...
}@inputs:
let
overlay = (final: prev: { helix = helix.packages.${final.system}.helix; });
in
{
nixosConfigurations.zenbook =
let
system = "x86_64-linux";
lib = nixpkgs.lib;
unfreePkgs = [
"discord"
"vscode"
];
in
lib.nixosSystem {
specialArgs = {
inherit system inputs;
};
modules = [
./hosts/zenbook/configuration.nix
home-manager.nixosModules.default
xremap.nixosModules.default
{
nixpkgs.overlays = [ overlay ];
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) unfreePkgs;
}
];
};
homeConfigurations."alexey" =
let
system = "aarch64-darwin";
pkgs = import nixpkgs { inherit system; };
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit system colors helix;
};
modules = [ ./hosts/macbook/home.nix ];
};
};
}