dotfiles/.config/nix/users/default.nix
Ahmad Ansori Palembani 98d28abc3f
refactor(nix): More split
Also added floorp, but not functional at the moment, it requires 24.11
2024-10-18 21:06:26 +07:00

45 lines
1.3 KiB
Nix

{ 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
./ziro/darwin.nix
];
};
"ziro@potato" =
let
inherit (mkSystem "x86_64-linux" nixpkgs) system pkgs;
in
home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = { inherit inputs pkgs home-manager vars; };
modules = [
./ziro
./ziro/linux.nix
#../modules/home-manager/floorp.nix # FIXME: Added on 24.11
];
};
}