From cbf49472bbb58e9ea1baf276e1a0c7d6e3178833 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Tue, 15 Oct 2024 19:09:03 +0100 Subject: [PATCH] Allow unfree packages in nix-shells and add steam --- nix/home.nix | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/nix/home.nix b/nix/home.nix index e4172c11..7901cc14 100644 --- a/nix/home.nix +++ b/nix/home.nix @@ -16,12 +16,11 @@ in home.stateVersion = "24.05"; nixpkgs.config.allowUnfree = true; + home.packages = with pkgs; [ google-chrome - gh - unzip - fastfetch - prismlauncher + gh unzip fastfetch + prismlauncher steam # Override nerdfont to install JetBrains only. (nerdfonts.override { fonts = [ "JetBrainsMono" ]; }) @@ -78,10 +77,12 @@ in # macOS-only apps ++ optionals isDarwin []; - # Cursor theme fix (Linux) - home.file = mkIf isLinux { + home.file = { + ".config/nixpkgs/config.nix".text = "{ allowUnfree = true; }"; + } // (if isLinux then { + # Cursor theme fix (Linux) ".icons/default".source = "${pkgs.bibata-cursors}/share/icons/Bibata-Modern-Classic"; # Set file content as another file - }; + } else {}); home.sessionVariables = { EDITOR = "nvim";