dotfiles/home-manager/flake.nix

71 lines
1.8 KiB
Nix

{
description = "Home Manager configuration of buymymojo";
inputs = {
# Specify the source of Home Manager and Nixpkgs.
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
nixpkgs-unstable.url = "github:nixos/nixpkgs?ref=nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-24.11";
inputs.nixpkgs.follows = "nixpkgs";
};
moonlight = {
url = "github:moonlight-mod/moonlight"; # Add `/develop` to the flake URL to use nightly.
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
gpu-screen-recorder-ui = {
url = "github:js6pak/nixpkgs?ref=5c405e5de49ffe89bcdc5b43813b31383eef6f1c";
inputs.nixpkgs.follows = "nixpkgs-unstable";
};
};
outputs =
{
nixpkgs,
home-manager,
nixpkgs-unstable,
gpu-screen-recorder-ui,
...
}@inputs:
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
gpu-screen-recorder-ui-pkgs = import gpu-screen-recorder-ui {
inherit system;
config.allowUnfree = true;
};
in
{
homeConfigurations."buymymojo" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
extraSpecialArgs = {
inherit gpu-screen-recorder-ui-pkgs;
inherit unstable;
inherit inputs;
};
# Specify your home configuration modules here, for example,
# the path to your home.nix.
modules = [
./home.nix
./packages.nix
./services.nix
];
# Optionally use extraSpecialArgs
# to pass through arguments to home.nix
};
};
}