From 131fa250232adbb2fe34a75e97e94f80576b4190 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Tue, 29 Nov 2022 21:03:30 +0800 Subject: [PATCH] profiles/system: rename to profiles/desktop The need for configuring desktop and server in separate profiles is becoming more obvious. Not to mention, most of the system config from profiles/system is obviously more desktop-oriented. --- hosts/graphical-installer/default.nix | 2 +- hosts/ni/default.nix | 2 +- hosts/plover/default.nix | 2 +- modules/nixos/profiles/{system.nix => desktop.nix} | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) rename modules/nixos/profiles/{system.nix => desktop.nix} (99%) diff --git a/hosts/graphical-installer/default.nix b/hosts/graphical-installer/default.nix index b312546f..b73bfbcc 100644 --- a/hosts/graphical-installer/default.nix +++ b/hosts/graphical-installer/default.nix @@ -18,7 +18,7 @@ }; profiles = { - system = { + desktop = { enable = true; fonts.enable = true; }; diff --git a/hosts/ni/default.nix b/hosts/ni/default.nix index b1f0285b..be5a9bde 100644 --- a/hosts/ni/default.nix +++ b/hosts/ni/default.nix @@ -51,7 +51,7 @@ profiles = { i18n.enable = true; archiving.enable = true; - system = { + desktop = { enable = true; audio.enable = true; fonts.enable = true; diff --git a/hosts/plover/default.nix b/hosts/plover/default.nix index 2f89ffe8..ccd0f120 100644 --- a/hosts/plover/default.nix +++ b/hosts/plover/default.nix @@ -120,7 +120,7 @@ in }; # Time to harden... - profiles.system.hardened-config.enable = true; + profiles.desktop.hardened-config.enable = true; # Generate them certificates. security.acme = { diff --git a/modules/nixos/profiles/system.nix b/modules/nixos/profiles/desktop.nix similarity index 99% rename from modules/nixos/profiles/system.nix rename to modules/nixos/profiles/desktop.nix index 97c97fa9..9bb015d5 100644 --- a/modules/nixos/profiles/system.nix +++ b/modules/nixos/profiles/desktop.nix @@ -3,9 +3,9 @@ # That can be found in the `themes` module. { config, options, lib, pkgs, ... }: -let cfg = config.profiles.system; +let cfg = config.profiles.desktop; in { - options.profiles.system = { + options.profiles.desktop = { enable = lib.mkEnableOption "all desktop-related services and default programs"; audio.enable =