feat: remove .enable from profiles
This commit is contained in:
parent
050112880f
commit
90245758a8
6 changed files with 11 additions and 29 deletions
|
@ -1,10 +1,4 @@
|
||||||
{
|
{config, ...}: {
|
||||||
marleylib,
|
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (marleylib.module) enabled;
|
|
||||||
in {
|
|
||||||
networking = {
|
networking = {
|
||||||
computerName = "mairley";
|
computerName = "mairley";
|
||||||
hostName = "mairley";
|
hostName = "mairley";
|
||||||
|
@ -12,15 +6,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
profiles.desktop = enabled;
|
profiles.desktop = true;
|
||||||
|
|
||||||
# appearance = {
|
|
||||||
# base = enabled;
|
|
||||||
# };
|
|
||||||
# programs = {
|
|
||||||
# fish = enabled;
|
|
||||||
# wezterm = enabled;
|
|
||||||
# };
|
|
||||||
};
|
};
|
||||||
|
|
||||||
users = {
|
users = {
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
{marleylib, ...}: let
|
_: {
|
||||||
inherit (marleylib.module) enabled;
|
|
||||||
in {
|
|
||||||
imports = [./hardware-configuration.nix];
|
imports = [./hardware-configuration.nix];
|
||||||
|
|
||||||
networking.hostName = "marleycentre";
|
networking.hostName = "marleycentre";
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
profiles.server = enabled;
|
profiles.server = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
users.users = {
|
users.users = {
|
||||||
|
|
|
@ -1,12 +1,10 @@
|
||||||
{marleylib, ...}: let
|
_: {
|
||||||
inherit (marleylib.module) enabled;
|
|
||||||
in {
|
|
||||||
imports = [./hardware-configuration.nix];
|
imports = [./hardware-configuration.nix];
|
||||||
|
|
||||||
networking.hostName = "marleynet";
|
networking.hostName = "marleynet";
|
||||||
|
|
||||||
marleyos = {
|
marleyos = {
|
||||||
profiles.server = enabled;
|
profiles.server = true;
|
||||||
# services.ddclient = enabled;
|
# services.ddclient = enabled;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
}: {
|
}: {
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages =
|
kernelPackages =
|
||||||
lib.mkIf (!config.marleyos.profiles.server.enable)
|
lib.mkIf (!config.marleyos.profiles.server)
|
||||||
pkgs.linuxPackages_xanmod;
|
pkgs.linuxPackages_xanmod;
|
||||||
|
|
||||||
loader = {
|
loader = {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
config = lib.mkIf (!config.marleyos.profiles.server.enable) {
|
config = lib.mkIf (!config.marleyos.profiles.server) {
|
||||||
security.rtkit.enable = true; # Used for pulseaudio.
|
security.rtkit.enable = true; # Used for pulseaudio.
|
||||||
|
|
||||||
hardware.pulseaudio.enable = false;
|
hardware.pulseaudio.enable = false;
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
{lib, ...}: {
|
{lib, ...}: {
|
||||||
options.marleyos.profiles = {
|
options.marleyos.profiles = {
|
||||||
desktop.enable = lib.mkEnableOption "graphical desktop profile";
|
desktop = lib.mkEnableOption "graphical desktop profile";
|
||||||
server.enable = lib.mkEnableOption "server profile";
|
server = lib.mkEnableOption "server profile";
|
||||||
|
|
||||||
hardware = {
|
hardware = {
|
||||||
nvidia.enable = lib.mkEnableOption "Nvidia profile";
|
nvidia = lib.mkEnableOption "Nvidia profile";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue