New beginning

This commit is contained in:
Tobias Ostner 2024-05-09 13:41:34 +02:00
parent 432c85e800
commit 8e64cc68b3
30 changed files with 404 additions and 507 deletions

30
nix/system/darwin.nix Normal file
View 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;
}
];
}