feat: profiles module
This commit is contained in:
parent
ce706dd76a
commit
1562b2d179
12 changed files with 54 additions and 40 deletions
|
@ -12,13 +12,15 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
appearance = {
|
profiles.desktop = enabled;
|
||||||
base = enabled;
|
|
||||||
};
|
# appearance = {
|
||||||
programs = {
|
# base = enabled;
|
||||||
fish = enabled;
|
# };
|
||||||
wezterm = enabled;
|
# programs = {
|
||||||
};
|
# fish = enabled;
|
||||||
|
# wezterm = enabled;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
|
|
|
@ -6,7 +6,7 @@ in {
|
||||||
networking.hostName = "marleycentre";
|
networking.hostName = "marleycentre";
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
bundles.server = enabled;
|
profiles.server = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
|
|
|
@ -6,8 +6,8 @@ in {
|
||||||
networking.hostName = "marleynet";
|
networking.hostName = "marleynet";
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
bundles.server = enabled;
|
profiles.server = enabled;
|
||||||
services.ddclient = enabled;
|
# services.ddclient = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
|
|
|
@ -9,16 +9,19 @@ in {
|
||||||
networking.firewall.allowedTCPPorts = [8080];
|
networking.firewall.allowedTCPPorts = [8080];
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
hasNvidia = true;
|
profiles = {
|
||||||
|
desktop = enabled;
|
||||||
mounts.babeshare = enabled;
|
hardware.nvidia = enabled;
|
||||||
|
|
||||||
bundles.desktop = enabled;
|
|
||||||
|
|
||||||
wayland.niri = enabled;
|
|
||||||
services = {
|
|
||||||
ly = enabled;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# mounts.babeshare = enabled;
|
||||||
|
|
||||||
|
# bundles.desktop = enabled;
|
||||||
|
|
||||||
|
# wayland.niri = enabled;
|
||||||
|
# services = {
|
||||||
|
# ly = enabled;
|
||||||
|
# };
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "24.05";
|
system.stateVersion = "24.05";
|
||||||
|
|
5
modules/base/default.nix
Normal file
5
modules/base/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../options
|
||||||
|
];
|
||||||
|
}
|
5
modules/darwin/default.nix
Normal file
5
modules/darwin/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../base
|
||||||
|
];
|
||||||
|
}
|
5
modules/nixos/default.nix
Normal file
5
modules/nixos/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../base
|
||||||
|
];
|
||||||
|
}
|
5
modules/options/default.nix
Normal file
5
modules/options/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./profiles.nix
|
||||||
|
];
|
||||||
|
}
|
10
modules/options/profiles.nix
Normal file
10
modules/options/profiles.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{lib, ...}: {
|
||||||
|
options.marleyos.profiles = {
|
||||||
|
desktop.enable = lib.mkEnableOption "graphical desktop profile";
|
||||||
|
server.enable = lib.mkEnableOption "server profile";
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
nvidia.enable = lib.mkEnableOption "Nvidia profile";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,7 +0,0 @@
|
||||||
{lib, ...}: {
|
|
||||||
options.marleyos.hasNvidia = lib.mkOption {
|
|
||||||
type = with lib.types; bool;
|
|
||||||
default = false;
|
|
||||||
description = "Whether this machine has an NVIDIA GPU.";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{lib, ...}: {
|
|
||||||
options.marleyos.isDesktop = lib.mkOption {
|
|
||||||
type = with lib.types; bool;
|
|
||||||
default = false;
|
|
||||||
description = "Whether this machine is used as a graphical desktop.";
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,7 +0,0 @@
|
||||||
{lib, ...}: {
|
|
||||||
options.marleyos.isServer = lib.mkOption {
|
|
||||||
type = with lib.types; bool;
|
|
||||||
default = false;
|
|
||||||
description = "Whether this machine is a server.";
|
|
||||||
};
|
|
||||||
}
|
|
Loading…
Reference in a new issue