From 95e2571160d58b6f2509ba1dd613836c39d2af71 Mon Sep 17 00:00:00 2001 From: "Alexandre Cavalheiro S. Tiago da Silva" Date: Thu, 11 Apr 2024 20:04:10 -0300 Subject: [PATCH] hm: general formatting and tiny doc --- home-manager.nix | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/home-manager.nix b/home-manager.nix index 221edbc..a15b4d1 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -167,21 +167,24 @@ qt6Packages.qtwayland # Create an FHS environment using the command `fhs`, enabling the execution of non-NixOS packages in NixOS! - (let base = pkgs.appimageTools.defaultFhsEnvArgs; - in pkgs.buildFHSUserEnv (base // { - name = "fhs"; - targetPkgs = pkgs: - ( - # pkgs.buildFHSUserEnv provides only a minimal FHS environment, - # lacking many basic packages needed by most software. - # Therefore, we need to add them manually. - # - # pkgs.appimageTools provides basic packages required by most software. - (base.targetPkgs pkgs) ++ (with pkgs; [ nodejs ])); - profile = "export FHS=1"; - runScript = "bash"; - extraOutputsToInstall = [ "dev" ]; - })) + ( + let base = pkgs.appimageTools.defaultFhsEnvArgs; + in pkgs.buildFHSUserEnv (base // { + name = "fhs"; + targetPkgs = pkgs: + ( + # pkgs.buildFHSUserEnv provides only a minimal FHS environment, + # lacking many basic packages needed by most software. + # Therefore, we need to add them manually. + # + # pkgs.appimageTools provides basic packages required by most software. + (base.targetPkgs pkgs) ++ (with pkgs; [ nodejs ]) + ); + profile = "export FHS=1"; + runScript = "bash"; + extraOutputsToInstall = [ "dev" ]; + }) + ) ]; # @@ -323,6 +326,7 @@ "x-scheme-handler/unknown" = "firefox"; }; + # Configure custom services systemd.user.services = { palserver = { Unit = { Description = "Palworld Server"; };