Change directory structure

This commit is contained in:
Tobias Ostner 2024-12-28 11:13:47 +01:00
parent 8f5cba33ae
commit cd825ea3e6
16 changed files with 0 additions and 0 deletions

33
system/darwin.nix Normal file
View file

@ -0,0 +1,33 @@
{
inputs
}:
{
system,
username,
email,
hostname
}:
let
system-config = import ../module/configuration.nix {inherit hostname;};
home-manager-config = import ../module/home-manager.nix {inherit email;};
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;
home-manager.backupFileExtension = "backup";
}
];
}