nix-config/flake.nix

156 lines
4.2 KiB
Nix
Raw Normal View History

2022-05-25 19:27:42 +02:00
{
inputs = {
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable";
2024-12-31 14:03:06 +00:00
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-24.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";
2024-12-31 17:13:04 +01:00
inputs.nixpkgs.follows = "nixpkgs-stable";
2022-05-29 13:39:17 +02:00
};
2022-09-28 21:42:37 +02:00
2024-12-31 14:05:58 +00:00
# microvm = {
# url = "github:astro/microvm.nix/v0.4.0";
# inputs = {
# nixpkgs.follows = "nixpkgs";
# flake-utils.follows = "flake-utils";
# };
# };
2022-09-28 21:42:37 +02:00
2023-02-14 22:13:52 +01:00
tmux-yank = {
url = "github:tmux-plugins/tmux-yank";
flake = false;
};
2022-05-25 19:27:42 +02:00
};
outputs =
inputs@{ self
, flake-utils
2024-12-31 17:13:04 +01:00
# , microvm
2024-12-31 14:03:06 +00:00
, nixpkgs-stable
, nixpkgs-unstable
, sops-nix
, ...
}:
2022-09-28 21:42:37 +02:00
2024-12-31 13:52:57 +00:00
flake-utils.lib.eachDefaultSystem
(system:
let
2024-12-31 14:05:58 +00:00
pkgs = nixpkgs-stable.legacyPackages.${system};
2024-12-31 13:52:57 +00:00
in
{
2024-12-31 13:55:20 +00:00
# packages.slick = pkgs.callPackage "${self}/pkgs/slick.nix" { };
2024-12-31 13:52:57 +00:00
# packages.imhex = pkgs.libsForQt5.callPackage "${self}/pkgs/imhex.nix" { };
})
//
{
2024-12-31 13:52:57 +00:00
overlays.default = _final: prev: {
inherit (self.packages.${prev.system})
slick;
};
nixosConfigurations = {
toaster = nixpkgs-unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [
2024-12-31 17:13:04 +01:00
# sops-nix.nixosModules.sops
2024-12-31 14:03:06 +00:00
# lanzaboote.nixosModules.lanzaboote
./hosts/toaster
./modules/basic-tools
./modules/binary-caches.nix
./modules/devtools.nix
2024-12-31 17:13:04 +01:00
./modules/gnome.nix
./modules/gnupg.nix
2024-12-31 17:13:04 +01:00
# ./modules/mail
./modules/radio.nix
./modules/science.nix
./modules/tlp.nix
./modules/virtualization.nix
];
};
2024-12-31 14:03:06 +00:00
# cirrus = nixpkgs-stable.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# ./hosts/cirrus
# ./modules/basic-tools
# ./modules/server
# ];
# };
# dishwasher = nixpkgs-stable.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# microvm.nixosModules.host
# ./hosts/dishwasher
# ./modules/basic-tools
# ./modules/binary-caches.nix
# ./modules/virtualization.nix
# ./modules/server
# ];
# };
# nextcloud = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# microvm.nixosModules.microvm
# ./microvms/nextcloud
# ./modules/server
# ];
# };
# music = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# microvm.nixosModules.microvm
# ./microvms/music
# ./modules/server
# ];
# };
# news = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# microvm.nixosModules.microvm
# ./microvms/news
# ./modules/server
# ];
# };
# noctilucent = nixpkgs.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = { inherit inputs; };
# modules = [
# sops-nix.nixosModules.sops
# ./hosts/noctilucent
# ./modules/server
# ./modules/basic-tools
# ./modules/binary-caches.nix
# ];
# };
2022-06-17 19:29:47 +02:00
};
2023-05-26 21:35:05 +02:00
2024-12-31 17:13:04 +01:00
# hydraJobs =
# let
# get-toplevel = (host: nixSystem: nixSystem.config.microvm.declaredRunner or nixSystem.config.system.build.toplevel);
# in
# nixpkgs-stable.lib.mapAttrs get-toplevel self.nixosConfigurations;
2022-05-25 19:27:42 +02:00
};
}