refactor: remove dead code
This commit is contained in:
parent
ce3fed7148
commit
5c7902debc
13 changed files with 25 additions and 50 deletions
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
{pkgs, ...}:
|
||||
with lib; let
|
||||
cfg = config.catppuccin;
|
||||
in {
|
||||
{pkgs, ...}: {
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
@ -1,12 +1,10 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
nur,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
inherit (pkgs.stdenv.hostPlatform) isDarwin;
|
||||
in {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux isDarwin;
|
||||
inherit (pkgs.stdenv.hostPlatform) isLinux;
|
||||
in {
|
||||
accounts.email.maildirBasePath = "${config.xdg.dataHome}/mail";
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@
|
|||
rustfmt
|
||||
shfmt
|
||||
tree-sitter
|
||||
alejandra
|
||||
deadnix
|
||||
statix
|
||||
(callPackage ../packages/jq-lsp {})
|
||||
(callPackage ../packages/helm-ls {})
|
||||
|
||||
|
|
|
@ -313,7 +313,7 @@ null.setup({
|
|||
null.builtins.formatting.shfmt,
|
||||
null.builtins.formatting.stylua,
|
||||
null.builtins.diagnostics.proselint,
|
||||
null.builtins.diagnostics.deadnix,
|
||||
null.builtins.diagnostics.statix,
|
||||
},
|
||||
on_attach = function(client, bufnr)
|
||||
if client.supports_method("textDocument/formatting") then
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{config, ...}: {
|
||||
{...}: {
|
||||
programs.newsboat = {
|
||||
enable = true;
|
||||
autoReload = true;
|
||||
|
|
|
@ -1,8 +1,4 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
{config, ...}: {
|
||||
# TODO: enable after sops supports nix-darwin
|
||||
sops = {
|
||||
gnupg.home = "${config.xdg.configHome}/gnupg";
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
lib,
|
||||
pkgs,
|
||||
}:
|
||||
appimageTools.wrapType1 rec {
|
||||
name = "cura";
|
||||
|
|
|
@ -2,36 +2,26 @@
|
|||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
target =
|
||||
{
|
||||
"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";
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "discord-applemusic-rich-presence";
|
||||
version = "0.5.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "caarlos0";
|
||||
repo = "discord-applemusic-rich-presence";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-PCA0Thzng1C08NwBTh3Hl4yW2qvYXra6EZHrJxoCgIU=";
|
||||
};
|
||||
src = fetchFromGitHub {
|
||||
owner = "caarlos0";
|
||||
repo = "discord-applemusic-rich-presence";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-PCA0Thzng1C08NwBTh3Hl4yW2qvYXra6EZHrJxoCgIU=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo=";
|
||||
vendorSha256 = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo=";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Discord's Rich Presence from Apple Music";
|
||||
homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence";
|
||||
license = licenses.mit;
|
||||
maintainers = [maintainers.nekowinston];
|
||||
platforms = platforms.darwin;
|
||||
};
|
||||
}
|
||||
meta = with lib; {
|
||||
description = "Discord's Rich Presence from Apple Music";
|
||||
homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence";
|
||||
license = licenses.mit;
|
||||
maintainers = [maintainers.nekowinston];
|
||||
platforms = platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
buildGoModule rec {
|
||||
|
|
Loading…
Reference in a new issue