feat: remove .enable from profiles

This commit is contained in:
punkfairie 2025-05-25 15:25:29 -07:00
parent 050112880f
commit 90245758a8
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
6 changed files with 11 additions and 29 deletions

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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;
};

View file

@ -6,7 +6,7 @@
}: {
boot = {
kernelPackages =
lib.mkIf (!config.marleyos.profiles.server.enable)
lib.mkIf (!config.marleyos.profiles.server)
pkgs.linuxPackages_xanmod;
loader = {

View file

@ -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;

View file

@ -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";
};
};
}