nix-config/flake.nix

122 lines
3 KiB
Nix
Raw Normal View History

2022-05-25 19:27:42 +02:00
{
inputs = {
2023-01-09 18:23:59 +01:00
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
2022-09-28 21:42:37 +02:00
2023-01-09 18:23:59 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11";
2022-09-28 21:42:37 +02:00
2023-01-09 18:23:59 +01:00
flake-utils.url = "github:numtide/flake-utils";
2022-09-28 21:42:37 +02:00
2022-05-29 13:39:17 +02:00
sops-nix = {
2023-01-09 18:23:59 +01:00
url = "github:Mic92/sops-nix";
2022-05-29 13:39:17 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2022-09-28 21:42:37 +02:00
2022-05-25 19:27:42 +02:00
microvm = {
2023-01-09 18:23:59 +01:00
url = "github:astro/microvm.nix";
2022-05-25 19:27:42 +02:00
inputs.nixpkgs.follows = "nixpkgs";
};
2022-09-28 21:42:37 +02:00
fenix = {
2023-01-09 18:23:59 +01:00
url = "github:nix-community/fenix";
inputs.nixpkgs.follows = "nixpkgs-unstable";
2022-06-27 18:50:35 +02:00
};
2022-05-25 19:27:42 +02:00
};
outputs =
inputs@{ self
, fenix
, flake-utils
, microvm
, nixpkgs
, nixpkgs-unstable
, sops-nix
, ...
}:
2022-09-28 21:42:37 +02:00
flake-utils.lib.eachDefaultSystem
(system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
packages.slick = pkgs.callPackage "${self}/pkgs/slick.nix" { };
2022-10-28 01:57:00 +02:00
packages.imhex = pkgs.callPackage "${self}/pkgs/imhex.nix" { };
2022-09-28 21:42:37 +02:00
})
//
{
2022-09-28 21:42:37 +02:00
overlays.default = final: prev: {
inherit (self.packages.${prev.system})
slick;
};
nixosConfigurations = {
2023-01-09 18:23:59 +01:00
toaster = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
./hosts/toaster
];
};
microwave = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
2022-09-28 21:42:37 +02:00
specialArgs = { inherit inputs; };
modules = [
sops-nix.nixosModules.sops
./hosts/microwave
./modules/basic-tools.nix
2022-08-05 00:18:25 +02:00
./modules/binary-caches.nix
2022-12-21 18:56:12 +01:00
./modules/chromium.nix
2022-10-03 13:16:02 +02:00
./modules/devtools.nix
./modules/gnupg.nix
2022-11-26 12:24:23 +01:00
./modules/sway.nix
./modules/hw-accel-intel.nix
2022-08-12 00:31:42 +02:00
./modules/mail
./modules/radio.nix
2022-08-05 00:18:25 +02:00
./modules/science.nix
./modules/tlp.nix
2022-09-14 19:27:25 +02:00
./modules/virtualization.nix
];
};
2023-01-09 18:23:59 +01:00
cirrus = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2022-10-09 13:34:48 +02:00
specialArgs = { inherit inputs; };
modules = [
sops-nix.nixosModules.sops
./hosts/cirrus
./modules/basic-tools.nix
];
};
2023-01-09 18:23:59 +01:00
dishwasher = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2022-10-09 13:34:48 +02:00
specialArgs = { inherit inputs; };
modules = [
sops-nix.nixosModules.sops
microvm.nixosModules.host
./hosts/dishwasher
./modules/basic-tools.nix
./modules/binary-caches.nix
{
microvm.vms.nextcloud = {
flake = self;
2022-09-23 11:20:48 +02:00
updateFlake = "github:oxapentane/nix-config/master";
};
}
];
};
2023-01-09 18:23:59 +01:00
nextcloud = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
2022-10-09 13:34:48 +02:00
specialArgs = { inherit inputs; };
modules = [
sops-nix.nixosModules.sops
microvm.nixosModules.microvm
./microvms/nextcloud
];
};
2022-06-17 19:29:47 +02:00
};
2022-05-25 19:27:42 +02:00
};
}