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: outputs = { self, nixpkgs, ... }@inputs:
let let
lib = nixpkgs.lib.extend (import ./lib inputs); 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; mkMachine = import ./lib/mkmachine.nix inputs lib;
nixpkgs_plats = builtins.listToAttrs (builtins.map nixpkgs_plats = builtins.listToAttrs (builtins.map
@ -118,7 +118,7 @@
(plat: { (plat: {
name = plat; name = plat;
value = 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 (builtins.listToAttrs (builtins.map
(e: { (e: {
name = e; name = e;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,9 +1,9 @@
inputs: final: prev: inputs: final: _prev:
with builtins; 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: { mkSubdomain = name: port: {
luj.nginx.enable = true; luj.nginx.enable = true;

View file

@ -1,7 +1,7 @@
inputs: lib: inputs: lib:
let let
overlay-unstable = arch: final: prev: overlay-unstable = arch: _final: _prev:
let let
nixpkgs-patched-src = (import inputs.nixpkgs { system = arch; }).applyPatches { nixpkgs-patched-src = (import inputs.nixpkgs { system = arch; }).applyPatches {
name = "nixpkgs-patches"; name = "nixpkgs-patches";
@ -16,7 +16,7 @@ let
}; };
in 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 { nixpkgs.lib.nixosSystem {
inherit system; inherit system;
lib = (nixpkgs.lib.extend (import ./default.nix inputs)); lib = (nixpkgs.lib.extend (import ./default.nix inputs));
@ -43,7 +43,7 @@ nixpkgs.lib.nixosSystem {
nixpkgs.overlays = [ nixpkgs.overlays = [
inputs.nur.overlay inputs.nur.overlay
(overlay-unstable system) (overlay-unstable system)
(final: prev: (_final: prev:
{ {
waybar = prev.waybar.overrideAttrs (oldAttrs: { waybar = prev.waybar.overrideAttrs (oldAttrs: {
mesonFlags = oldAttrs.mesonFlags ++ [ "-Dexperimental=true" ]; 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 = imports =

View file

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

View file

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

View file

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

View file

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

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 = imports =

View file

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

View file

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

View file

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

View file

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

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 = imports =

View file

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

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, modulesPath, ... }: { pkgs, modulesPath, ... }:
{ {
imports = 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.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "sd_mod" "sr_mod" ];
boot.kernelPackages = pkgs.linuxPackages_5_15; boot.kernelPackages = pkgs.linuxPackages_5_15;

View file

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

View file

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

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 = 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 = imports =

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,4 +1,4 @@
{ config, pkgs, lib, ... }: { pkgs, ... }:
let let
# bash script to let dbus know about important env variables and # bash script to let dbus know about important env variables and
# propagate them to relevent services run at the end of sway config # 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; sops.secrets.user-julien-password.neededForUsers = true;

View file

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