nixos/flake.nix

68 lines
1.9 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";
};
};
outputs = { self, nixpkgs, ... }@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 = [
./common/base.nix
./common/user.nix
2023-07-17 07:54:37 +03:00
./roles/laptop.nix
./roles/graphical.nix
./roles/gaming.nix
2023-07-16 16:43:13 +03:00
./machines/stella/configuration.nix
./machines/stella/hardware.nix
];
};
/* These machines will be configured later. */
/*
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 = [
2023-07-17 07:54:37 +03:00
./common/base.nix
./common/user.nix
./roles/laptop.nix
./roles/graphical.nix
2023-07-16 16:43:13 +03:00
./machines/celerrime/configuration.nix
2023-07-17 07:54:37 +03:00
./machines/celerrime/hardware.nix
2023-07-16 16:43:13 +03:00
];
};
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 = [
./common/base.nix
./common/user.nix
./roles/laptop.nix
./machines/effundam/configuration.nix
./machines/effundam/hardware.nix
];
};
# Vetus = iMac 27" 2017, i5, 64 GB RAM
2023-07-16 16:43:13 +03:00
nixosConfigurations."vetus" = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
2023-07-17 07:54:37 +03:00
./common/base.nix
./common/user.nix
./roles/graphical.nix
./roles/gaming.nix
2023-07-16 16:43:13 +03:00
./machines/vetus/configuration.nix
2023-07-17 07:54:37 +03:00
./machines/vetus/hardware.nix
2023-07-16 16:43:13 +03:00
];
};
*/
};
}