refactor: remove dead code

This commit is contained in:
winston 2023-02-10 07:57:37 +01:00
parent ce3fed7148
commit 5c7902debc
Signed by: winston
GPG key ID: 3786770EDBC2B481
13 changed files with 25 additions and 50 deletions

View file

@ -1,6 +1,5 @@
{ {
config, config,
lib,
pkgs, pkgs,
... ...
}: { }: {

View file

@ -1,7 +1,4 @@
{pkgs, ...}: {pkgs, ...}: {
with lib; let
cfg = config.catppuccin;
in {
programs.btop = { programs.btop = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,12 +1,10 @@
{ {
config, config,
lib,
nur, nur,
pkgs, pkgs,
... ...
}: let }: let
inherit (pkgs.stdenv.hostPlatform) isLinux; inherit (pkgs.stdenv.hostPlatform) isLinux;
inherit (pkgs.stdenv.hostPlatform) isDarwin;
in { in {
programs.firefox = { programs.firefox = {
enable = true; enable = true;

View file

@ -4,7 +4,7 @@
pkgs, pkgs,
... ...
}: let }: let
inherit (pkgs.stdenv.hostPlatform) isLinux isDarwin; inherit (pkgs.stdenv.hostPlatform) isLinux;
in { in {
accounts.email.maildirBasePath = "${config.xdg.dataHome}/mail"; accounts.email.maildirBasePath = "${config.xdg.dataHome}/mail";

View file

@ -62,8 +62,8 @@
rustfmt rustfmt
shfmt shfmt
tree-sitter tree-sitter
alejandra
deadnix deadnix
statix
(callPackage ../packages/jq-lsp {}) (callPackage ../packages/jq-lsp {})
(callPackage ../packages/helm-ls {}) (callPackage ../packages/helm-ls {})

View file

@ -313,7 +313,7 @@ null.setup({
null.builtins.formatting.shfmt, null.builtins.formatting.shfmt,
null.builtins.formatting.stylua, null.builtins.formatting.stylua,
null.builtins.diagnostics.proselint, null.builtins.diagnostics.proselint,
null.builtins.diagnostics.deadnix, null.builtins.diagnostics.statix,
}, },
on_attach = function(client, bufnr) on_attach = function(client, bufnr)
if client.supports_method("textDocument/formatting") then if client.supports_method("textDocument/formatting") then

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
programs.newsboat = { programs.newsboat = {
enable = true; enable = true;
autoReload = true; autoReload = true;

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
config,
lib,
...
}: {
# TODO: enable after sops supports nix-darwin # TODO: enable after sops supports nix-darwin
sops = { sops = {
gnupg.home = "${config.xdg.configHome}/gnupg"; gnupg.home = "${config.xdg.configHome}/gnupg";

View file

@ -1,8 +1,6 @@
{ {
appimageTools, appimageTools,
fetchurl, fetchurl,
lib,
pkgs,
}: }:
appimageTools.wrapType1 rec { appimageTools.wrapType1 rec {
name = "cura"; name = "cura";

View file

@ -2,36 +2,26 @@
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
lib, lib,
pkgs,
... ...
}: let }:
inherit (pkgs.stdenv.hostPlatform) system; buildGoModule rec {
target = pname = "discord-applemusic-rich-presence";
{ version = "0.5.0";
"aarch64-darwin" = "arm64";
"x86_64-darwin" = "x86";
}
.${system}
or (throw "Unsupported system: ${system}");
in
buildGoModule rec {
pname = "discord-applemusic-rich-presence";
version = "0.5.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "caarlos0"; owner = "caarlos0";
repo = "discord-applemusic-rich-presence"; repo = "discord-applemusic-rich-presence";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-PCA0Thzng1C08NwBTh3Hl4yW2qvYXra6EZHrJxoCgIU="; sha256 = "sha256-PCA0Thzng1C08NwBTh3Hl4yW2qvYXra6EZHrJxoCgIU=";
}; };
vendorSha256 = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo="; vendorSha256 = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo=";
meta = with lib; { meta = with lib; {
description = "Discord's Rich Presence from Apple Music"; description = "Discord's Rich Presence from Apple Music";
homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence"; homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence";
license = licenses.mit; license = licenses.mit;
maintainers = [maintainers.nekowinston]; maintainers = [maintainers.nekowinston];
platforms = platforms.darwin; platforms = platforms.darwin;
}; };
} }

View file

@ -2,7 +2,6 @@
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
lib, lib,
pkgs,
... ...
}: }:
buildGoModule rec { buildGoModule rec {

View file

@ -2,7 +2,6 @@
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
lib, lib,
pkgs,
... ...
}: }:
buildGoModule rec { buildGoModule rec {

View file

@ -2,7 +2,6 @@
buildGoModule, buildGoModule,
fetchFromGitHub, fetchFromGitHub,
lib, lib,
pkgs,
... ...
}: }:
buildGoModule rec { buildGoModule rec {