cleanup w/ deadnix

This commit is contained in:
xunuwu 2024-03-17 11:26:16 +01:00
parent 4f169eeb84
commit 5ba1d810d4
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI
27 changed files with 23 additions and 170 deletions

View file

@ -9,11 +9,7 @@
]; ];
flake = { flake = {
}; };
perSystem = { perSystem = {pkgs, ...}: rec {
config,
pkgs,
...
}: rec {
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
packages = with pkgs; [ packages = with pkgs; [
alejandra alejandra

View file

@ -1,9 +1,4 @@
{ {
lib,
self,
inputs,
...
}: {
imports = [ imports = [
]; ];

View file

@ -1,7 +1,6 @@
{ {
self, self,
inputs, inputs,
system,
pkgs, pkgs,
... ...
}: let }: let
@ -25,8 +24,6 @@
}; };
inherit (inputs.home-manager.lib) homeManagerConfiguration; inherit (inputs.home-manager.lib) homeManagerConfiguration;
pkgs = inputs.nixpkgs.legacyPackages.${system};
in { in {
# we need to pass this to NixOS' HM module # we need to pass this to NixOS' HM module
_module.args = {inherit homeImports;}; _module.args = {inherit homeImports;};

View file

@ -1,4 +1,4 @@
{lib, ...}: { {...}: {
imports = [ imports = [
../../editors/nvim.nix ../../editors/nvim.nix
../../terminal/shell/zsh.nix ../../terminal/shell/zsh.nix

View file

@ -1,4 +1,4 @@
{lib, ...}: { {...}: {
imports = [ imports = [
../../terminal ../../terminal
../../editors/nvim.nix ../../editors/nvim.nix

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
pkgs,
self,
...
}: {
home.packages = with pkgs; [ home.packages = with pkgs; [
heroic heroic
lutris lutris

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {
programs.mpv = { programs.mpv = {
enable = true; enable = true;
config = { config = {

View file

@ -1,7 +1,3 @@
{ {pkgs, ...}: {
pkgs,
lib,
...
}: {
home.packages = [pkgs.keepassxc]; home.packages = [pkgs.keepassxc];
} }

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
pkgs,
config,
...
}: {
# authentication needs to be done manually once # authentication needs to be done manually once
# TODO automatic authentication thing # TODO automatic authentication thing
home.packages = with pkgs; [yams]; home.packages = with pkgs; [yams];

View file

@ -1,11 +1,6 @@
{config, ...}: let {...}: {
data = config.xdg.dataHome;
conf = config.xdg.configHome;
cache = config.xdg.cacheHome;
in {
imports = [ imports = [
./programs ./programs
./shell/zsh.nix ./shell/zsh.nix
#./shell/starship.nix
]; ];
} }

View file

@ -1,3 +1,3 @@
{pkgs, ...}: { {
programs.nix-index-database.comma.enable = true; programs.nix-index-database.comma.enable = true;
} }

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
lib,
config,
...
}: {
programs.git = { programs.git = {
enable = true; enable = true;
delta.enable = true; delta.enable = true;

View file

@ -1,26 +0,0 @@
{config, ...}: {
home.sessionVariables.STARSHIP_CACHE = "${config.xdg.cacheHome}/starship";
programs.starship = {
enable = true;
enableZshIntegration = true;
settings = {
character = {
success_symbol = "[](bold green)";
error_symbol = "[](bold red)";
};
git_status = {
deleted = "";
modified = "";
staged = "";
stashed = "";
};
nix_shell = {
symbol = " ";
heuristic = true;
};
};
};
}

View file

@ -103,7 +103,7 @@ in {
}; };
flake.nixosConfigurations = let flake.nixosConfigurations = let
l = inputs.nixpkgs.lib; l = inputs.nixpkgs.lib;
in (builtins.mapAttrs (n: v: in (builtins.mapAttrs (_n: v:
l.nixosSystem { l.nixosSystem {
inherit specialArgs; inherit specialArgs;
modules = v.imports; modules = v.imports;

View file

@ -1,9 +1,4 @@
{ {...}: {
inputs,
modulesPath,
lib,
...
}: {
imports = [ imports = [
./tools.nix ./tools.nix
./sway.nix ./sway.nix

View file

@ -1,7 +1,6 @@
{ {
pkgs, pkgs,
inputs, inputs,
lib,
... ...
}: { }: {
imports = [ imports = [

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {...}: {
boot = { boot = {
initrd = { initrd = {
availableKernelModules = [ availableKernelModules = [

View file

@ -1,8 +1,4 @@
{ {inputs, ...}: {
inputs,
lib,
...
}: {
imports = [ imports = [
inputs.sops-nix.nixosModules.sops inputs.sops-nix.nixosModules.sops
./global ./global

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
pkgs,
config,
...
}: {
boot = { boot = {
initrd = { initrd = {
systemd.enable = true; systemd.enable = true;

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
pkgs,
inputs,
...
}: {
environment.systemPackages = [pkgs.steam-run]; environment.systemPackages = [pkgs.steam-run];
programs.nix-ld.enable = true; programs.nix-ld.enable = true;

View file

@ -1,4 +1,4 @@
{lib, ...}: { {...}: {
imports = [ imports = [
./xclip.nix ./xclip.nix
]; ];

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {...}: {
hardware.opengl = { hardware.opengl = {
enable = true; enable = true;
driSupport = true; driSupport = true;

View file

@ -1,4 +1,4 @@
{self, ...}: { {...}: {
nixpkgs = { nixpkgs = {
config.allowUnfree = true; config.allowUnfree = true;
config.permittedInsecurePackages = []; config.permittedInsecurePackages = [];

View file

@ -1,69 +1,8 @@
{ {
lib,
config, config,
pkgs, pkgs,
... ...
}: let }: {
hostname = config.networking.hostName;
dashyConfig = {
pageInfo = {
#title = "Home Lab";
};
sections = [
{
name = "*arr";
icon = "hl-servarr";
items = [
{
title = "Sonarr";
icon = "hl-sonarr";
url = "http://${hostname}:8989";
}
{
title = "Radarr";
icon = "hl-radarr";
url = "http://${hostname}:7878";
}
{
title = "Prowlarr";
icon = "hl-prowlarr";
url = "http://${hostname}:9696";
}
];
}
{
name = "Management";
items = [
{
title = "Jellyseerr";
icon = "hl-jellyseerr";
url = "http://${hostname}:5055";
}
{
title = "Transmission";
icon = "hl-transmission";
url = "http://${hostname}:9091";
}
];
}
{
name = "Music";
items = [
{
title = "Betanin";
icon = "hl-betanin";
url = "http://${hostname}:9393";
}
{
title = "Slskd";
icon = "hl-soulseek";
url = "http://${hostname}:5030";
}
];
}
];
};
in {
imports = [ imports = [
#./statistics #./statistics
]; ];

View file

@ -1,4 +1,4 @@
{pkgs, ...}: { {...}: {
services = { services = {
dbus.implementation = "broker"; dbus.implementation = "broker";

View file

@ -1,9 +1,4 @@
{ {...}: {
lib,
config,
self,
...
}: {
services.transmission = { services.transmission = {
enable = true; enable = true;
}; };

View file

@ -1,8 +1,4 @@
{ {...}: {
config,
pkgs,
...
}: {
#networking.wg-quick.interfaces."wg0".configFile = config.sops.secrets.wireguard.path; #networking.wg-quick.interfaces."wg0".configFile = config.sops.secrets.wireguard.path;
# Sets tailscale to a high priority, to make sure tailscale # Sets tailscale to a high priority, to make sure tailscale