64 lines
1.9 KiB
Nix
64 lines
1.9 KiB
Nix
{
|
|
description = "Zeusina system manage flake";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
nix-darwin.url = "github:nix-darwin/nix-darwin/master";
|
|
# nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
|
|
spicetify-nix.url = "github:Gerg-L/spicetify-nix";
|
|
monaco-nerd-font = {
|
|
url = "github:thep0y/monaco-nerd-font";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
lanzaboote = {
|
|
url = "github:nix-community/lanzaboote/v1.1.0";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
nix-darwin,
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
systems = ["x86_64-linux" "aarch64-darwin"];
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in {
|
|
formatter = forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
|
|
|
|
darwinConfigurations."MacBook-Pro-Kirill" = nix-darwin.lib.darwinSystem {
|
|
specialArgs = {inherit inputs self;};
|
|
modules = [
|
|
./hosts/MacBook-Pro-Kirill/configuration.nix
|
|
./shared/programs/spicetify.nix
|
|
inputs.spicetify-nix.darwinModules.default
|
|
];
|
|
};
|
|
|
|
nixosConfigurations = {
|
|
"kachu-pc" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs self;};
|
|
modules = [
|
|
./hosts/kachu-pc/hardware-configuration.nix
|
|
./hosts/kachu-pc/configuration.nix
|
|
./shared/programs/spicetify.nix
|
|
inputs.spicetify-nix.nixosModules.default
|
|
];
|
|
};
|
|
"kachu-laptop" = nixpkgs.lib.nixosSystem {
|
|
system = "x86_64-linux";
|
|
specialArgs = {inherit inputs self;};
|
|
modules = [
|
|
inputs.lanzaboote.nixosModules.lanzaboote
|
|
./hosts/kachu-laptop/hardware-configuration.nix
|
|
./hosts/kachu-laptop/configuration.nix
|
|
./shared/programs/spicetify.nix
|
|
inputs.spicetify-nix.nixosModules.default
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|