feat(flake)!: convert to fs-defined modules

Place all modules in either:
    - `modules/${manager}/${module}.nix`
    - `modules/${manager}/${module}/default.nix`

- `${manager}` - One of `nixos`, `nix-on-droid`, `nix-darwin` or `home-manager`
- `${module}` - Module name (autoimported by configurations, used for exporting)
This commit is contained in:
reo101 2023-07-25 10:32:30 +03:00
parent beff7ad8a4
commit de43011b22
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
10 changed files with 98 additions and 63 deletions

View file

@ -0,0 +1,5 @@
Add your reusable home-manager modules to this directory (<https://nixos.wiki/wiki/Module>)
These are considered modules:
- files, ending in `.nix` (excluding `default.nix`)
- directories, containing `default.nix`

View file

@ -1,10 +0,0 @@
# Add your reusable home-manager modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
reo101-shell = import ./reo101-shell;
reo101-river = import ./reo101-river;
reo101-wezterm = import ./reo101-wezterm;
}

View file

@ -0,0 +1,5 @@
Add your reusable nix-darwin modules to this directory (<https://nixos.wiki/wiki/Module>)
These are considered modules:
- files, ending in `.nix` (excluding `default.nix`)
- directories, containing `default.nix`

View file

@ -1,10 +0,0 @@
# Add your reusable nix-darwin modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
brew = import ./brew;
yabai = import ./yabai;
system = import ./system;
}

View file

@ -0,0 +1,5 @@
Add your reusable nix-on-droid modules to this directory (<https://nixos.wiki/wiki/Module>)
These are considered modules:
- files, ending in `.nix` (excluding `default.nix`)
- directories, containing `default.nix`

View file

@ -1,7 +0,0 @@
# Add your reusable nix-on-droid modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
}

5
modules/nixos/README.md Normal file
View file

@ -0,0 +1,5 @@
Add your reusable NixOS modules to this directory (<https://nixos.wiki/wiki/Module>)
These are considered modules:
- files, ending in `.nix` (excluding `default.nix`)
- directories, containing `default.nix`

View file

@ -1,8 +0,0 @@
# Add your reusable NixOS modules to this directory, on their own file (https://nixos.wiki/wiki/Module).
# These should be stuff you would like to share with others, not your personal configurations.
{
# List your module files here
# my-module = import ./my-module.nix;
jellyfin = import ./jellyfin.nix;
}