-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
76 lines (73 loc) · 1.97 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
76
{
description = "Thiago's NixOS configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
hyprland = {
type = "git";
url = "https://github.com/hyprwm/Hyprland";
submodules = true;
};
hyprpanel = {
url = "github:Jas-SinghFSU/HyprPanel";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
nix-wallpapers = {
url = "github:thiagokimo/nix-wallpapers";
flake = false;
};
stylix.url = "github:danth/stylix";
};
outputs = {
self,
nixpkgs,
flake-utils,
home-manager,
nixos-hardware,
nix-wallpapers,
stylix,
...
} @ inputs: let
inherit (self) outputs;
systems = ["x86_64-linux"];
forAllSystems = nixpkgs.lib.genAttrs systems;
pkgsFor = nixpkgs.legacyPackages;
in {
formatter = forAllSystems (system: pkgsFor.${system}.alejandra);
devShells = forAllSystems (system: import ./shell.nix pkgsFor.${system});
# Entry point for my NixOS machines
nixosConfigurations = {
framework = nixpkgs.lib.nixosSystem {
modules = [
nixos-hardware.nixosModules.framework-13-7040-amd
stylix.nixosModules.stylix
{nixpkgs.overlays = [inputs.hyprpanel.overlay];}
./hosts/framework/configuration.nix
];
specialArgs = {inherit inputs outputs;};
};
};
templates = {
go = {
path = ./dev-environments/go;
description = "Go dev environment";
};
kotlin = {
path = ./dev-environments/kotlin;
description = "Kotlin dev environment";
};
flutter = {
path = ./dev-environments/flutter;
description = "Flutter dev environment";
};
nix = {
path = ./dev-environments/nix;
description = "Nix dev environment";
};
};
};
}