-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
75 lines (63 loc) · 2.11 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
69
70
71
72
73
74
75
{
description = "A NixOS and Home Manager configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager/release-24.11";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nixvim.url = "github:nix-community/nixvim/nixos-24.11";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
# NOTE: Fork of "github:jas-singhfsu/hyprpanel"
hyprpanel.url = "git+file:///home/ben/HyprPanel";
# hyprpanel.url = "github:benvonh/hyprpanel";
hyprpanel.inputs.nixpkgs.follows = "nixpkgs";
sugar-candy.url = "github:zhaith-izaliel/sddm-sugar-candy-nix";
sugar-candy.inputs.nixpkgs.follows = "nixpkgs";
hardware.url = "github:nixos/nixos-hardware";
};
outputs = { self, nixpkgs, home-manager, ... }@inputs:
let
inherit (self) outputs;
systems = [
# Linux
"i686-linux"
"x86_64-linux"
"aarch64-linux"
# Darwin
"x86_64-darwin"
"aarch64-darwin"
];
pkgsFor = nixpkgs.legacyPackages;
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system:
let pkgs = pkgsFor.${system}; in {
cheat = pkgs.callPackage ./cheat {};
});
devShells = forAllSystems (system:
let pkgs = pkgsFor.${system}; in {
default = pkgs.mkShell {
NIX_CONFIG = "experimental-features = nix-command flakes";
packages = [ pkgs.nix pkgs.git pkgs.vim pkgs.home-manager ];
};
});
nixosConfigurations = {
fractal = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./nixos/core ./nixos/fractal ];
};
zephyrus = nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs outputs; };
modules = [ ./nixos/core ./nixos/zephyrus ];
};
};
homeConfigurations = {
ben = home-manager.lib.homeManagerConfiguration {
extraSpecialArgs = { inherit inputs outputs; };
modules = [ ./home-manager/ben ];
pkgs = pkgsFor.x86_64-linux;
};
};
};
}