back interdiff of round #2 and #1

ci: add deadnix #40

merged
opened by a.starrysky.fyi targeting main from private/minion/push-vmslusqkrqom

deadnix is a package to find unused nix code, we can add it to enforce that we don't leave let bindings/inputs/etc. around when they are not needed

ERROR
.tangled/workflows/deadnix.yml

Failed to calculate interdiff for this file.

REVERTED
packetmix/nilla.nix
···
config.inputs.nilla-home.result.packages.nilla-home.result.${system}
config.inputs.nilla-nixos.result.packages.nilla-nixos.result.${system}
config.inputs.nixos-unstable.result.${system}.quickshell
-
config.inputs.nixpkgs.result.${system}.deadnix
config.packages.nilla-fmt.result.${system}
config.packages.treefmt.result.${system}
(config.inputs.npins.result { inherit pkgs system; })
NEW
packetmix/ci.nix
···
project = base.extend {
modules = [
(
-
{ config, lib, ... }:
+
{ config, ... }:
{
config.inputs = (
builtins.mapAttrs (
NEW
packetmix/homes/catppuccin/catppuccin.nix
···
#
# SPDX-License-Identifier: MIT
-
{ project, lib, ... }:
+
{ project, ... }:
{
imports = [ project.inputs.catppuccin.result.homeModules.catppuccin ];
config.catppuccin.enable = true;
NEW
packetmix/homes/coded/catppuccin.nix
···
#
# SPDX-License-Identifier: MIT
-
{ project, ... }:
{
config.catppuccin = {
flavor = "macchiato";
NEW
packetmix/homes/common/gtk.nix
···
#
# SPDX-License-Identifier: MIT
-
{ pkgs, ... }:
{
gtk.enable = true;
}
NEW
packetmix/homes/common/helix.nix
···
{
config,
-
pkgs,
project,
system,
...
NEW
packetmix/homes/default.nix
···
# SPDX-License-Identifier: MIT
{ config, ... }:
-
let
-
nixpkgs = config.inputs.nixpkgs.result;
-
in
{
config.homes."maya:x86_64-linux" = {
modules = [
NEW
packetmix/homes/development/helix.nix
···
{
pkgs,
-
project,
-
system,
...
}:
{
NEW
packetmix/homes/development/tmux.nix
···
#
# SPDX-License-Identifier: MIT
-
{ lib, ... }:
{
programs.tmux.enable = true;
programs.fzf.tmux.enableShellIntegration = true; # Needed for using sesh - which relies on fzf+tmux
NEW
packetmix/homes/espanso/espanso.nix
···
#
# SPDX-License-Identifier: MIT
-
{ config, lib, ... }:
+
{
+
config,
+
...
+
}:
{
home.file = {
".cache/espanso/kvs/has_completed_wizard" = {
NEW
packetmix/homes/maya/niri.nix
···
# SPDX-License-Identifier: MIT
{
-
project,
-
config,
pkgs,
lib,
...
NEW
packetmix/homes/minion/niri.nix
···
# SPDX-License-Identifier: MIT
{
-
project,
-
config,
pkgs,
-
lib,
...
}:
{
NEW
packetmix/homes/niri/niri.nix
···
binds =
let
-
inherit (config.lib.niri) actions;
-
mod = "Super";
mod1 = "Alt";
NEW
packetmix/modules/nilla-home/home.nix
···
{ lib, config }:
let
-
inherit (config) inputs;
homes-type = import ./homes-type.nix { inherit lib config; };
in
{
NEW
packetmix/modules/nilla-home/nixos.nix
···
config.modules =
let
-
system = submodule.config.pkgs.system;
warn' = builtins.warn or builtins.trace; # builtins.warn doesn't exist on some versions of nix/lix
warnIf =
condition: message: value:
···
{
home,
homeName,
-
username,
}@identity:
warnIf (home.home-manager != homeManager)
"The home \"${homeName}\" isn't using the same home-manager input as the NixOS system \"${name}\". This may work, but is not officially supported by the Nilla Home or Nilla NixOS maintainers. Please fix this before reporting any bugs you may find."
NEW
packetmix/packages/bluesky-pds/default.nix
···
systems = [ "x86_64-linux" ];
package =
{
-
system,
stdenv,
nodejs,
pnpm_9,
-
lib,
srcOnly,
python3,
...
NEW
packetmix/systems/common/fonts.nix
···
#
# SPDX-License-Identifier: MIT
-
{ pkgs, lib, ... }:
+
{
+
pkgs,
+
...
+
}:
{
fonts.packages = [
pkgs.cantarell-fonts
NEW
packetmix/systems/common/inputs.nix
···
{
project,
-
pkgs,
lib,
...
}:
NEW
packetmix/systems/default.nix
···
#
# SPDX-License-Identifier: MIT
-
{ config, lib, ... }:
+
{
+
config,
+
...
+
}:
let
nixpkgs = config.inputs.nixpkgs.result;
in
NEW
packetmix/systems/emden/hardware-configuration.nix
···
{
config,
lib,
-
pkgs,
modulesPath,
...
}:
NEW
packetmix/systems/emden/steam.nix
···
#
# SPDX-License-Identifier: MIT
-
{ lib, ... }:
{
programs.steam = {
enable = true;
NEW
packetmix/systems/espanso/nixpkgs-328890--espanso-capdacoverride.nix
···
config = lib.mkIf cfg.enable {
nixpkgs.overlays = [
-
(final: prev: {
+
(_final: prev: {
_espanso-wayland-orig = prev.espanso-wayland;
espanso-wayland =
pkgs.callPackage ./nixpkgs-328890--espanso-capdacoverride/espanso-capdacoverride.nix
NEW
packetmix/systems/gaming/steam.nix
···
#
# SPDX-License-Identifier: MIT
-
{ lib, ... }:
{
programs.steam = {
enable = true;
NEW
packetmix/systems/marbled/hardware-configuration.nix
···
{
config,
lib,
-
pkgs,
modulesPath,
...
}:
NEW
packetmix/systems/niri/niri.nix
···
#
# This file is based on some work from sodiboo's niri-flake, see https://github.com/sodiboo/niri-flake/blob/main/flake.nix
{
-
project,
pkgs,
lib,
...
NEW
packetmix/systems/personal/configuration.nix
···
{
project,
-
config,
system,
pkgs,
...
NEW
packetmix/systems/redhead/hardware-configuration.nix
···
{
config,
lib,
-
pkgs,
modulesPath,
...
}:
NEW
packetmix/systems/redhead/remoteBuilds.nix
···
#
# SPDX-License-Identifier: MIT
-
{
-
lib,
-
...
-
}:
{
nix = {
distributedBuilds = true;
NEW
packetmix/systems/teal/pds.nix
···
{
project,
-
pkgs,
system,
...
}:
···
];
nixpkgs.overlays = [
-
(final: prev: {
+
(final: _prev: {
bluesky-pdsadmin = final.pdsadmin;
})
];
NEW
packetmix/systems/teal/stalwart.nix
···
{
project,
config,
-
pkgs,
lib,
...
}:
NEW
packetmix/systems/teal/vaultwarden.nix
···
# SPDX-License-Identifier: MIT
{
-
pkgs,
-
lib,
config,
...
}: