nix-home/flake.nix

33 lines
908 B
Nix
Raw Normal View History

2021-09-30 17:02:50 -07:00
{
description = "Fudo Home Manager Configuration";
inputs = {
2023-11-06 19:12:40 -08:00
nixpkgs.url = "nixpkgs/nixos-23.05";
2021-10-12 11:59:24 -07:00
home-manager = {
2023-11-06 19:12:40 -08:00
url = "github:nix-community/home-manager/release-23.05";
2021-10-12 11:59:24 -07:00
inputs.nixpkgs.follows = "nixpkgs";
};
2021-09-30 17:02:50 -07:00
doom-emacs.url = "github:vlaci/nix-doom-emacs";
niten-doom-config = {
2021-09-30 17:49:41 -07:00
url = "git+https://git.fudo.org/niten/doom-emacs.git";
2021-09-30 17:02:50 -07:00
flake = false;
};
};
outputs = { self,
home-manager,
doom-emacs,
niten-doom-config, ... }: {
nixosModule = {
imports = [
home-manager.nixosModules.home-manager
2021-09-30 17:53:24 -07:00
(import ./module.nix { inherit doom-emacs niten-doom-config; })
2021-09-30 17:02:50 -07:00
];
};
2023-11-06 16:24:19 -08:00
mkModule = { username, user-email, home-dir, enable-gui ? false, ... }:
2023-11-06 15:59:26 -08:00
import ./niten.nix {
inherit username user-email home-dir enable-gui doom-emacs niten-doom-config;
2023-11-06 15:45:46 -08:00
};
2021-09-30 17:02:50 -07:00
};
}