Add new config entry: darwin_work which follows the darwin system configuration but has another home config.
This commit is contained in:
parent
8ffc747537
commit
9b79fd3be8
3 changed files with 46 additions and 19 deletions
18
flake.nix
18
flake.nix
|
|
@ -110,7 +110,9 @@
|
|||
};
|
||||
};
|
||||
|
||||
darwinConfigurations."darwin" = makeSystemConfig {
|
||||
darwinConfigurations =
|
||||
let
|
||||
baseDarwinConfig = makeSystemConfig {
|
||||
name = "darwin";
|
||||
system = "aarch64-darwin";
|
||||
builder = nix-darwin.lib.darwinSystem;
|
||||
|
|
@ -129,6 +131,11 @@
|
|||
nix-homebrew = nix-homebrew;
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
"darwin" = baseDarwinConfig;
|
||||
"darwin_work" = baseDarwinConfig;
|
||||
};
|
||||
|
||||
homeConfigurations = {
|
||||
"wsl" = makeHomeConfig {
|
||||
|
|
@ -154,6 +161,15 @@
|
|||
system = "aarch64-darwin";
|
||||
extraModules = [ ./nix/pkgs/darwin.nix ];
|
||||
};
|
||||
|
||||
"darwin_work" = makeHomeConfig {
|
||||
name = "work";
|
||||
system = "aarch64-darwin";
|
||||
extraModules = [
|
||||
./nix/pkgs/darwin.nix
|
||||
./nix/pkgs/darwin_work.nix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
13
nix/pkgs/darwin_work.nix
Normal file
13
nix/pkgs/darwin_work.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, ... }:
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
(python311.withPackages (pythonPkgs: [
|
||||
pythonPkgs.pip
|
||||
pythonPkgs.setuptools
|
||||
]))
|
||||
pcre
|
||||
ccache
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -119,8 +119,6 @@ in
|
|||
tree-sitter
|
||||
codelldb
|
||||
bottom
|
||||
python311
|
||||
pcre
|
||||
];
|
||||
|
||||
file = symlinkFiles;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue