summaryrefslogtreecommitdiff
path: root/flake.nix
blob: c61d9fcf730c0da55444e2cca9e08655bf165392 (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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
{
  description = "NixOS Flake";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";

    disko.url = "github:nix-community/disko";
    disko.inputs.nixpkgs.follows = "nixpkgs";
    nixos-facter-modules.url = "github:numtide/nixos-facter-modules";

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

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

    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";  
    };

    agenix.url = "github:ryantm/agenix";

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

    nil.url = "github:oxalica/nil";

    astal-bar.url = "path:/home/jras/projects/astal-bar";
  };

  outputs = inputs@{
    self,
    nixpkgs,
    disko,
    nixos-facter-modules,
    home-manager,
    agenix,
    update-systemd-resolved,
    ...
  }:
  {
    nixosConfigurations.work = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [
        update-systemd-resolved.nixosModules.update-systemd-resolved
        {
          environment.systemPackages = [
            agenix.packages."x86_64-linux".default
          ];
        }
        home-manager.nixosModules.home-manager
        agenix.nixosModules.default

        ./configuration/work
      ];
    };

    nixosConfigurations.tarrel = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };
      modules = [
        {
          environment.systemPackages = [
            agenix.packages."x86_64-linux".default
          ];
        }
        home-manager.nixosModules.home-manager
        agenix.nixosModules.default

        ./configuration/tarrel
      ];
    };

    nixosConfigurations.snorlax = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = { inherit inputs; };

      modules = [
        home-manager.nixosModules.home-manager
        disko.nixosModules.disko
        nixos-facter-modules.nixosModules.facter
        { config.facter.reportPath = ./configuration/snorlax/facter.json; }
        ./configuration/snorlax
      ];
    };
  };
}