-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
68 lines (65 loc) · 2.04 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
65
66
67
68
{
description = "Home-manager configuration";
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
icetan-overlay.url = "github:icetan/nixpkgs-overlay";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl.url = "github:guibou/nixGL";
zshPure = {
url = "github:sindresorhus/pure";
flake = false;
};
poetry2nix = {
url = "github:nix-community/poetry2nix";
# inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
outputs = {
self, home-manager, nixgl, nixpkgs, utils,
zshPure, icetan-overlay, poetry2nix, nixos-hardware
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
overlays = [ nixgl.overlay ] ++ icetan-overlay.overlays.default;
};
server = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [ ./server.nix ];
};
in rec {
homeConfigurations = {
m0ar = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [ ./home.nix ];
extraSpecialArgs = { inherit inputs; };
};
osmc = home-manager.lib.homeManagerConfiguration {
pkgs = import nixpkgs {
system = "aarch64-linux";
};
modules = [ ./osmc.nix ];
extraSpecialArgs = { inherit inputs; };
};
};
nixosConfigurations.blep = server;
nixosConfigurations.xin = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; m0ar = homeConfigurations.m0ar; };
modules = [
./xin.nix
nixos-hardware.nixosModules.framework-13-7040-amd
home-manager.nixosModules.home-manager
{ nixpkgs.overlays = [ nixgl.overlay ] ++ icetan-overlay.overlays.default; }
];
};
vms.blep = server.config.system.build.vm;
};
}