summaryrefslogtreecommitdiff
path: root/flake.nix
blob: 90be6a602e89c88257db8e2eb6cb69b04f685ac5 (plain)
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
{
  description = "NixOS Flake";

  inputs = {
    agenix.url = "github:ryantm/agenix";
    astal-bar.url = "path:/home/jras/projects/astal-bar";

    disko.url = "github:nix-community/disko";
    disko.inputs.nixpkgs.follows = "nixpkgs";

    helix.url = "github:helix-editor/helix/master";

    home-manager.url = "github:nix-community/home-manager/release-24.11";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";

    hyprland.url = "github:hyprwm/Hyprland?submodules=1&ref=v0.45.2-b";
    hy3 = {
      url = "github:outfoxxed/hy3?ref=hl0.45.0";
      inputs.hyprland.follows = "hyprland";  
    };

    microvm.url = "github:astro/microvm.nix";
    microvm.inputs.nixpkgs.follows = "nixpkgs";

    nil.url = "github:oxalica/nil";
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
    nixos-facter-modules.url = "github:numtide/nixos-facter-modules";

    update-systemd-resolved.url = "github:jonathanio/update-systemd-resolved";
    update-systemd-resolved.inputs.nixpkgs.follows = "nixpkgs";
  };

  outputs = inputs@{ self, nixpkgs, ... }:
  {
    nixosConfigurations = builtins.listToAttrs (builtins.map (name: {
      name = name;
      value = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        specialArgs = { inherit inputs; };
        modules = [ ./nodes/${name}/configuration.nix ];
      };
    }) (builtins.attrNames (builtins.readDir ./nodes)));  
  };
}