chore: removed dead imports

This commit is contained in:
Nick 2025-06-26 02:43:48 -05:00
parent 7b29b69fd1
commit 0814b03d1f
29 changed files with 76 additions and 160 deletions

View file

@ -4,21 +4,22 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-23.11";
};
outputs = inputs @ {
flake-parts,
self,
...
}: let
system = "x86_64-linux";
in
flake-parts.lib.mkFlake {inherit inputs;} {
outputs =
inputs@{
flake-parts,
...
}:
let
system = "x86_64-linux";
in
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
./parts
];
systems = [
system
];
perSystem = {pkgs, ...}: {
perSystem = {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
};

View file

@ -1,20 +1,14 @@
{
perSystem = {
pkgs,
lib,
config,
self',
...
}: let
configPath = ./config;
let
configPath = ./config;
devshellImports = let
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = devshellImports;
};
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
in
{
imports = devshellImports;
}

View file

@ -4,13 +4,13 @@
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
pre-commit-hooks-nix.url = "github:cachix/pre-commit-hooks.nix";
};
outputs = inputs @ {
self,
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake {inherit inputs;} {
outputs =
inputs@{
nixpkgs,
flake-parts,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.haskell-flake.flakeModule
inputs.pre-commit-hooks-nix.flakeModule

View file

@ -1,20 +1,15 @@
{
perSystem = {
pkgs,
lib,
config,
self',
...
}: let
configPath = ./config;
let
configPath = ./config;
devshellImports = let
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
map
(name: configPath + "/${name}")
(builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
in {
imports = devshellImports;
};
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
in
{
imports = devshellImports;
}

View file

@ -12,7 +12,6 @@
inputs@{
nixpkgs,
flake-parts,
self,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {

View file

@ -1,24 +1,15 @@
{
perSystem =
{
pkgs,
lib,
config,
self',
...
}:
let
configPath = ./config;
let
configPath = ./config;
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
{
imports = devshellImports;
};
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
in
{
imports = devshellImports;
}

View file

@ -6,7 +6,6 @@
};
outputs =
inputs@{
self,
nixpkgs,
flake-parts,
...

View file

@ -1,24 +1,14 @@
{
perSystem =
{
pkgs,
lib,
config,
self',
...
}:
let
configPath = ./config;
let
configPath = ./config;
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
devshellImports =
let
files = builtins.attrNames (builtins.readDir configPath);
in
{
imports = devshellImports;
};
map (name: configPath + "/${name}") (
builtins.filter (name: builtins.match ".*\\.nix$" name != null) files
);
in
{
imports = devshellImports;
}