New beginning
This commit is contained in:
parent
432c85e800
commit
8e64cc68b3
30 changed files with 404 additions and 507 deletions
30
nix/system/darwin.nix
Normal file
30
nix/system/darwin.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{
|
||||
inputs
|
||||
}:
|
||||
{
|
||||
system,
|
||||
username,
|
||||
hostname
|
||||
}: let
|
||||
system-config = import ../module/configuration.nix {inherit hostname;};
|
||||
home-manager-config = import ../module/home-manager.nix;
|
||||
in
|
||||
inputs.darwin.lib.darwinSystem {
|
||||
inherit system;
|
||||
|
||||
modules = [
|
||||
{
|
||||
services.nix-daemon.enable = true;
|
||||
users.users.${username}.home = "/Users/${username}";
|
||||
}
|
||||
|
||||
system-config
|
||||
|
||||
inputs.home-manager.darwinModules.home-manager
|
||||
{
|
||||
home-manager.useGlobalPkgs = true;
|
||||
home-manager.useUserPackages = true;
|
||||
home-manager.users."${username}" = home-manager-config;
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue