1
0
Fork 0
dotfiles/flake.nix

100 lines
2.5 KiB
Nix
Raw Normal View History

2021-12-06 22:35:29 +00:00
{
inputs = {
2023-06-13 08:22:57 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
2023-07-08 09:51:45 +00:00
# nixpkgs-master.url = "github:nixos/nixpkgs/master";
2023-07-07 08:53:05 +00:00
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-06 22:35:29 +00:00
2023-07-13 10:02:14 +00:00
nix-darwin = {
2022-02-03 22:35:52 +00:00
url = "github:lnl7/nix-darwin";
2022-07-30 16:18:04 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2022-02-03 22:35:52 +00:00
};
2021-12-10 21:15:13 +00:00
home-manager = {
url = "github:nix-community/home-manager";
2022-07-30 16:18:04 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2021-12-10 21:15:13 +00:00
};
2021-12-06 22:35:29 +00:00
2023-06-07 18:40:27 +00:00
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
2023-04-14 08:23:54 +00:00
agenix = {
url = "github:ryantm/agenix";
2023-02-05 16:51:04 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2023-07-13 10:02:14 +00:00
inputs.darwin.follows = "nix-darwin";
2023-02-05 16:51:04 +00:00
};
2023-04-04 18:31:35 +00:00
attic = {
url = "github:zhaofengli/attic";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-04-04 15:20:09 +00:00
2021-12-17 20:41:54 +00:00
nifoc-overlay = {
url = "github:nifoc/nix-overlay";
2022-07-30 16:18:04 +00:00
inputs.nixpkgs.follows = "nixpkgs";
2021-12-17 20:41:54 +00:00
};
2023-05-12 15:39:09 +00:00
deploy-rs = {
url = "github:serokell/deploy-rs";
inputs.nixpkgs.follows = "nixpkgs";
};
2021-12-06 22:35:29 +00:00
};
2022-07-29 18:13:31 +00:00
outputs = inputs@{ self, ... }:
2022-02-03 22:35:52 +00:00
let
2022-08-01 20:39:14 +00:00
Styx = import ./system/flakes/Styx.nix {
2023-07-13 10:02:14 +00:00
inherit (inputs) nixpkgs home-manager nix-darwin;
2022-07-29 18:13:31 +00:00
inherit inputs;
2022-02-03 22:35:52 +00:00
};
2022-07-30 16:18:04 +00:00
tanker = import ./system/flakes/tanker.nix {
inherit (inputs) nixpkgs disko deploy-rs home-manager agenix attic;
2023-04-04 12:35:49 +00:00
inherit inputs;
};
2023-04-13 14:45:01 +00:00
mediaserver = import ./system/flakes/mediaserver.nix {
2023-05-12 15:39:09 +00:00
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
2023-04-13 14:45:01 +00:00
inherit inputs;
};
2023-06-07 18:40:27 +00:00
argon = import ./system/flakes/argon.nix {
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager agenix;
inherit inputs;
};
2023-06-14 19:55:35 +00:00
weather-sdr = import ./system/flakes/weather-sdr.nix {
inherit (inputs) nixpkgs deploy-rs home-manager agenix;
inherit inputs;
};
2022-08-01 20:39:14 +00:00
adsb-antenna = import ./system/flakes/adsb-antenna.nix {
2023-06-26 13:29:32 +00:00
inherit (inputs) nixpkgs nixos-hardware deploy-rs home-manager;
2022-07-31 18:49:51 +00:00
inherit inputs;
2022-07-30 16:18:04 +00:00
};
2022-02-03 22:35:52 +00:00
in
2022-08-01 20:39:14 +00:00
{
darwinConfigurations = {
"Styx" = Styx.system;
};
nixosConfigurations = {
tanker = tanker.system;
2023-04-13 14:45:01 +00:00
mediaserver = mediaserver.system;
2023-06-07 18:40:27 +00:00
argon = argon.system;
2023-06-14 19:55:35 +00:00
weather-sdr = weather-sdr.system;
2022-08-01 20:39:14 +00:00
adsb-antenna = adsb-antenna.system;
};
2023-05-12 15:39:09 +00:00
deploy.nodes = {
tanker = tanker.deployment;
2023-05-12 15:39:09 +00:00
mediaserver = mediaserver.deployment;
2023-06-07 18:40:27 +00:00
argon = argon.deployment;
2023-06-14 19:55:35 +00:00
weather-sdr = weather-sdr.deployment;
2023-05-14 10:54:38 +00:00
adsb-antenna = adsb-antenna.deployment;
2023-05-12 15:39:09 +00:00
};
2022-08-01 20:39:14 +00:00
};
2021-12-06 22:35:29 +00:00
}