2023-07-16 16:43:13 +03:00
|
|
|
{
|
|
|
|
|
|
|
|
description = "ivabus's NixOS Flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
2023-09-08 21:07:54 +03:00
|
|
|
|
2023-07-16 16:43:13 +03:00
|
|
|
home-manager = {
|
2023-11-25 18:13:44 +03:00
|
|
|
url = "github:nix-community/home-manager/master";
|
2023-07-16 16:43:13 +03:00
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-09-08 21:07:54 +03:00
|
|
|
|
2023-07-29 18:24:43 +03:00
|
|
|
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
|
2023-09-08 21:07:54 +03:00
|
|
|
|
2023-12-24 08:49:44 +03:00
|
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
2023-07-16 16:43:13 +03:00
|
|
|
};
|
|
|
|
|
2023-12-24 08:49:44 +03:00
|
|
|
outputs = { self, nixpkgs, home-manager, rust-overlay, apple-silicon-support
|
2023-09-08 21:07:54 +03:00
|
|
|
, ... }@inputs: {
|
2023-09-06 16:10:11 +03:00
|
|
|
# Stella = Unchartevice 6540 (Ryzen 3 3250U, 16GB RAM)
|
|
|
|
nixosConfigurations."stella" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-12-24 08:49:44 +03:00
|
|
|
specialArgs = inputs;
|
2023-09-06 16:10:11 +03:00
|
|
|
modules = [ home-manager.nixosModules.home-manager ./machines/stella ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Vetus = iMac 27" 2017, i5, 64 GB RAM
|
|
|
|
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "x86_64-linux";
|
2023-12-24 08:49:44 +03:00
|
|
|
specialArgs = inputs;
|
2023-09-06 16:10:11 +03:00
|
|
|
modules = [ home-manager.nixosModules.home-manager ./machines/vetus ];
|
|
|
|
};
|
|
|
|
|
|
|
|
# Celerrime = MacBook Air M2
|
|
|
|
nixosConfigurations."celerrime" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
2023-12-24 08:49:44 +03:00
|
|
|
specialArgs = inputs;
|
2023-09-06 16:10:11 +03:00
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
apple-silicon-support.nixosModules.apple-silicon-support
|
|
|
|
./machines/celerrime
|
|
|
|
];
|
|
|
|
};
|
2023-07-16 16:43:13 +03:00
|
|
|
|
2023-11-25 18:13:44 +03:00
|
|
|
# cursor = vm for "running" linux programs on aarch64
|
|
|
|
nixosConfigurations."cursor" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
2023-12-24 08:49:44 +03:00
|
|
|
specialArgs = inputs;
|
2023-11-25 18:13:44 +03:00
|
|
|
modules = [ home-manager.nixosModules.home-manager ./machines/cursor ];
|
|
|
|
};
|
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
# Raspberry Pi 4B 2GB RAM
|
|
|
|
nixosConfigurations."rubusidaeus" = nixpkgs.lib.nixosSystem {
|
2023-08-31 18:28:25 +03:00
|
|
|
system = "aarch64-linux";
|
2023-12-24 08:49:44 +03:00
|
|
|
specialArgs = inputs;
|
2023-08-31 18:28:25 +03:00
|
|
|
modules = [
|
|
|
|
"${nixpkgs}/nixos/modules/installer/sd-card/sd-image-aarch64.nix"
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./machines/rubusidaeus
|
|
|
|
];
|
2023-09-06 16:10:11 +03:00
|
|
|
};
|
|
|
|
|
2023-10-03 17:15:14 +03:00
|
|
|
# VisionFive 2, 8GB - firewall + router
|
|
|
|
nixosConfigurations."periculo" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "riscv64-linux";
|
|
|
|
modules = [
|
|
|
|
#nixos-vf2.nixosModules.sdImage
|
|
|
|
./hardware/vf2.nix
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
./machines/periculo
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2023-09-06 16:10:11 +03:00
|
|
|
# These machines will be configured later.
|
|
|
|
/* # Effundam = MacBook Air M1 (server usage). Will not be added to flake.nix until thunderbolt and apfs proper support
|
|
|
|
nixosConfigurations."effundam" = nixpkgs.lib.nixosSystem {
|
|
|
|
system = "aarch64-linux";
|
|
|
|
modules = [
|
|
|
|
home-manager.nixosModules.home-manager
|
|
|
|
apple-silicon-support.nixosModules.apple-silicon-support
|
|
|
|
./machines/effundam
|
|
|
|
];
|
|
|
|
};
|
|
|
|
*/
|
2023-08-31 18:28:25 +03:00
|
|
|
};
|
2023-07-30 11:29:17 +03:00
|
|
|
}
|