-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
69 lines (63 loc) · 1.84 KB
/
Copy pathflake.nix
File metadata and controls
69 lines (63 loc) · 1.84 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
62
63
64
65
66
67
68
69
{
description = "Bigo's Nix configuration flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-25.05";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nixgl = {
url = "github:nix-community/nixGL";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
url = "github:hyprwm/Hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
tokio-console.url = "github:tokio-rs/console";
mash.url = "github:crisidev/mash";
};
outputs =
{
home-manager,
nixgl,
nixpkgs,
...
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
# Servers: plain nixpkgs, no falcon-specific inputs leaked in
mkServer =
modules:
home-manager.lib.homeManagerConfiguration {
inherit pkgs modules;
};
# Falcon: nixGL + mash overlays, full inputs for hyprland flake packages
falconPkgs = import nixpkgs {
inherit system;
overlays = [
nixgl.overlay
inputs.mash.overlays.default
];
};
corelliaModules = [ ./home-nix/corellia.nix ];
in
{
# Available through `home-manager --flake .#host switch`
homeConfigurations = {
falcon = home-manager.lib.homeManagerConfiguration {
pkgs = falconPkgs;
extraSpecialArgs = { inherit inputs; };
modules = [ ./home-nix/falcon.nix ];
};
corellia = mkServer corelliaModules;
tatooine = mkServer corelliaModules;
mandalore = mkServer corelliaModules;
razor = mkServer [ ./home-nix/razor.nix ];
scarif = mkServer [ ./home-nix/scarif.nix ];
};
formatter.${system} = pkgs.nixfmt;
};
}