From f6cd2a6b686bfe3abf29ef44a16b92920ff8136c Mon Sep 17 00:00:00 2001 From: Annika Merris Date: Sat, 18 May 2024 18:11:13 -0400 Subject: [PATCH] Fixed Typos --- hosts/virt-nix/default.nix | 1 + modules/common/applications/discord.nix | 4 ++-- modules/common/default.nix | 8 +++++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/virt-nix/default.nix b/hosts/virt-nix/default.nix index ce88427..3da05ed 100644 --- a/hosts/virt-nix/default.nix +++ b/hosts/virt-nix/default.nix @@ -65,6 +65,7 @@ inputs.nixpkgs.lib.nixosSystem { nixpkgs.config.allowUnfree = true; system.stateVersion = "23.11"; + gui.enable = true; discord.enable = true; } ]; diff --git a/modules/common/applications/discord.nix b/modules/common/applications/discord.nix index 6b49187..bf30798 100644 --- a/modules/common/applications/discord.nix +++ b/modules/common/applications/discord.nix @@ -10,8 +10,8 @@ }; config = lib.mkIf (config.gui.enable && config.discord.enable) { home-manager.users.${config.user} = { - home.packages = with pkgs [ - discord + home.packages = [ + pkgs.discord ]; xdg.configFile."discord/settings.json".text = '' { diff --git a/modules/common/default.nix b/modules/common/default.nix index 8458366..54674d0 100644 --- a/modules/common/default.nix +++ b/modules/common/default.nix @@ -13,9 +13,11 @@ type = lib.types.str; description = "Puny Hooman readable name of the user"; }; - gui = lib.mkEnableOption { - description = "Enable graphics."; - default = false; + gui = { + enable = lib.mkEnableOption { + description = "Enable graphics."; + default = false; + }; }; }; config =