remove dead code (run deadnix)

This commit is contained in:
Daniel Barlow
2024-06-29 22:59:27 +01:00
parent 16a2499d74
commit e94bf62ec1
112 changed files with 83 additions and 246 deletions

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... } :
{ config, pkgs, ... } :
let
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.pseudofile) dir;
in {
imports = [
../../modules/outputs/ext4fs.nix

View File

@@ -1,8 +1,6 @@
{ config, pkgs, lib, modulesPath, ... } :
{ config, pkgs, modulesPath, ... } :
let
inherit (pkgs.liminix.services) bundle oneshot longrun;
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs) serviceFns;
inherit (pkgs.pseudofile) dir;
svc = config.system.service;

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... } :
{ config, pkgs, ... } :
let
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.pseudofile) dir;
in {
imports = [
../../vanilla-configuration.nix

View File

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

View File

@@ -1,15 +1,7 @@
{ config, pkgs, lib, ... } :
let
inherit (pkgs) dropbear;
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.liminix.services) oneshot longrun bundle target;
inherit
(pkgs.liminix.networking)
address
udhcpc
interface
route
;
inherit (pkgs.liminix.services) longrun;
in {
imports = [
../../vanilla-configuration.nix

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, ... } :
{ config, pkgs, ... } :
let
inherit (pkgs.liminix.services) oneshot longrun bundle target output;
inherit (pkgs.liminix.services) target;
svc = config.system.service;
in rec {
services.lan4 = svc.network.address.build {

View File

@@ -1,6 +1,6 @@
{ config, pkgs, lib, lim, ... } :
let
inherit (pkgs.pseudofile) dir symlink;
inherit (pkgs.pseudofile) dir;
dts = pkgs.runCommand "qemu.dts" {
nativeBuildInputs = with pkgs.pkgsBuildBuild; [ dtc qemu ];
} ''

View File

@@ -4,7 +4,7 @@
let check = deviceName : config :
let derivation = (import liminix {
device = import "${liminix}/devices/${deviceName}/";
liminix-config = { pkgs, ... } : {
liminix-config = { ... } : {
imports = [./configuration.nix];
inherit config;
};

View File

@@ -1,7 +1,5 @@
{ config, pkgs, lib, ... } :
{ config, pkgs, ... } :
let
inherit (pkgs.liminix.services) bundle oneshot longrun;
inherit (pkgs) serviceFns;
# EDIT: you can pick your preferred RFC1918 address space
# for NATted connections, if you don't like this one.
ipv4LocalNet = "10.8.0";

View File

@@ -1,7 +1,6 @@
{ config, pkgs, lib, ... } :
{ config, pkgs, ... } :
let
inherit (pkgs.liminix.networking) interface address hostapd route dnsmasq;
inherit (pkgs.liminix.services) oneshot longrun bundle target;
inherit (pkgs.liminix.networking) interface hostapd;
in rec {
imports = [
../../modules/wlan.nix