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
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
fenix = {
|
2023-01-09 18:23:59 +01:00
|
|
|
url = "github:nix-community/fenix";
|
2022-07-10 03:00:29 +02:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs-unstable";
|
2022-06-27 18:50:35 +02:00
|
|
|
};
|
2022-05-25 19:27:42 +02:00
|
|
|
};
|
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
outputs =
|
|
|
|
inputs@{ self
|
2022-10-25 21:40:50 +02:00
|
|
|
, fenix
|
|
|
|
, flake-utils
|
|
|
|
, microvm
|
2022-07-10 03:00:29 +02:00
|
|
|
, 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-07-10 03:00:29 +02:00
|
|
|
{
|
2022-09-28 21:42:37 +02:00
|
|
|
overlays.default = final: prev: {
|
|
|
|
inherit (self.packages.${prev.system})
|
|
|
|
slick;
|
|
|
|
};
|
2022-07-10 03:00:29 +02:00
|
|
|
nixosConfigurations = {
|
2023-01-09 18:23:59 +01:00
|
|
|
toaster = nixpkgs-unstable.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
specialArgs = { inherit inputs; };
|
|
|
|
modules = [
|
|
|
|
./hosts/toaster
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
microwave = nixpkgs-unstable.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2022-09-28 21:42:37 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
2022-07-10 03:00:29 +02:00
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
2022-07-11 19:27:51 +02:00
|
|
|
./hosts/microwave
|
2022-07-10 03:00:29 +02:00
|
|
|
./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
|
2022-07-10 03:00:29 +02:00
|
|
|
./modules/gnupg.nix
|
2022-11-26 12:24:23 +01:00
|
|
|
./modules/sway.nix
|
2022-07-10 03:00:29 +02:00
|
|
|
./modules/hw-accel-intel.nix
|
2022-08-12 00:31:42 +02:00
|
|
|
./modules/mail
|
2022-07-10 03:00:29 +02:00
|
|
|
./modules/radio.nix
|
2022-08-05 00:18:25 +02:00
|
|
|
./modules/science.nix
|
2022-07-10 03:00:29 +02:00
|
|
|
./modules/tlp.nix
|
2022-09-14 19:27:25 +02:00
|
|
|
./modules/virtualization.nix
|
2022-07-10 03:00:29 +02:00
|
|
|
];
|
|
|
|
};
|
2023-01-09 18:23:59 +01:00
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
cirrus = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2022-10-09 13:34:48 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
2022-07-10 03:00:29 +02:00
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
./hosts/cirrus
|
|
|
|
./modules/basic-tools.nix
|
|
|
|
];
|
|
|
|
};
|
2023-01-09 18:23:59 +01:00
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
dishwasher = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2022-10-09 13:34:48 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
2022-07-10 03:00:29 +02:00
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
microvm.nixosModules.host
|
|
|
|
./hosts/dishwasher
|
|
|
|
./modules/basic-tools.nix
|
|
|
|
./modules/binary-caches.nix
|
2022-06-30 13:49:47 +02:00
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
{
|
|
|
|
microvm.vms.nextcloud = {
|
|
|
|
flake = self;
|
2022-09-23 11:20:48 +02:00
|
|
|
updateFlake = "github:oxapentane/nix-config/master";
|
2022-07-10 03:00:29 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-01-09 18:23:59 +01:00
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
nextcloud = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2022-10-09 13:34:48 +02:00
|
|
|
specialArgs = { inherit inputs; };
|
2022-07-10 03:00:29 +02:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|