nixos/flake.nix

58 lines
1.6 KiB
Nix
Raw Normal View History

2023-07-16 16:43:13 +03:00
{
description = "ivabus's NixOS Flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
apple-silicon-support.url = "github:tpwrules/nixos-apple-silicon";
2023-07-16 16:43:13 +03:00
};
outputs = { self, nixpkgs, home-manager, apple-silicon-support, ... }@inputs: {
2023-07-17 07:54:37 +03:00
# Stella = Unchartevice 6540 (Ryzen 3 3250U, 16GB RAM)
2023-07-16 16:43:13 +03:00
nixosConfigurations."stella" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-07-28 15:39:50 +03:00
home-manager.nixosModules.home-manager
./machines/stella
2023-07-16 16:43:13 +03:00
];
};
2023-07-28 17:41:32 +03:00
# Vetus = iMac 27" 2017, i5, 64 GB RAM
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
./machines/vetus
2023-07-28 17:41:32 +03:00
];
};
2023-07-17 07:54:37 +03:00
# Celerrime = MacBook Air M2
2023-07-16 16:43:13 +03:00
nixosConfigurations."celerrime" = nixpkgs.lib.nixosSystem {
system = "aarch64-linux";
modules = [
home-manager.nixosModules.home-manager
apple-silicon-support.nixosModules.apple-silicon-support
./machines/celerrime
2023-07-16 16:43:13 +03:00
];
};
/* These machines will be configured later. */
/*
2023-07-17 07:54:37 +03:00
# 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-07-17 07:54:37 +03:00
];
};
2023-07-16 16:43:13 +03:00
*/
};
}