mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-27 02:18:28 +02:00
refactor: flake.nix - adjust nixosConfigurations
This commit is contained in:
15
flake.nix
15
flake.nix
@@ -108,7 +108,8 @@
|
|||||||
|
|
||||||
nixosSystem = import ./lib/nixosSystem.nix;
|
nixosSystem = import ./lib/nixosSystem.nix;
|
||||||
macosSystem = import ./lib/macosSystem.nix;
|
macosSystem = import ./lib/macosSystem.nix;
|
||||||
|
in {
|
||||||
|
nixosConfigurations = let
|
||||||
# 星野 アイ, Hoshino Ai
|
# 星野 アイ, Hoshino Ai
|
||||||
idol_ai_modules_i3 = {
|
idol_ai_modules_i3 = {
|
||||||
nixos-modules = [
|
nixos-modules = [
|
||||||
@@ -148,8 +149,7 @@
|
|||||||
];
|
];
|
||||||
home-module = import ./home/linux/server.nix;
|
home-module = import ./home/linux/server.nix;
|
||||||
};
|
};
|
||||||
in {
|
|
||||||
nixosConfigurations = let
|
|
||||||
system = x64_system;
|
system = x64_system;
|
||||||
specialArgs =
|
specialArgs =
|
||||||
{
|
{
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
);
|
);
|
||||||
|
|
||||||
# macOS's configuration, for work.
|
# macOS's configuration, for work.
|
||||||
darwinConfigurations."harmonica" = let
|
darwinConfigurations = let
|
||||||
system = x64_darwin;
|
system = x64_darwin;
|
||||||
specialArgs =
|
specialArgs =
|
||||||
{
|
{
|
||||||
@@ -211,13 +211,16 @@
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
// inputs;
|
// inputs;
|
||||||
in
|
base_args = {
|
||||||
macosSystem {
|
|
||||||
inherit nix-darwin home-manager system specialArgs;
|
inherit nix-darwin home-manager system specialArgs;
|
||||||
|
};
|
||||||
|
in {
|
||||||
|
harmonica = macosSystem (base_args // {
|
||||||
darwin-modules = [
|
darwin-modules = [
|
||||||
./hosts/harmonica
|
./hosts/harmonica
|
||||||
];
|
];
|
||||||
home-module = import ./home/darwin;
|
home-module = import ./home/darwin;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
# format the nix code in this flake
|
# format the nix code in this flake
|
||||||
|
|||||||
Reference in New Issue
Block a user