Restructure to using hosts

This commit is contained in:
larstvei 2025-08-23 14:31:51 +02:00
parent 4da1182c6f
commit d7d6b952d6
2 changed files with 25 additions and 26 deletions

View File

@ -29,34 +29,19 @@
... ...
}: }:
{ {
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem { darwinConfigurations = {
system = "aarch64-darwin"; larstvei-macbookpro = darwin.lib.darwinSystem {
system = "aarch64-darwin";
specialArgs = { inherit emacs-larstvei; }; specialArgs = { inherit emacs-larstvei; };
modules = [ modules = [
./modules/core.nix home-manager.darwinModules.default
./modules/macos.nix ./hosts/macbook
nix-rosetta-builder.darwinModules.default
nix-rosetta-builder.darwinModules.default { nix-rosetta-builder.onDemand = true; }
{ ];
nix-rosetta-builder.onDemand = true; };
}
home-manager.darwinModules.default
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit emacs-larstvei; };
users.larstvei = {
imports = [
./modules/home.nix
];
};
};
}
];
}; };
}; };
} }

14
hosts/macbook/default.nix Normal file
View File

@ -0,0 +1,14 @@
{ emacs-larstvei, ... }:
{
imports = [
../../modules/core.nix
../../modules/macos.nix
];
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = { inherit emacs-larstvei; };
users.larstvei.imports = [ ../../modules/home.nix ];
};
}