move atuin patch to assets

main
Ingolf Wagner 2024-04-21 21:15:45 +02:00
parent 81039c1f8e
commit b6d15321d2
Signed by: palo
GPG Key ID: 76BF5F1928B9618B
4 changed files with 13 additions and 4 deletions

View File

@ -197,7 +197,8 @@
sshUser = "root";
buildOn = "remote"; # valid args are "local" or "remote"
substituteOnTarget = false; # if buildOn is "local" then it will substitute on the target, "-s"
hermetic = false;
#hermetic = false; # ??? don't know what this is
nixOptions = ["--max-jobs 1" ];
};
}
{
@ -269,6 +270,10 @@
sizes.popups = 15;
};
home-manager.extraSpecialArgs = {
inherit private_assets;
assets = ./nixos/assets;
};
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.sharedModules = [

View File

@ -1,4 +1,4 @@
{ lib, pkgs, ... }:
{ lib, pkgs, assets, ... }:
{
programs.zsh = {
@ -39,7 +39,7 @@
#package = pkgs.unstable.atuin;
package = pkgs.unstable.atuin.overrideAttrs (_old: {
# as cursed as doing mitigations=off in the kernel command line
patches = [ ./0001-make-atuin-on-zfs-fast-again.patch ];
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
});
settings = {
auto_sync = true;

View File

@ -1,6 +1,10 @@
{ config, ... }: {
{ config, pkgs, assets, ... }: {
services.atuin = {
enable = true;
package = pkgs.unstable.atuin.overrideAttrs (_old: {
# as cursed as doing mitigations=off in the kernel command line
patches = [ "${assets}/0001-make-atuin-on-zfs-fast-again.patch" ];
});
host = "0.0.0.0";
maxHistoryLength = 999999;
openRegistration = false;