36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
description = "Home Manager configuration of chayleaf";
|
|
|
|
inputs = {
|
|
#nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
#instead take it from system config
|
|
nur.url = "github:nix-community/NUR";
|
|
rust-overlay = {
|
|
url = "github:oxalica/rust-overlay";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = { self, nixpkgs, home-manager, nur, rust-overlay }:
|
|
let
|
|
# IRL-related private config
|
|
priv = if builtins.pathExists ./private.nix then (import ./private.nix) else {};
|
|
getPriv = (hostname: with builtins; if hasAttr hostname priv then (getAttr hostname priv) else {});
|
|
in {
|
|
homeConfigurations = {
|
|
"user@nixmsi" = home-manager.lib.homeManagerConfiguration {
|
|
pkgs = nixpkgs.legacyPackages."x86_64-linux".extend rust-overlay.overlays.default;
|
|
modules = [
|
|
nur.nixosModules.nur
|
|
./hosts/nixmsi.nix
|
|
(getPriv "nixmsi")
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|