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/ # https://devenv.sh/basics/
env.GREET = "devenv"; env.GREET = "devenv";
cachix.enable = false; cachix.enable = false;
@ -12,6 +12,7 @@
nixpkgs-fmt.enable = true; nixpkgs-fmt.enable = true;
shellcheck.enable = true; shellcheck.enable = true;
commitizen.enable = true; commitizen.enable = true;
deadnix.enable = true;
}; };
# https://devenv.sh/processes/ # https://devenv.sh/processes/
# processes.cargo-watch.exec = "cargo-watch"; # processes.cargo-watch.exec = "cargo-watch";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,19 +1,7 @@
{ config { pkgs
, pkgs
, ... , ...
}: }:
let 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 { xenlism-grub-themes = pkgs.stdenv.mkDerivation {
pname = "xenlism-grub-themes"; pname = "xenlism-grub-themes";
version = "1.0"; version = "1.0";

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,37 +1,4 @@
{ pkgs, ... }: { 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 = { services.pipewire = {
enable = true; enable = true;

View file

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

View file

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

View file

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

View file

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

View file

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