removed dead code

This commit is contained in:
Julien Malka 2024-03-30 20:18:12 +01:00
parent 8c1f06fda1
commit 0ebde53e83
Signed by: Luj
GPG key ID: 6FC74C847011FD83
58 changed files with 60 additions and 66 deletions

View file

@ -64,7 +64,7 @@
outputs = { self, nixpkgs, ... }@inputs:
let
lib = nixpkgs.lib.extend (import ./lib inputs);
machines_plats = lib.mapAttrsToList (name: value: value.arch) (lib.filterAttrs (n: v: builtins.hasAttr "arch" v) lib.luj.machines);
machines_plats = lib.mapAttrsToList (_name: value: value.arch) (lib.filterAttrs (_n: v: builtins.hasAttr "arch" v) lib.luj.machines);
mkMachine = import ./lib/mkmachine.nix inputs lib;
nixpkgs_plats = builtins.listToAttrs (builtins.map
@ -118,7 +118,7 @@
(plat: {
name = plat;
value =
(lib.filterAttrs (name: value: (!lib.hasAttrByPath [ "meta" "platforms" ] value) || builtins.elem plat value.meta.platforms)
(lib.filterAttrs (_name: value: (!lib.hasAttrByPath [ "meta" "platforms" ] value) || builtins.elem plat value.meta.platforms)
(builtins.listToAttrs (builtins.map
(e: {
name = e;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.luj.programs.alacritty;
in

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.luj.programs.dunst;
in

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.luj.programs.emacs;
in

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, inputs, ... }:
{ config, pkgs, lib, ... }:
let
cfg = config.luj.programs.hyprland;
terminal = "${pkgs.kitty}/bin/kitty";

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ config, lib, ... }:
let
cfg = config.luj.programs.ssh-client;
in

View file

@ -1,9 +1,9 @@
inputs: final: prev:
inputs: final: _prev:
with builtins;
{
importConfig = path: (mapAttrs (name: value: import (path + "/${name}/default.nix")) (final.filterAttrs (_: v: v == "directory") (readDir path)));
importConfig = path: (mapAttrs (name: _value: import (path + "/${name}/default.nix")) (final.filterAttrs (_: v: v == "directory") (readDir path)));
mkSubdomain = name: port: {
luj.nginx.enable = true;

View file

@ -1,7 +1,7 @@
inputs: lib:
let
overlay-unstable = arch: final: prev:
overlay-unstable = arch: _final: _prev:
let
nixpkgs-patched-src = (import inputs.nixpkgs { system = arch; }).applyPatches {
name = "nixpkgs-patches";
@ -16,7 +16,7 @@ let
};
in
{ host, host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }:
{ host-config, modules, nixpkgs ? inputs.nixpkgs, system ? "x86_64-linux", home-manager ? inputs.home-manager }:
nixpkgs.lib.nixosSystem {
inherit system;
lib = (nixpkgs.lib.extend (import ./default.nix inputs));
@ -43,7 +43,7 @@ nixpkgs.lib.nixosSystem {
nixpkgs.overlays = [
inputs.nur.overlay
(overlay-unstable system)
(final: prev:
(_final: prev:
{
waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ];

View file

@ -1,4 +1,4 @@
{ config, pkgs, sops-nix, lib, ... }:
{ pkgs, lib, ... }:
{

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ ... }:
{
luj.hmgr.julien = { };
}

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ ... }:
{
luj.hmgr.julien = { };
}

View file

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

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 =

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, inputs, ... }:
{ pkgs, ... }:
{
luj.hmgr.julien =

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, inputs, ... }:
{ config, pkgs, lib, ... }:
{
imports = [
./hardware.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 =

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ pkgs, ... }:
{
luj.hmgr.julien =

View file

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

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 =

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ ... }:
{
luj.hmgr.julien = {
home.stateVersion = "22.11";

View file

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

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, ... }:
{ pkgs, ... }:
{
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
boot.kernelPackages = pkgs.linuxPackages_5_15;

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ ... }:
{
sops.secrets.ssh-lisa-pub = {

View file

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

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 =

View file

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

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, inputs, nixpkgs-patched, ... }:
{ config, pkgs, lib, ... }:
{
imports =

View file

@ -1,4 +1,4 @@
{ pkgs, lib, config, ... }:
{ pkgs, ... }:
{
luj.hmgr.julien =

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.bruit;

View file

@ -2,11 +2,6 @@
with lib;
let
cfg = config.luj.buildbot;
port = "1810";
package = pkgs.buildbot-worker;
python = package.pythonModule;
home = "/var/lib/buildbot-worker";
buildbotDir = "${home}/worker";
in
{

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.deluge;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.deployment;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.docs;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, inputs, ... }:
{ config, lib, ... }:
let
cfg = config.luj.hmgr;
in

View file

@ -1,4 +1,4 @@
{ lib, pkgs, inputs, config, ... }:
{ lib, inputs, config, ... }:
with lib;
let
cfg = config.luj.homepage;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, inputs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.homer;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.hydra;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.influxdb;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.irc;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.jackett;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.jellyfin;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.lidarr;

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, inputs, ... }:
{ config, lib, ... }:
let
cfg = config.luj.mailserver;
in

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let cfg = config.luj.mediaserver;
in

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, inputs, ... }:
{ config, lib, ... }:
let
cfg = config.luj.programs.mosh;
in

View file

@ -3,7 +3,6 @@ with lib;
let
cfg = config.luj.navidrome;
port = 4533;
settingsFormat = pkgs.formats.json { };
in
{

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let cfg = config.luj.nginx;
in

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.paperless;

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.radarr;

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, inputs, ... }:
{ config, lib, ... }:
let
cfg = config.luj.secrets;
in

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.sonarr;

View file

@ -1,4 +1,4 @@
{ pkgs, config, lib, inputs, ... }:
{ config, lib, ... }:
let
cfg = config.luj.ssh-server;
in

View file

@ -1,4 +1,4 @@
{ lib, pkgs, config, ... }:
{ lib, config, ... }:
with lib;
let
cfg = config.luj.transmission;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }:
{ pkgs, ... }:
let
# bash script to let dbus know about important env variables and
# propagate them to relevent services run at the end of sway config

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ config, pkgs, ... }: {
sops.secrets.user-julien-password.neededForUsers = true;

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: {
{ pkgs, ... }: {
users.users.status = {
isNormalUser = true;