nixos-config/flake.nix

166 lines
4.6 KiB
Nix
Raw Normal View History

2024-04-08 20:32:17 +02:00
{
2024-04-13 15:58:42 +02:00
description = "My NixOS config";
2024-04-08 20:32:17 +02:00
inputs = {
2024-12-12 13:33:48 +01:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
2024-04-17 22:28:27 +02:00
2024-12-12 13:33:48 +01:00
stable.url = "github:nixos/nixpkgs/nixos-24.11";
2024-04-23 17:29:48 +02:00
2024-08-23 11:33:58 +02:00
# unstable.url = "github:nixos/nixpkgs/nixos-unstable";
# home-manager-unstable = {
2024-05-30 20:34:42 +02:00
# url = "github:nix-community/home-manager";
# inputs.nixpkgs.follows = "unstable";
# };
home-manager = {
2024-12-12 13:33:48 +01:00
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "stable";
2024-04-23 17:29:48 +02:00
};
2024-04-26 15:06:55 +02:00
2024-10-13 16:43:59 +02:00
thymis = {
url = "github:Thymis-io/thymis";
inputs.nixpkgs.follows = "stable";
};
tildefriends.url = "git+https://dev.tildefriends.net/cory/tildefriends?ref=main";
vedirect-reader.url = "git+https://gitea.com/tasiaiso/vedirect-reader";
2024-10-03 14:51:45 +02:00
tasiaiso-vulpecula-zone = {
url = "git+https://git.vulpecula.zone/tasiaiso/tasiaiso.vulpecula.zone";
inputs.nixpkgs.follows = "stable";
};
vulpecula-zone = {
url = "git+https://git.vulpecula.zone/tasiaiso/vulpecula.zone";
2024-10-03 13:52:46 +02:00
inputs.nixpkgs.follows = "stable";
};
# home-manager = {
# url = "github:nix-community/home-manager/release-24.05";
# inputs.nixpkgs.follows = "stable";
# };
2024-05-06 13:10:44 +02:00
# nixos-conf-editor.url = "github:snowfallorg/nixos-conf-editor";
# nix-software-center.url = "github:snowfallorg/nix-software-center";
2024-08-06 19:31:07 +02:00
2024-08-06 18:44:43 +02:00
agenix = {
url = "github:ryantm/agenix";
inputs.nixpkgs.follows = "stable";
};
2025-01-28 10:01:00 +01:00
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
inputs.nixpkgs.follows = "stable";
};
2024-04-08 20:32:17 +02:00
};
outputs = {
self,
nixpkgs,
2024-04-13 15:58:42 +02:00
stable,
2024-10-13 16:43:59 +02:00
thymis,
home-manager,
vedirect-reader,
2024-05-06 13:10:44 +02:00
# nixos-conf-editor,
# nix-software-center,
tildefriends,
2024-08-06 18:44:43 +02:00
agenix,
2024-10-03 14:51:45 +02:00
tasiaiso-vulpecula-zone,
vulpecula-zone,
2025-01-28 10:01:00 +01:00
lanzaboote,
2024-04-08 20:32:17 +02:00
...
} @ inputs: let
inherit (self) outputs;
2024-04-17 22:28:27 +02:00
2024-04-08 20:32:17 +02:00
# Supported systems for your flake packages, shell, etc.
systems = [
"aarch64-linux"
"x86_64-linux"
];
2024-04-17 22:28:27 +02:00
2024-04-08 20:32:17 +02:00
# This is a function that generates an attribute by calling a function you
# pass to it, with each system as an argument
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
# Your custom packages
# Accessible through 'nix build', 'nix shell', etc
packages = forAllSystems (system: import ./pkgs nixpkgs.legacyPackages.${system});
2024-04-17 22:28:27 +02:00
2024-04-08 20:32:17 +02:00
# Formatter for your nix files, available through 'nix fmt'
# Other options beside 'alejandra' include 'nixpkgs-fmt'
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
# Your custom packages and modifications, exported as overlays
overlays = import ./overlays {inherit inputs;};
2024-04-17 22:28:27 +02:00
2024-04-08 20:32:17 +02:00
# Reusable nixos modules you might want to export
# These are usually stuff you would upstream into nixpkgs
nixosModules = import ./modules/nixos;
# NixOS configuration entrypoint
# Available through 'nixos-rebuild build --flake .#phoenix'
2024-06-06 15:50:43 +02:00
# or nixos-rebuild switch --flake .#$(cat /etc/hostname)
2024-04-08 20:32:17 +02:00
nixosConfigurations = {
phoenix = stable.lib.nixosSystem {
2024-04-13 18:50:51 +02:00
system = "x86_64-linux";
2024-04-08 20:32:17 +02:00
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/phoenix/configuration.nix
];
};
theseus = stable.lib.nixosSystem {
2024-04-13 18:50:51 +02:00
system = "x86_64-linux";
2024-04-11 13:16:26 +02:00
specialArgs = {inherit inputs outputs;};
modules = [
2024-04-18 21:10:13 +02:00
./hosts/theseus/configuration.nix
2024-04-11 13:16:26 +02:00
];
};
2024-04-13 15:58:42 +02:00
stuff = stable.lib.nixosSystem {
2024-04-13 18:50:51 +02:00
system = "x86_64-linux";
2024-04-08 20:32:17 +02:00
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/stuff/configuration.nix
];
};
2024-04-13 12:30:26 +02:00
2024-04-13 15:58:42 +02:00
enry = stable.lib.nixosSystem {
2024-04-13 18:50:51 +02:00
system = "aarch64-linux";
2024-04-13 12:30:26 +02:00
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/enry/configuration.nix
];
};
2024-04-18 21:10:13 +02:00
2025-01-24 11:31:28 +01:00
cave = stable.lib.nixosSystem {
2024-06-01 00:29:03 +02:00
system = "x86_64-linux";
2024-04-18 21:10:13 +02:00
specialArgs = {inherit inputs outputs;};
modules = [
2025-01-24 11:31:28 +01:00
./hosts/cave/configuration.nix
2024-04-18 21:10:13 +02:00
];
};
2024-09-29 18:55:21 +02:00
2025-01-23 20:22:39 +01:00
# vulpecula = stable.lib.nixosSystem {
# system = "x86_64-linux";
# specialArgs = {inherit inputs outputs;};
# modules = [
# ./hosts/vulpecula/configuration.nix
# ];
# };
2024-10-05 17:33:25 +02:00
vulpecula-vps = stable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/vulpecula-vps/configuration.nix
];
};
2025-02-02 20:49:01 +01:00
jo = stable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {inherit inputs outputs;};
modules = [
./hosts/jo/configuration.nix
];
};
2024-04-08 20:32:17 +02:00
};
};
}