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 let

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { { config, lib, ... }: {
options.haskell.enable = lib.mkEnableOption "Haskell programming language."; 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; users.users.${config.user}.shell = pkgs.fish;
programs.fish.enable = programs.fish.enable =

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
# Fix: https://github.com/janeczku/calibre-web/issues/2422 # Fix: https://github.com/janeczku/calibre-web/issues/2422
final: prev: { _final: prev: {
calibre-web = prev.calibre-web.overrideAttrs (old: { calibre-web = prev.calibre-web.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [ ./calibre-web-cloudflare.patch ]; 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 # Adopted from here: https://github.com/DieracDelta/vimconfig/blob/801b62dd56cfee59574639904a6c95b525725f66/plugins.nix
inputs: final: prev: inputs: _final: prev:
let let
# Use nixpkgs vimPlugin but with source directly from plugin author # Use nixpkgs vimPlugin but with source directly from plugin author
withSrc = pkg: src: pkg.overrideAttrs (_: { inherit src; }); withSrc = pkg: src: pkg.overrideAttrs (_: { inherit src; });
# Package plugin # Package plugin - disabling until in use
plugin = pname: src: # plugin = pname: src:
prev.vimUtils.buildVimPluginFrom2Nix { # prev.vimUtils.buildVimPluginFrom2Nix {
inherit pname src; # inherit pname src;
version = "master"; # version = "master";
}; # };
in { in {

View File

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

View File

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

View File

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

View File

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