2022-05-25 19:27:42 +02:00
|
|
|
{
|
|
|
|
inputs = {
|
2022-06-17 02:24:45 +02:00
|
|
|
nixpkgs-unstable.url = github:NixOS/nixpkgs/nixos-unstable;
|
2022-09-28 21:42:37 +02:00
|
|
|
|
2022-06-17 02:24:45 +02:00
|
|
|
nixpkgs.url = github:NixOS/nixpkgs/nixos-22.05;
|
2022-09-28 21:42:37 +02:00
|
|
|
|
|
|
|
flake-utils.url = github:numtide/flake-utils;
|
|
|
|
|
2022-05-29 13:39:17 +02:00
|
|
|
sops-nix = {
|
|
|
|
url = github:Mic92/sops-nix;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-09-28 21:42:37 +02:00
|
|
|
|
2022-05-25 19:27:42 +02:00
|
|
|
microvm = {
|
|
|
|
url = github:astro/microvm.nix;
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2022-09-28 21:42:37 +02:00
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
fenix = {
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2022-07-10 03:00:29 +02:00
|
|
|
outputs =
|
|
|
|
inputs@{ self
|
|
|
|
, nixpkgs
|
|
|
|
, nixpkgs-unstable
|
2022-09-28 21:42:37 +02:00
|
|
|
, flake-utils
|
2022-07-10 03:00:29 +02:00
|
|
|
, sops-nix
|
|
|
|
, microvm
|
|
|
|
, fenix
|
|
|
|
, ...
|
|
|
|
}:
|
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-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 = {
|
|
|
|
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-07-10 03:00:29 +02:00
|
|
|
./modules/gnupg.nix
|
2022-08-05 00:18:25 +02:00
|
|
|
./modules/graphical.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
|
|
|
({ pkgs, ... }: {
|
2022-09-28 21:42:37 +02:00
|
|
|
nixpkgs.overlays = [
|
|
|
|
fenix.overlay
|
|
|
|
self.overlays.default
|
|
|
|
];
|
2022-07-10 03:00:29 +02:00
|
|
|
environment.systemPackages = with pkgs; [
|
2022-08-05 00:18:25 +02:00
|
|
|
(fenix.packages."x86_64-linux".stable.withComponents [
|
2022-07-10 03:00:29 +02:00
|
|
|
"cargo"
|
|
|
|
"clippy"
|
|
|
|
"rust-src"
|
|
|
|
"rustc"
|
|
|
|
"rustfmt"
|
|
|
|
])
|
|
|
|
rust-analyzer-nightly
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
cirrus = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
modules = [
|
|
|
|
sops-nix.nixosModules.sops
|
|
|
|
./hosts/cirrus
|
|
|
|
./modules/basic-tools.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
dishwasher = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nextcloud = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|