chore(clean): deadnix pruning

This commit is contained in:
Zhongheng Liu 2025-01-08 14:24:09 +02:00
commit a81feaf5fa
Signed by: steven
GPG key ID: 805A28B071DAD84B
50 changed files with 37 additions and 168 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, inputs, ... }: {
{ pkgs, ... }: {
# https://devenv.sh/basics/
env.GREET = "devenv";
cachix.enable = false;
@ -12,6 +12,7 @@
nixpkgs-fmt.enable = true;
shellcheck.enable = true;
commitizen.enable = true;
deadnix.enable = true;
};
# https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch";

View file

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

View file

@ -1,6 +1,4 @@
{ lib
, pkgs
, config
{ pkgs
, ...
}: {
imports = [

View file

@ -1,5 +1,4 @@
{ pkgs
, config
, ...
}: {
gtk = {

View file

@ -1,6 +1,4 @@
{ inputs
, lib
, config
{ config
, pkgs
, ...
}: {
@ -9,7 +7,6 @@
./shells
../../common/variables.nix
./services
#./mako.nix DEPRECATED Changed to sway notification center
./wechat
./editors.nix
./gtk.nix
@ -25,7 +22,7 @@
nixpkgs = {
# You can add overlays here
overlays = [
(final: prev: {
(_final: prev: {
ags = prev.ags.overrideAttrs (old: {
buildInputs = old.buildInputs ++ [ pkgs.libdbusmenu-gtk3 ];
});
@ -84,7 +81,7 @@
enable = true;
package = with pkgs; (firefox-devedition.override {
nativeMessagingHosts = [
(passff-host.overrideAttrs (old: {
(passff-host.overrideAttrs (_old: {
dontStrip = true;
patchPhase = ''
sed -i 's#COMMAND = "pass"#COMMAND = "${

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
imports = [
./hyprland

View file

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ ... }:
let
timeoutSeconds = 600;
in

View file

@ -1,4 +1,4 @@
{ inputs, config, pkgs, lib, ... }: {
{ inputs, config, pkgs, ... }: {
home.packages =
[ inputs.hyprland-qtutils.packages.x86_64-linux.default pkgs.foot ];
wayland.windowManager.hyprland = {
@ -40,7 +40,6 @@
accel_profile = "flat";
};
exec-once = config.myAutostartCommands ++ import ./hypr_autostart.nix {
inherit pkgs;
inherit config;
};
misc = {
@ -51,12 +50,10 @@
};
"$mod" = "SUPER";
binde = import ./xf86_binds.nix {
inherit config;
inherit pkgs;
};
bind = import ./binds.nix {
inherit config;
inherit lib;
inherit pkgs;
};
bindm = [

View file

@ -1,4 +1,4 @@
{ pkgs, config }:
{ config }:
let
term = config.defaultApplications.terminal;
shell = config.myShells.defaultShell;

View file

@ -1,5 +1,4 @@
{ pkgs
, config
,
}: [
", XF86AudioPlay, exec, ${pkgs.playerctl}/bin/playerctl play-pause"

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
programs.hyprlock = {
enable = true;

View file

@ -1,5 +1,4 @@
{ pkgs
, config
{ config
, ...
}: {
services.hyprpaper = {

View file

@ -1,6 +1,4 @@
{ pkgs
, lib
, ...
{ ...
}:
let
defaultTimeoutMillis = 5 * 1000;

View file

@ -1,4 +1,4 @@
{ config, ... }: {
{ ... }: {
imports = [
./auto-pairs.nix
./autosave.nix

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
imports = [
./util-programs.nix

View file

@ -1,5 +1,4 @@
{ pkgs
, config
, ...
}: {
home.packages = with pkgs; [

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
, ...
}: {
home.packages = with pkgs; [ vesktop ];

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, ... }:
{
home.packages = with pkgs; [ bottles ];
}

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
, ...
}: {
home.packages = with pkgs; [

View file

@ -1,5 +1,4 @@
{ pkgs
, config
, ...
}: {
home.packages = with pkgs; [

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
, ...
}: {
home.packages = with pkgs; [

View file

@ -1,4 +1,4 @@
{ pkgs, config, ... }: {
{ pkgs, ... }: {
home.packages = with pkgs; [ vscodium-fhs ];
xdg.desktopEntries.codium = { };
}

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
, ...
}: {
home.packages = with pkgs; [ wl-clipboard ];

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
imports = [
./git.nix

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
{ lib
, ...
}: {
programs.foot = {

View file

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

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
programs.rofi = {
enable = true;

View file

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

View file

@ -1,5 +1,4 @@
{ pkgs
, config
{ config
, ...
}: {
programs.walker = {

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, ...
{ ...
}: {
imports = [
./swaync.nix

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, ...
{ ...
}: {
services.swaync = {
enable = true;

View file

@ -1,11 +1,7 @@
{ pkgs
, lib
{ lib
, config
, ...
}:
let
cfg = config.myShells;
in
with lib; {
imports = [
./zsh.nix

View file

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

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, ...
{ ...
}: {
EDITOR = "nvim";
}

View file

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

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
{ config
, ...
}: {
programs.zoxide = {

View file

@ -3,9 +3,6 @@
, config
, ...
}:
let
cfg = config.shell.zsh;
in
with lib; {
options.myShells.zsh = {
enable = mkEnableOption "Enables zsh and components.";

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ ... }: {
xdg = {
enable = true;
userDirs.enable = true;

View file

@ -1,19 +1,7 @@
{ config
, pkgs
{ pkgs
, ...
}:
let
distro-grub-themes = pkgs.stdenv.mkDerivation {
pname = "distro-grub-themes";
version = "3.1";
src = pkgs.fetchFromGitHub {
owner = "AdisonCavani";
repo = "distro-grub-themes";
rev = "v3.1";
hash = "sha256-ZcoGbbOMDDwjLhsvs77C7G7vINQnprdfI37a9ccrmPs=";
};
installPhase = "cp -r customize/nixos $out";
};
xenlism-grub-themes = pkgs.stdenv.mkDerivation {
pname = "xenlism-grub-themes";
version = "1.0";

View file

@ -1,7 +1,4 @@
{ config
, lib
, pkgs
, ...
{ ...
}: {
networking.extraHosts = ''
# home IP mapping

View file

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

View file

@ -3,7 +3,6 @@
# to /etc/nixos/configuration.nix instead.
{ config
, lib
, pkgs
, modulesPath
, ...
}: {

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
services.logind.extraConfig = ''
# don't shutdown in short press

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, ...
{ ...
}: {
services.nginx = {
enable = true;

View file

@ -1,37 +1,4 @@
{ pkgs, ... }:
let
pw_rnnoise_config = {
"context.modules" = [
{
"name" = "libpipewire-module-filter-chain";
"args" = {
"node.description" = "Noise Canceling source";
"media.name" = "Noise Canceling source";
"filter.graph" = {
"nodes" = [
{
"type" = "ladspa";
"name" = "rnnoise";
"plugin" = "${pkgs.rnnoise-plugin}/lib/ladspa/librnnoise_ladspa.so";
"label" = "noise_suppressor_stereo";
"control" = { "VAD Threshold (%)" = 50.0; };
}
];
};
"audio.position" = [ "FL" "FR" ];
"capture.props" = {
"node.name" = "effect_input.rnnoise";
"node.passive" = true;
};
"playback.props" = {
"node.name" = "effect_output.rnnoise";
"media.class" = "Audio/Source";
};
};
}
];
};
in
{
services.pipewire = {
enable = true;

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
services.tlp = {
enable = true;

View file

@ -1,7 +1,4 @@
{ pkgs
, config
, lib
, ...
{ ...
}: {
services.seatd = {
enable = true;

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, lib
{ config
, ...
}: {
services = {

View file

@ -1,6 +1,4 @@
{ pkgs
, config
, ...
{ ...
}: {
services.tailscale = {
enable = true;

View file

@ -1,6 +1,4 @@
{ pkgs
, lib
, config
{ config
, ...
}: {
virtualisation = {