From 35d5d7854085f5f1bcefb14d2430970f60d280e4 Mon Sep 17 00:00:00 2001 From: min Date: Tue, 21 Jan 2025 02:44:38 -0500 Subject: [PATCH] prism launcher + pkgs-unfree --- homes/min/default.nix | 1 + homes/min/games.nix | 5 +++++ homes/min/helix.nix | 4 +++- homes/min/shell.nix | 6 +++++- hosts/mpl/configuration.nix | 4 +++- hosts/mpl/default.nix | 11 +++++++---- hosts/mpl/mounts.nix | 3 +++ 7 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 homes/min/games.nix diff --git a/homes/min/default.nix b/homes/min/default.nix index 59a8ad0..8898a8d 100644 --- a/homes/min/default.nix +++ b/homes/min/default.nix @@ -3,6 +3,7 @@ inputs.catppuccin.homeManagerModules.catppuccin ./firefox.nix + ./games.nix ./git.nix ./helix.nix ./hyprland.nix diff --git a/homes/min/games.nix b/homes/min/games.nix new file mode 100644 index 0000000..218f086 --- /dev/null +++ b/homes/min/games.nix @@ -0,0 +1,5 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + prismlauncher + ]; +} diff --git a/homes/min/helix.nix b/homes/min/helix.nix index 978c866..ccb20b9 100644 --- a/homes/min/helix.nix +++ b/homes/min/helix.nix @@ -1,4 +1,6 @@ -_: { +{pkgs, ...}: { + home.packages = [pkgs.wl-clipboard]; + programs.helix = { enable = true; defaultEditor = true; diff --git a/homes/min/shell.nix b/homes/min/shell.nix index 54f5c71..317a2d8 100644 --- a/homes/min/shell.nix +++ b/homes/min/shell.nix @@ -1,4 +1,4 @@ -_: { +{pkgs-unfree, ...}: { programs = let enableZsh = { enable = true; @@ -44,4 +44,8 @@ _: { settings.color_theme = "ayu"; }; }; + + home.packages = with pkgs-unfree; [ + unrar + ]; } diff --git a/hosts/mpl/configuration.nix b/hosts/mpl/configuration.nix index dfa73af..24d28ac 100644 --- a/hosts/mpl/configuration.nix +++ b/hosts/mpl/configuration.nix @@ -2,6 +2,7 @@ inputs, config, pkgs, + pkgs-unfree, ... }: { imports = [ @@ -21,6 +22,7 @@ }; # Allow unfree packages (firmware) + # Not sure if this is necessary on flakes.. nixpkgs.config.allowUnfree = true; # Set your time zone. @@ -90,7 +92,7 @@ # Home-manager home-manager = { - extraSpecialArgs = {inherit inputs;}; + extraSpecialArgs = {inherit inputs pkgs-unfree;}; users.${config.users.users.min.name} = import ../../homes/min; }; diff --git a/hosts/mpl/default.nix b/hosts/mpl/default.nix index 021170a..091c5b4 100644 --- a/hosts/mpl/default.nix +++ b/hosts/mpl/default.nix @@ -1,4 +1,4 @@ -{inputs, ...}: { +{inputs, ...}: rec { system = "x86_64-linux"; modules = [ inputs.nixos-hardware.nixosModules.framework-13-7040-amd @@ -8,9 +8,12 @@ inputs.home-manager.nixosModules.home-manager inputs.lanzaboote.nixosModules.lanzaboote inputs.catppuccin.nixosModules.catppuccin + { + _module.args.pkgs-unfree = import inputs.nixpkgs { + inherit system; + config.allowUnfree = true; + }; + } ./configuration.nix ]; - homes = [ - "min" - ]; } diff --git a/hosts/mpl/mounts.nix b/hosts/mpl/mounts.nix index fe0aab7..7c47827 100644 --- a/hosts/mpl/mounts.nix +++ b/hosts/mpl/mounts.nix @@ -31,6 +31,9 @@ ".local/share/nix" # trusted settings ".local/state/wireplumber" # volumes, etc + # games + ".local/share/PrismLauncher" + # apps ".config/vesktop" ".librewolf"