aboutsummaryrefslogtreecommitdiffstats
path: root/inputs.nix
blob: 326df90f8d3dc3283c1f0007611572b7c5d82237 (plain) (blame)
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
let
  nixosVersion = "26.05";

  lanzabooteVersion = "v1.2.0";

  w_nixpkgs = ref: {
    type = "github";
    owner = "nixos";
    repo = "nixpkgs";
    inherit ref;
  };
  w_tarball = url: {
    type = "tarball";
    inherit url;
  };
  w_github = owner: repo: {
    type = "github";
    inherit owner repo;
  };

  nixos_stable = "https://channels.nixos.org/nixos-${nixosVersion}-small/nixexprs.tar.zst";
  nixos_unstable = "https://channels.nixos.org/nixos-unstable-small/nixexprs.tar.zst";
in {
  _unflake.dedupRules = [
    {
      when = w_nixpkgs "nixpkgs-unstable";
      set = w_tarball nixos_unstable;
    }
    {
      when = w_nixpkgs "nixos-unstable-small";
      set = w_tarball nixos_unstable;
    }
    {
      when = w_nixpkgs "nixos-25.05";
      set = w_tarball nixos_stable;
    }
    {
      when = w_nixpkgs "nixos-25.11";
      set = w_tarball nixos_stable;
    }
    {
      when = w_nixpkgs "nixos-26.05";
      set = w_tarball nixos_stable;
    }
    {
      when = {url = "https://channels.nixos.org/nixpkgs-unstable/nixexprs.tar.zst";};
      set = w_tarball nixos_unstable;
    }

    # {
    #   when = {url = "https://git.foss-syndicate.org/vhack.eu/nix-library";};
    #   set = {url = "file:///home/nixos/s/nix-library";};
    # }

    {
      when = w_github "nix-community" "home-manager";
      set = {ref = "master";};
    }

    {
      when = w_github "nixos" "flake-compat";
      set = {
        type = "git";
        url = "https://git.lix.systems/lix-project/flake-compat";
        ref = "main";
      };
    }

    {
      when = w_github "nix-systems" "default";
      set = {ref = "main";};
    }
    {
      when = w_github "nix-systems" "x86_64-linux";
      set = {
        repo = "default";
        ref = "main";
      };
    }

    {
      when = w_github "numtide" "treefmt-nix";
      set = {ref = "main";};
    }
  ];

  # Actual inputs
  agenix.url = "github:ryantm/agenix/main";
  devshells.url = "git+https://git.foss-syndicate.org/bpeetz/devshells?ref=prime";
  disko.url = "github:nix-community/disko/master";
  flake-compat.url = "git+https://git.lix.systems/lix-project/flake-compat?ref=main";
  home-manager.url = "github:nix-community/home-manager/master";
  impermanence.url = "github:nix-community/impermanence/master";
  lanzaboote.url = "github:nix-community/lanzaboote/${lanzabooteVersion}";
  library.url = "git+https://git.foss-syndicate.org/vhack.eu/nix-library?ref=prime";
  nix-index-database.url = "github:nix-community/nix-index-database/main";
  nixos-generators.url = "github:nix-community/nixos-generators/master";
  nixpkgs-stable.url = "tarball+${nixos_stable}";
  nixpkgs.url = "tarball+${nixos_unstable}";
  nixvim.url = "github:nix-community/nixvim/main";
  qmk_firmware.url = "git+https://git.foss-syndicate.org/bpeetz/qmk_layout?ref=prime";
  serverphone.url = "git+https://codeberg.org/vhack.eu/serverphone?ref=prime";
  templates.url = "git+https://codeberg.org/bpeetz/flake-templates?ref=prime";
  treefmt-nix.url = "github:numtide/treefmt-nix/main";
  turtle.url = "git+https://git.foss-syndicate.org/bpeetz/forks/atuin?ref=main";

  # Server
  deploy-rs = {
    url = "github:serokell/deploy-rs";
  };
  rocie = {
    url = "git+https://git.foss-syndicate.org/bpeetz/rocie/nix?ref=prime";
  };
  simple-nixos-mailserver = {
    url = "gitlab:simple-nixos-mailserver/nixos-mailserver/nixos-${nixosVersion}";
  };
}