37 lines
790 B
Nix
37 lines
790 B
Nix
#
|
|
# These are the diffent profiles that can be used when using Nix on other distros.
|
|
# Home-Manager is used to list and customize packages.
|
|
#
|
|
# flake.nix
|
|
# └─ ./nix
|
|
# ├─ default.nix *
|
|
# └─ <host>.nix
|
|
#
|
|
{
|
|
lib,
|
|
inputs,
|
|
nixpkgs,
|
|
home-manager,
|
|
vars,
|
|
...
|
|
}: let
|
|
system = "x86_64-linux"; # System Architecture
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
pacman = home-manager.lib.homeManagerConfiguration {
|
|
inherit pkgs;
|
|
extraSpecialArgs = {inherit inputs vars;};
|
|
modules = [
|
|
# Modules Used
|
|
./pacman.nix
|
|
{
|
|
home = {
|
|
username = "${vars.user}";
|
|
homeDirectory = "/home/${vars.user}";
|
|
packages = [pkgs.home-manager];
|
|
stateVersion = "22.05";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|