dotfiles/.config/nix/users/default.nix
Ahmad Ansori Palembani 26c9cfbaed
refactor(nix): Mix stable and unstable packages
Also replace inkscape with brew cask inkscape on macOS
2024-11-02 10:06:35 +07:00

65 lines
1.9 KiB
Nix

{ inputs, nixpkgs-stable, nixpkgs-unstable, 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 {
arch = "x86_64-darwin";
stable = nixpkgs-stable;
unstable = nixpkgs-unstable;
extraOverlays = [
inputs.firefox-darwin.overlay
inputs.brew-nix.overlays.default
];
}
) system pkgs pkgs-unstable;
vars.name = "ziro";
vars.floorp.verticalTabHoverWidthInEm = 28;
in
home-manager.lib.homeManagerConfiguration {
pkgs = pkgs-unstable; # FIXME: switch to stable when 24.11 become stable
extraSpecialArgs = { inherit inputs pkgs pkgs-unstable home-manager vars; };
modules = [
./ziro
./ziro/darwin.nix
../modules/home-manager/floorp.nix
];
};
"ziro@potato" =
let
inherit (
mkSystem {
arch = "x86_64-linux";
stable = nixpkgs-stable;
unstable = nixpkgs-unstable;
}
) system pkgs pkgs-unstable;
vars.name = "ziro";
in
home-manager.lib.homeManagerConfiguration {
pkgs = pkgs-unstable; # FIXME: switch to stable when 24.11 become stable
extraSpecialArgs = { inherit inputs pkgs pkgs-unstable home-manager vars; };
modules = [
./ziro
./ziro/linux.nix
../modules/home-manager/floorp.nix
];
};
}