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,
lib,
pkgs,
...
}: {

View file

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

View file

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

View file

@ -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";

View file

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

View file

@ -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

View file

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

View file

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

View file

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

View file

@ -2,18 +2,8 @@
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";

View file

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

View file

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

View file

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