dotfiles/home/flake.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2023-01-24 02:24:40 +07:00
{
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";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-02-20 00:49:39 +07:00
nix-gaming = {
url = "github:fufexan/nix-gaming";
inputs.nixpkgs.follows = "nixpkgs";
};
2023-01-24 02:24:40 +07:00
};
2023-02-20 00:49:39 +07:00
outputs = { self, nixpkgs, home-manager, nur, nix-gaming }:
2023-01-24 02:24:40 +07:00
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 {});
2023-01-24 02:24:40 +07:00
in {
homeConfigurations = {
"user@nixmsi" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages."x86_64-linux";
2023-01-24 02:24:40 +07:00
modules = [
nur.nixosModules.nur
2023-02-20 00:49:39 +07:00
{ nixpkgs.overlays = [ nix-gaming.overlays.default ]; }
2023-01-24 02:24:40 +07:00
./hosts/nixmsi.nix
(getPriv "nixmsi")
2023-01-24 02:24:40 +07:00
];
};
};
};
}