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 = {
|
||||
appearance = {
|
||||
base = enabled;
|
||||
};
|
||||
programs = {
|
||||
fish = enabled;
|
||||
wezterm = enabled;
|
||||
};
|
||||
profiles.desktop = enabled;
|
||||
|
||||
# appearance = {
|
||||
# base = enabled;
|
||||
# };
|
||||
# programs = {
|
||||
# fish = enabled;
|
||||
# wezterm = enabled;
|
||||
# };
|
||||
};
|
||||
|
||||
users = {
|
||||
|
|
|
@ -6,7 +6,7 @@ in {
|
|||
networking.hostName = "marleycentre";
|
||||
|
||||
marleyos = {
|
||||
bundles.server = enabled;
|
||||
profiles.server = enabled;
|
||||
};
|
||||
|
||||
users.users = {
|
||||
|
|
|
@ -6,8 +6,8 @@ in {
|
|||
networking.hostName = "marleynet";
|
||||
|
||||
marleyos = {
|
||||
bundles.server = enabled;
|
||||
services.ddclient = enabled;
|
||||
profiles.server = enabled;
|
||||
# services.ddclient = enabled;
|
||||
};
|
||||
|
||||
users.users = {
|
||||
|
|
|
@ -9,16 +9,19 @@ in {
|
|||
networking.firewall.allowedTCPPorts = [8080];
|
||||
|
||||
marleyos = {
|
||||
hasNvidia = true;
|
||||
|
||||
mounts.babeshare = enabled;
|
||||
|
||||
bundles.desktop = enabled;
|
||||
|
||||
wayland.niri = enabled;
|
||||
services = {
|
||||
ly = enabled;
|
||||
profiles = {
|
||||
desktop = enabled;
|
||||
hardware.nvidia = enabled;
|
||||
};
|
||||
|
||||
# mounts.babeshare = enabled;
|
||||
|
||||
# bundles.desktop = enabled;
|
||||
|
||||
# wayland.niri = enabled;
|
||||
# services = {
|
||||
# ly = enabled;
|
||||
# };
|
||||
};
|
||||
|
||||
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