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 = {
};
perSystem = {
config,
pkgs,
...
}: rec {
perSystem = {pkgs, ...}: rec {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
alejandra

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +1,4 @@
{
pkgs,
config,
...
}: {
{pkgs, ...}: {
# authentication needs to be done manually once
# TODO automatic authentication thing
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 = [
./programs
./shell/zsh.nix
#./shell/starship.nix
];
}

View file

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

View file

@ -1,8 +1,4 @@
{
lib,
config,
...
}: {
{config, ...}: {
programs.git = {
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
l = inputs.nixpkgs.lib;
in (builtins.mapAttrs (n: v:
in (builtins.mapAttrs (_n: v:
l.nixosSystem {
inherit specialArgs;
modules = v.imports;

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,69 +1,8 @@
{
lib,
config,
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 = [
#./statistics
];

View file

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

View file

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

View file

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