Autoloads files within modules/ and makes them available by their module
type and name, e.g. `mixins-zsh`, `editor-nvim` and `users-opdavies`
when imported with `inputs.self.nixosModules`.
Based on afab322e6d/modules/default.nix
.
This assumes there will be a modules/*.nix file and currently doesn't
work with modules/*/default.nix. This is something I'd like to add in
the future.
I also want find a cleaner way to pass arguments into these shortcuts as
this also doesn't work in their implementation as far as I can see.
38 lines
653 B
Nix
38 lines
653 B
Nix
{ inputs, username, ... }:
|
|
|
|
let
|
|
git = {
|
|
name = "Oliver Davies";
|
|
emailAddress = "oliver.davies@tfw.wales";
|
|
};
|
|
in
|
|
{
|
|
imports = with inputs.self.nixosModules; [
|
|
editor-nvim
|
|
mixins-common
|
|
mixins-direnv
|
|
mixins-docker
|
|
mixins-fzf
|
|
mixins-node
|
|
mixins-phpactor
|
|
mixins-ranger
|
|
mixins-scripts
|
|
mixins-starship
|
|
mixins-tmux
|
|
mixins-zsh
|
|
|
|
users-opdavies
|
|
|
|
(import ../../modules/mixins/git.nix { inherit git; })
|
|
|
|
./modules/notes.nix
|
|
./modules/wiki.nix
|
|
];
|
|
|
|
wsl = {
|
|
enable = true;
|
|
defaultUser = username;
|
|
};
|
|
|
|
home-manager.users.opdavies.home.sessionVariables.WAYLAND_DISPLAY = "";
|
|
}
|