config/flake.nix

66 lines
1.5 KiB
Nix
Raw Normal View History

2022-05-15 16:56:03 +02:00
{
inputs = {
2022-05-15 17:31:45 +02:00
2022-05-23 12:35:37 +02:00
# Living on the edge
2022-05-15 17:31:45 +02:00
nixpkgs = {
2022-05-15 17:52:51 +02:00
url = github:NixOS/nixpkgs/nixos-unstable;
2022-05-15 17:31:45 +02:00
};
2022-05-23 12:35:37 +02:00
# Used for managing dotfiles
2022-05-15 17:31:45 +02:00
home-manager = {
url = github:nix-community/home-manager;
};
2022-05-23 12:35:37 +02:00
# Rust overlay, for Rust development
oxalica = {
url = github:oxalica/rust-overlay;
};
# For managing secrets
agenix = {
url = "github:ryantm/agenix";
};
2022-05-15 16:56:03 +02:00
};
2022-05-15 17:31:45 +02:00
outputs = args: with args.nixpkgs; {
nixosConfigurations = {
2022-05-15 20:02:26 +02:00
2022-05-23 12:35:37 +02:00
# Desktop client
2022-05-15 17:31:45 +02:00
"thor" = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./machines/thor/configuration.nix
./common.nix
];
specialArgs = args;
};
2022-05-15 20:02:26 +02:00
2022-05-23 12:35:37 +02:00
# Dell XPS laptop client
2022-05-15 17:31:45 +02:00
"loki" = lib.nixosSystem {
system = "x86_64-linux";
modules = [
./machines/loki/configuration.nix
./common.nix
];
specialArgs = args;
};
2022-05-15 20:02:26 +02:00
# TODO: Pinebook Pro
2022-05-23 19:51:47 +02:00
# Raspberry Pi server
2022-05-23 20:15:03 +02:00
"sif" = lib.nixosSystem {
2022-05-23 19:51:47 +02:00
system = "aarch64-linux";
modules = [
./machines/sif/configuration.nix
./common.nix
];
specialArgs = args;
};
2022-05-23 12:35:37 +02:00
2022-05-15 16:56:03 +02:00
};
};
}