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

  outputs = inputs: let
    helper = import ./lib/helper.nix {inherit inputs;};
  in {
    # NixOS Configurations
    nixosConfigurations = {
      "nzxt-desktop" = helper.mkSystem "nzxt-desktop" "x86_64-linux";
      "ideapad-laptop" = helper.mkSystem "ideapad-laptop" "x86_64-linux";
      "prodesk-server" = helper.mkSystem "prodesk-server" "x86_64-linux";
      "steam-deck" = helper.mkSystem "steam-deck" "x86_64-linux";
    };

    # Home Manager Configurations
    homeConfigurations = {
      "culsans@nzxt-desktop" = helper.mkHome "culsans" "nzxt-desktop" "x86_64-linux";
      "lucas@ideapad-laptop" = helper.mkHome "lucas" "ideapad-laptop" "x86_64-linux";
      "server@prodesk-server" = helper.mkHome "server" "prodesk-server" "x86_64-linux";
      "culsans@steam-deck" = helper.mkHome "culsans" "steam-deck" "x86_64-linux";
    };

    # Packages
    packages = helper.customPackages;
  };

  inputs = {
    # Essential (Nix Ecosystem)

    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    home-manager = {
      url = "github:nix-community/home-manager/master";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    jovian.url = "github:Jovian-Experiments/Jovian-NixOS"; # nixos on steam deck

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

    # Nonessential

    wallpapers.url = "codeberg:triethyl/wallpapers";

    mnw.url = "github:Gerg-L/mnw";

    niri.url = "github:sodiboo/niri-flake";

    nix-minecraft.url = "github:Infinidoge/nix-minecraft";

    nix-flatpak.url = "github:gmodena/nix-flatpak";
  };
}