-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
68 lines (66 loc) · 2.19 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 = "System and Home flake for zmh";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/master";
inputs.nixpkgs.follows = "nixpkgs";
};
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
stylix.url = "github:danth/stylix";
impermanence.url = "github:zackattackz/impermanence";
};
outputs = { nixpkgs, home-manager, nixvim, stylix, impermanence, ... }:
let
system = "x86_64-linux";
# overlay = final: prev: {
# };
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
config.allowUnfreePredicate = _: true;
# overlays = [ some-overlays-here ];
};
homeArgs = {
homeModulesPath = ./modules/home;
};
systemArgs = {
# inherit overlay
systemModulesPath = ./modules/system;
inherit homeArgs;
nixvimModule = nixvim.homeManagerModules.nixvim;
impermanenceModule = impermanence.homeManagerModules.impermanence;
};
maintainers.zackattackz = {
email = "[email protected]";
github = "zackattackz";
githubId = 39349995;
name = "Zachary Hanham";
};
in {
nixosConfigurations."nyx" = nixpkgs.lib.nixosSystem {
inherit pkgs;
modules = [
./systems/nyx.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
impermanence.nixosModules.impermanence
];
specialArgs = systemArgs // { system = "nyx"; home-modules = import ./users/nyx/z.nix; };
};
nixosConfigurations."athena" = nixpkgs.lib.nixosSystem {
inherit pkgs;
modules = [ ./systems/athena.nix stylix.nixosModules.stylix home-manager.nixosModules.home-manager impermanence.nixosModules.impermanence ];
specialArgs = systemArgs // { system = "athena"; home-modules = import ./users/athena/z.nix; };
};
devShells.${system} = {
default = pkgs.mkShell {
packages = with pkgs; [ nixfmt-rfc-style ];
};
};
};
}