nixos/flake.nix

101 lines
2.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";
};
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
2023-07-16 16:43:13 +03:00
./common/base.nix
2023-07-28 15:39:50 +03:00
./common/laptop.nix
./common/locale.nix
./common/networking.nix
2023-07-28 15:39:50 +03:00
./common/remote-access.nix
./common/security.nix
./common/user.nix
./roles/design.nix
./roles/devel.nix
./roles/gaming.nix
2023-07-17 07:54:37 +03:00
./roles/graphical.nix
2023-07-28 17:41:32 +03:00
./roles/latex.nix
./roles/virtualisation.nix
2023-07-28 15:39:50 +03:00
./roles/yggdrasil-client.nix
2023-07-16 16:43:13 +03:00
./machines/stella/configuration.nix
./machines/stella/hardware.nix
];
};
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
./common/base.nix
./common/laptop.nix
./common/locale.nix
./common/networking.nix
2023-07-28 17:41:32 +03:00
./common/remote-access.nix
./common/security.nix
./common/user.nix
2023-07-28 17:41:32 +03:00
./roles/graphical.nix
./roles/latex.nix
2023-07-29 11:11:45 +03:00
./roles/gaming.nix
2023-07-28 17:41:32 +03:00
./roles/devel.nix
./roles/virtualisation.nix
2023-07-28 17:41:32 +03:00
./roles/yggdrasil-client.nix
./machines/vetus/configuration.nix
./machines/vetus/hardware.nix
];
};
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
2023-07-17 07:54:37 +03:00
./common/base.nix
./common/user.nix
./common/laptop.nix
./common/networking.nix
./common/locale.nix
./common/remote-access.nix
2023-07-17 07:54:37 +03:00
./roles/graphical.nix
./roles/latex.nix
#./roles/gaming.nix
./roles/devel.nix
./roles/yggdrasil-client.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
];
};
/* 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 = [
./common/base.nix
./common/user.nix
./roles/laptop.nix
./machines/effundam/configuration.nix
./machines/effundam/hardware.nix
];
};
2023-07-16 16:43:13 +03:00
*/
};
}