mirror of
https://github.com/larstvei/nix-config.git
synced 2025-08-30 12:50:12 +00:00
Restructure to using hosts
This commit is contained in:
parent
4da1182c6f
commit
d7d6b952d6
25
flake.nix
25
flake.nix
@ -29,34 +29,19 @@
|
||||
...
|
||||
}:
|
||||
{
|
||||
darwinConfigurations."larstvei-macbookpro" = darwin.lib.darwinSystem {
|
||||
darwinConfigurations = {
|
||||
larstvei-macbookpro = darwin.lib.darwinSystem {
|
||||
system = "aarch64-darwin";
|
||||
|
||||
specialArgs = { inherit emacs-larstvei; };
|
||||
|
||||
modules = [
|
||||
./modules/core.nix
|
||||
./modules/macos.nix
|
||||
|
||||
nix-rosetta-builder.darwinModules.default
|
||||
{
|
||||
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
|
||||
./hosts/macbook
|
||||
nix-rosetta-builder.darwinModules.default
|
||||
{ nix-rosetta-builder.onDemand = true; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
14
hosts/macbook/default.nix
Normal file
14
hosts/macbook/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user