nix-home/flake.nix

33 lines
969 B
Nix

{
description = "Fudo Home Manager Configuration";
inputs = {
nixpkgs.url = "nixpkgs/nixos-23.05";
home-manager = {
url = "github:nix-community/home-manager/release-23.05";
inputs.nixpkgs.follows = "nixpkgs";
};
doom-emacs.url = "github:vlaci/nix-doom-emacs";
niten-doom-config = {
url = "git+https://git.fudo.org/niten/doom-emacs.git";
flake = false;
};
};
outputs = { self,
home-manager,
doom-emacs,
niten-doom-config, ... }: {
nixosModule = {
imports = [
home-manager.nixosModules.home-manager
(import ./module.nix { inherit doom-emacs niten-doom-config; })
];
};
mkHomeManagerConfiguration = { username, user-email, home-dir, enable-gui, pkgs, ... }:
home-manager.lib.homeManagerConfiguration (import ./niten.nix {
inherit username user-email home-dir enable-gui doom-emacs niten-doom-config pkgs;
});
};
}