remove dead code with deadnix

This commit is contained in:
Noah Masur 2023-02-20 20:45:56 -05:00
parent cc84f1d37a
commit 450118d234
21 changed files with 29 additions and 29 deletions

View File

@ -94,7 +94,7 @@
};
outputs = { self, nixpkgs, ... }@inputs:
outputs = { nixpkgs, ... }@inputs:
let

View File

@ -1,7 +1,7 @@
# The Staff
# ISO configuration for my USB drive
{ inputs, globals, system, overlays, ... }:
{ inputs, system, ... }:
with inputs;

View File

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];

View File

@ -1,7 +1,7 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{ config, lib, modulesPath, ... }:
{
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];

View File

@ -1,7 +1,7 @@
{ pkgs, ... }: {
plugins = [
(pkgs.vimPlugins.nvim-treesitter.withPlugins (plugins:
(pkgs.vimPlugins.nvim-treesitter.withPlugins (_plugins:
with pkgs.tree-sitter-grammars; [
tree-sitter-hcl
tree-sitter-python

View File

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

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, lib, ... }: {
options.haskell.enable = lib.mkEnableOption "Haskell programming language.";

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, pkgs, ... }: {
users.users.${config.user}.shell = pkgs.fish;
programs.fish.enable =

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, pkgs, ... }: {
home-manager.users.${config.user} = {
programs.fish = {

View File

@ -19,8 +19,8 @@ in {
# Fix: age won't build
nixpkgs.overlays = [
(final: prev: {
age = prev.age.overrideAttrs (old: {
(_final: prev: {
age = prev.age.overrideAttrs (_old: {
src = prev.fetchFromGitHub {
owner = "FiloSottile";
repo = "age";

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, lib, ... }: {
options = {
n8nServer = lib.mkOption {

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, lib, ... }: {
options.netdata.enable = lib.mkEnableOption "Netdata metrics.";

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, lib, ... }: {
options.metricsServer = lib.mkOption {
type = lib.types.nullOr lib.types.str;

View File

@ -1,6 +1,6 @@
# Fix: https://github.com/janeczku/calibre-web/issues/2422
final: prev: {
_final: prev: {
calibre-web = prev.calibre-web.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./calibre-web-cloudflare.patch ];
});

View File

@ -1,18 +1,18 @@
# Adopted from here: https://github.com/DieracDelta/vimconfig/blob/801b62dd56cfee59574639904a6c95b525725f66/plugins.nix
inputs: final: prev:
inputs: _final: prev:
let
# Use nixpkgs vimPlugin but with source directly from plugin author
withSrc = pkg: src: pkg.overrideAttrs (_: { inherit src; });
# Package plugin
plugin = pname: src:
prev.vimUtils.buildVimPluginFrom2Nix {
inherit pname src;
version = "master";
};
# Package plugin - disabling until in use
# plugin = pname: src:
# prev.vimUtils.buildVimPluginFrom2Nix {
# inherit pname src;
# version = "master";
# };
in {

View File

@ -1,7 +1,7 @@
{
description = "Basic project";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
outputs = { nixpkgs }:
let
forAllSystems = nixpkgs.lib.genAttrs [
"x86_64-linux"

View File

@ -8,7 +8,7 @@
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, haskellNix }:
outputs = { nixpkgs, flake-utils, haskellNix }:
flake-utils.lib.eachDefaultSystem (system:
let
overlay = self: _: {

View File

@ -5,7 +5,7 @@
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.poetry2nix.url = "github:nix-community/poetry2nix";
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
outputs = { nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {

View File

@ -3,14 +3,14 @@
inputs.mach-nix.url = "github:DavHau/mach-nix/3.5.0";
outputs = { self, nixpkgs, mach-nix }@inp:
outputs = { nixpkgs, mach-nix }:
let
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = f:
nixpkgs.lib.genAttrs supportedSystems
(system: f system (import nixpkgs { inherit system; }));
in rec {
defaultApp = forAllSystems (system: pkgs:
defaultApp = forAllSystems (system: _pkgs:
mach-nix.lib."${system}".mkPython {
requirements = builtins.readFile ./requirements.txt;
});