config/flake.nix

52 lines
1.1 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;
};
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
# TODO: Raspberry Pi
2022-05-23 12:35:37 +02:00
2022-05-15 16:56:03 +02:00
};
};
}