diff options
Diffstat (limited to '')
-rw-r--r-- | modules/common/common/nix/default.nix | 39 | ||||
-rw-r--r-- | modules/common/common/nix/patches/prismlauncher-allow-offline-accounts.patch | 24 | ||||
-rw-r--r-- | modules/common/git.nix | 6 |
3 files changed, 59 insertions, 10 deletions
diff --git a/modules/common/common/nix/default.nix b/modules/common/common/nix/default.nix index bbb06d0..03918d7 100644 --- a/modules/common/common/nix/default.nix +++ b/modules/common/common/nix/default.nix @@ -87,22 +87,19 @@ with lib; { ( _: super: { grc = super.grc.overrideAttrs (_: final: { - version = "devel"; - + version = "unstable-2021-08-12"; src = super.fetchFromGitHub { owner = "garabik"; repo = "grc"; rev = "4d6a51fd78ad7e19af8dd12b2a828d1807267079"; hash = "sha256-SmOZrgV0lgLryFoxADU15IKJ7jhxXar0MgbsV/z1GaE="; }; - patches = [ (super.fetchpatch { url = "https://patch-diff.githubusercontent.com/raw/garabik/grc/pull/214.patch"; hash = "sha256-VNr9jl5oFbFNJbGsjflwFV3oTbCzJ0lBIZA4eyeoXLY="; }) ]; - postPatch = final.postPatch + '' @@ -112,14 +109,36 @@ with lib; { }); alejandra = super.alejandra.overrideAttrs (_: final: { - patches = final.patches ++ [./patches/alejandra-no-ads.patch]; - }); - - telegram-desktop = super.telegram-desktop.overrideAttrs (_: final: { - patches = final.patches ++ [./patches/telegram-desktop-no-ads.patch]; + patches = + final.patches + ++ [ + ./patches/alejandra-no-ads.patch + ]; }); - inherit (pkgsPr 245433 "sha256-FF1WW0+/pJ15+mPVjv0bkrh0dpHfQU08HNat2gu1PQk=") openmw; + prismlauncher-unwrapped = + (super.prismlauncher-unwrapped.override (finalAttrs: { + stdenv = pkgs.useMoldLinker finalAttrs.stdenv; + })) + .overrideAttrs (_: final: { + patches = + final.patches + ++ [ + ./patches/prismlauncher-allow-offline-accounts.patch + ]; + }); + + telegram-desktop = + (super.telegram-desktop.override (finalAttrs: { + stdenv = pkgs.useMoldLinker finalAttrs.stdenv; + })) + .overrideAttrs (_: final: { + patches = + final.patches + ++ [ + ./patches/telegram-desktop-no-ads.patch + ]; + }); } ) ]; diff --git a/modules/common/common/nix/patches/prismlauncher-allow-offline-accounts.patch b/modules/common/common/nix/patches/prismlauncher-allow-offline-accounts.patch new file mode 100644 index 0000000..c245066 --- /dev/null +++ b/modules/common/common/nix/patches/prismlauncher-allow-offline-accounts.patch @@ -0,0 +1,24 @@ +diff --git i/launcher/ui/pages/global/AccountListPage.cpp w/launcher/ui/pages/global/AccountListPage.cpp +index 278f45c4..b65cbbfb 100644 +--- i/launcher/ui/pages/global/AccountListPage.cpp ++++ w/launcher/ui/pages/global/AccountListPage.cpp +@@ -188,19 +188,6 @@ void AccountListPage::on_actionAddMicrosoft_triggered() + + void AccountListPage::on_actionAddOffline_triggered() + { +- if (!m_accounts->anyAccountIsValid()) { +- QMessageBox::warning( +- this, +- tr("Error"), +- tr( +- "You must add a Microsoft or Mojang account that owns Minecraft before you can add an offline account." +- "<br><br>" +- "If you have lost your account you can contact Microsoft for support." +- ) +- ); +- return; +- } +- + MinecraftAccountPtr account = OfflineLoginDialog::newAccount( + this, + tr("Please enter your desired username to add your offline account.") diff --git a/modules/common/git.nix b/modules/common/git.nix index 70fb7c7..de401fb 100644 --- a/modules/common/git.nix +++ b/modules/common/git.nix @@ -68,6 +68,7 @@ in { submodule = "log"; }; init.defaultBranch = "master"; + push.autoSetupRemote = true; status.submoduleSummary = true; github.user = my.username; gitlab.user = my.username; @@ -96,6 +97,11 @@ in { in { fuck = "!${git} reset --hard && ${git} clean -fdx"; gud = ''commit -m "git gud"''; + review = "!${git} lg @{push}.."; + reword = "commit --amend"; + tree = "log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset'"; + uncommit = "reset --soft HEAD~1"; + untrack = "rm --cache --"; wtc = "!${curl} -sq whatthecommit.com/index.txt | ${git} commit -F -"; }; |