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 @@
|
|||
{
|
||||
marleylib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
{config, ...}: {
|
||||
networking = {
|
||||
computerName = "mairley";
|
||||
hostName = "mairley";
|
||||
|
@ -12,15 +6,7 @@ in {
|
|||
};
|
||||
|
||||
marleyos = {
|
||||
profiles.desktop = enabled;
|
||||
|
||||
# appearance = {
|
||||
# base = enabled;
|
||||
# };
|
||||
# programs = {
|
||||
# fish = enabled;
|
||||
# wezterm = enabled;
|
||||
# };
|
||||
profiles.desktop = true;
|
||||
};
|
||||
|
||||
users = {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
{marleylib, ...}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
_: {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
networking.hostName = "marleycentre";
|
||||
|
||||
marleyos = {
|
||||
profiles.server = enabled;
|
||||
profiles.server = true;
|
||||
};
|
||||
|
||||
users.users = {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
{marleylib, ...}: let
|
||||
inherit (marleylib.module) enabled;
|
||||
in {
|
||||
_: {
|
||||
imports = [./hardware-configuration.nix];
|
||||
|
||||
networking.hostName = "marleynet";
|
||||
|
||||
marleyos = {
|
||||
profiles.server = enabled;
|
||||
profiles.server = true;
|
||||
# services.ddclient = enabled;
|
||||
};
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
}: {
|
||||
boot = {
|
||||
kernelPackages =
|
||||
lib.mkIf (!config.marleyos.profiles.server.enable)
|
||||
lib.mkIf (!config.marleyos.profiles.server)
|
||||
pkgs.linuxPackages_xanmod;
|
||||
|
||||
loader = {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
config = lib.mkIf (!config.marleyos.profiles.server.enable) {
|
||||
config = lib.mkIf (!config.marleyos.profiles.server) {
|
||||
security.rtkit.enable = true; # Used for pulseaudio.
|
||||
|
||||
hardware.pulseaudio.enable = false;
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
{lib, ...}: {
|
||||
options.marleyos.profiles = {
|
||||
desktop.enable = lib.mkEnableOption "graphical desktop profile";
|
||||
server.enable = lib.mkEnableOption "server profile";
|
||||
desktop = lib.mkEnableOption "graphical desktop profile";
|
||||
server = lib.mkEnableOption "server profile";
|
||||
|
||||
hardware = {
|
||||
nvidia.enable = lib.mkEnableOption "Nvidia profile";
|
||||
nvidia = lib.mkEnableOption "Nvidia profile";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue