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-03-18 02:50:38 +07:00
|
|
|
notlua = {
|
|
|
|
url = "github:chayleaf/notlua/master";
|
|
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
|
|
};
|
2023-01-24 02:24:40 +07:00
|
|
|
};
|
|
|
|
|
2023-03-18 02:50:38 +07:00
|
|
|
outputs = { self, nixpkgs, home-manager, nur, nix-gaming, notlua }:
|
2023-01-24 02:24:40 +07:00
|
|
|
let
|
2023-01-24 16:05:19 +07:00
|
|
|
# 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 = {
|
2023-04-06 09:45:02 +07:00
|
|
|
"user@nixmsi" = let system = "x86_64-linux"; in home-manager.lib.homeManagerConfiguration {
|
|
|
|
pkgs = import nixpkgs {
|
|
|
|
inherit system;
|
|
|
|
binaryCachePublicKeys = [
|
|
|
|
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
|
|
# "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
|
|
|
|
];
|
|
|
|
binaryCaches = [
|
|
|
|
"https://cache.nixos.org"
|
|
|
|
# "https://nixpkgs-wayland.cachix.org"
|
|
|
|
];
|
2023-04-10 19:15:34 +07:00
|
|
|
overlays = [
|
|
|
|
(self: super: import ./pkgs {
|
2023-04-11 00:58:02 +07:00
|
|
|
# can't use callPackage here, idk why
|
2023-04-10 19:15:34 +07:00
|
|
|
pkgs = super;
|
2023-04-11 00:58:02 +07:00
|
|
|
lib = super.lib;
|
|
|
|
nur = import nur {
|
|
|
|
pkgs = super;
|
|
|
|
nurpkgs = super;
|
|
|
|
};
|
2023-04-10 19:15:34 +07:00
|
|
|
})
|
|
|
|
nix-gaming.overlays.default
|
|
|
|
];
|
2023-04-06 09:45:02 +07:00
|
|
|
};
|
|
|
|
extraSpecialArgs = {
|
2023-05-10 16:42:56 +07:00
|
|
|
notlua = notlua.lib.${system};
|
2023-04-06 09:45:02 +07:00
|
|
|
# pkgs-wayland = nixpkgs-wayland.packages.${system};
|
|
|
|
};
|
2023-01-24 02:24:40 +07:00
|
|
|
modules = [
|
|
|
|
nur.nixosModules.nur
|
|
|
|
./hosts/nixmsi.nix
|
2023-01-24 16:05:19 +07:00
|
|
|
(getPriv "nixmsi")
|
2023-01-24 02:24:40 +07:00
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|