refactor(nix): Seperate home manager stuff from nix-darwin
This commit is contained in:
parent
0f33f4e2de
commit
6444b67a4e
9 changed files with 110 additions and 134 deletions
30
.config/nix/users/default.nix
Normal file
30
.config/nix/users/default.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ inputs, nixpkgs, home-manager, vars, ... }:
|
||||
|
||||
let
|
||||
mkSystem = import ../lib/mkSystem.nix;
|
||||
in
|
||||
{
|
||||
# Host list
|
||||
# Build with: `home-manager build --flake .#<user>@<host>`
|
||||
# e.g. `home-manager build --flake .#"ziro@ThiccBook-Pro"`
|
||||
# Switch to current build: `home-manager switch --flake .#<user>@<host>`
|
||||
#
|
||||
# If you're feeling lucky `home-manager build --flake .` or
|
||||
# `home-manager switch --flake .` should be enough, since home-manager will
|
||||
# search the correct <user>@<host> on its own.
|
||||
#
|
||||
# You may need to run `scutil --set HostName <host>` if home-manager can't
|
||||
# find your <user>@<host>.
|
||||
|
||||
"ziro@ThiccBook-Pro" =
|
||||
let
|
||||
inherit (mkSystem "x86_64-darwin" nixpkgs) system pkgs;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
extraSpecialArgs = { inherit inputs pkgs home-manager vars; };
|
||||
modules = [
|
||||
./ziro.nix
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue