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

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
    home-manager.url = "github:nix-community/home-manager/release-24.05";
    home-manager.inputs.nixpkgs.follows = "nixpkgs";
    helix.url = "github:helix-editor/helix/master";
    hyprland.url = "github:hyprwm/Hyprland";
    utils.url = "github:gytis-ivaskevicius/flake-utils-plus";
    agenix.url = "github:ryantm/agenix";
  };

  outputs = { self, nixpkgs, utils, home-manager, helix, hyprland, agenix, ... }@inputs:
    utils.lib.mkFlake {
      inherit self inputs;

      channelsConfig.allowUnfree = true;

      hostDefaults.modules = [
        home-manager.nixosModules.home-manager
        agenix.nixosModules.default

        ./config/shared.nix
        ./config/agenix.nix
      ];

      hosts.work.modules = [./hosts/work.nix];
      hosts.tarrel.modules = [./hosts/tarrel.nix];
    };
}