mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-11 02:32:37 +08:00
Isolate common nix into lib.nix
This commit is contained in:
parent
2fdf57226a
commit
08bfaa4e88
6 changed files with 93 additions and 85 deletions
|
|
@ -33,33 +33,5 @@
|
|||
];
|
||||
};
|
||||
};
|
||||
nixosModules.home-manager = {
|
||||
imports = [
|
||||
inputs.home-manager.nixosModules.home-manager
|
||||
({
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
system = "x86_64-linux";
|
||||
flake = { inherit config; };
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
darwinModules.home-manager = {
|
||||
imports = [
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
({
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.extraSpecialArgs = {
|
||||
inherit inputs;
|
||||
system = "aarch64-darwin";
|
||||
flake = { inherit config; };
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue