mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
Fix darwin build
This commit is contained in:
parent
2991d29adb
commit
56e2b92633
2 changed files with 6 additions and 4 deletions
|
|
@ -102,7 +102,7 @@
|
|||
|
||||
# Configurations for macOS systems (using nix-darwin)
|
||||
darwinConfigurations = {
|
||||
default = self.lib.mkMacosSystem userName;
|
||||
default = self.lib-darwin.mkMacosSystem userName;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
# Configuration common to all macOS systems
|
||||
flake = {
|
||||
darwinModules = {
|
||||
common = self.nixosConfig.common;
|
||||
common = self.nixosModules.common;
|
||||
home.imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
({
|
||||
|
|
@ -16,10 +16,12 @@
|
|||
})
|
||||
];
|
||||
default.imports =
|
||||
self.darwinModules.common ++
|
||||
[
|
||||
self.darwinModules.common
|
||||
] ++
|
||||
self.darwinModules.home.imports;
|
||||
};
|
||||
mkMacosSystem = userName: inputs.darwin.lib.darwinSystem rec {
|
||||
lib-darwin.mkMacosSystem = userName: inputs.darwin.lib.darwinSystem rec {
|
||||
system = "aarch64-darwin";
|
||||
specialArgs = {
|
||||
inherit inputs system;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue