Dont hardcode arch

This commit is contained in:
2024-11-25 12:23:24 +01:00
parent 4e62dc9f79
commit 709140c8c7
4 changed files with 10 additions and 7 deletions
+4 -3
View File
@@ -23,10 +23,11 @@
if darwin if darwin
then ../modules/cli/darwin.nix then ../modules/cli/darwin.nix
else ../modules/cli; else ../modules/cli;
specialArgs = inputs // {inherit system;};
in in
systemFunc { systemFunc {
inherit system; inherit system specialArgs;
specialArgs = inputs;
modules = modules =
[ [
overlays overlays
@@ -63,7 +64,7 @@ in
home-manager = { home-manager = {
useGlobalPkgs = true; useGlobalPkgs = true;
useUserPackages = true; useUserPackages = true;
extraSpecialArgs = inputs; extraSpecialArgs = specialArgs;
users.${user} = { users.${user} = {
imports = [ imports = [
../modules/cli/home.nix ../modules/cli/home.nix
+2 -1
View File
@@ -2,6 +2,7 @@
config, config,
pkgs, pkgs,
zen, zen,
system,
... ...
}: let }: let
# When editing this, don't forget to edit home.sessionVariables. # When editing this, don't forget to edit home.sessionVariables.
@@ -19,7 +20,7 @@ in {
home.packages = with pkgs; [ home.packages = with pkgs; [
google-chrome google-chrome
firefox firefox
(import zen {system = "x86_64-linux";}).zen-browser (import zen {system = system;}).zen-browser
vesktop vesktop
mpv mpv
xdg-utils xdg-utils
+2 -2
View File
@@ -1,5 +1,5 @@
{ghostty, ...}: let {ghostty, system, ...}: let
pkg = ghostty.packages.x86_64-linux.default; pkg = ghostty.packages.${system}.default;
in { in {
xdg.configFile."ghostty/config".source = ./ghostty.config; xdg.configFile."ghostty/config".source = ./ghostty.config;
+2 -1
View File
@@ -1,6 +1,7 @@
{ {
pkgs, pkgs,
astal, astal,
system,
... ...
}: let }: let
covercolors = pkgs.stdenv.mkDerivation { covercolors = pkgs.stdenv.mkDerivation {
@@ -21,7 +22,7 @@
prev.buildInputs prev.buildInputs
++ [ ++ [
pkgs.libdbusmenu-gtk3 pkgs.libdbusmenu-gtk3
astal.packages.x86_64-linux.river astal.packages.${system}.river
]; ];
}); });
in { in {