Compare commits

...

3 commits

4 changed files with 29 additions and 7 deletions

View file

@ -48,9 +48,6 @@
use-xdg-base-directories = true; use-xdg-base-directories = true;
}; };
# Garbage collection.
gc.automatic = true;
}; };
# More useful repl. # More useful repl.

26
modules/home/profiles.nix Normal file
View file

@ -0,0 +1,26 @@
{
config,
marleylib,
lib,
...
}: let
cfg = config.marleycfg.profiles;
inherit (marleylib.module) enabled;
in {
marleyos =
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{
programs = {
nh = enabled;
};
}
#
#
# Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// (lib.optionalAttrs cfg.desktop {})
#
#
# Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// (lib.optionalAttrs cfg.server {});
}

View file

@ -8,9 +8,8 @@
inherit (marleylib.module) enabled; inherit (marleylib.module) enabled;
in { in {
#
### Universal ###
marleyos = marleyos =
# Universal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
{ {
programs = { programs = {
fish = enabled; fish = enabled;
@ -24,7 +23,7 @@ in {
} }
# #
# #
### Graphical Desktop Profile ### # Graphical Desktop - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// (lib.optionalAttrs cfg.desktop { // (lib.optionalAttrs cfg.desktop {
mounts.babeshare = enabled; mounts.babeshare = enabled;
@ -40,7 +39,7 @@ in {
}) })
# #
# #
### Server Profile ### # Server - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
// (lib.optionalAttrs cfg.server { // (lib.optionalAttrs cfg.server {
services = { services = {
prometheus = enabled; prometheus = enabled;