Run deadnix

This commit is contained in:
Toast 2024-03-20 13:03:05 +01:00
parent 7888103b1e
commit 430bafb0b2
49 changed files with 48 additions and 168 deletions

View file

@ -4,7 +4,6 @@
{ {
config, config,
lib, lib,
pkgs,
modulesPath, modulesPath,
... ...
}: { }: {

View file

@ -1,12 +1,7 @@
# Edit this configuration file to define what should be installed on # Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ {lib, ...}: {
config,
pkgs,
lib,
...
}: {
# Bootloader. # Bootloader.
boot.loader.systemd-boot.enable = true; boot.loader.systemd-boot.enable = true;
boot.loader.timeout = 5; boot.loader.timeout = 5;

View file

@ -4,7 +4,6 @@
{ {
config, config,
lib, lib,
pkgs,
modulesPath, modulesPath,
... ...
}: { }: {

View file

@ -4,7 +4,6 @@
{ {
config, config,
lib, lib,
pkgs,
modulesPath, modulesPath,
... ...
}: let }: let

View file

@ -4,7 +4,6 @@
{ {
config, config,
lib, lib,
pkgs,
... ...
}: { }: {
boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc"]; boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "usbhid" "rtsx_pci_sdmmc"];

View file

@ -94,7 +94,7 @@
backupFileExtension = "hm-backup"; backupFileExtension = "hm-backup";
useGlobalPkgs = true; useGlobalPkgs = true;
verbose = true; verbose = true;
users.toast = {config, ...}: { users.toast = {...}: {
home.stateVersion = "23.11"; home.stateVersion = "23.11";
xdg = { xdg = {
userDirs = { userDirs = {

View file

@ -1,5 +1,5 @@
{config, ...}: { {...}: {
home-manager.users.toast = {config, ...}: { home-manager.users.toast = {...}: {
programs.bash = { programs.bash = {
enable = true; enable = true;
enableVteIntegration = true; enableVteIntegration = true;

View file

@ -1,8 +1,4 @@
{ {...}: {
config,
pkgs,
...
}: {
# Use nix-index-database's comma wrapper # Use nix-index-database's comma wrapper
programs.nix-index-database.comma.enable = true; programs.nix-index-database.comma.enable = true;
# Run programs from the system's nixpkgs # Run programs from the system's nixpkgs

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
# The nixpkgs command-not-found script does not work with flakes, so I disable it # The nixpkgs command-not-found script does not work with flakes, so I disable it
programs.command-not-found.enable = false; programs.command-not-found.enable = false;
} }

View file

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

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: let
config,
pkgs,
...
}: let
catppuccinDelta = pkgs.fetchFromGitHub { catppuccinDelta = pkgs.fetchFromGitHub {
owner = "catppuccin"; owner = "catppuccin";
repo = "delta"; repo = "delta";

View file

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

View file

@ -1,14 +1,6 @@
{ {...}: {
config,
pkgs,
...
}: {
home-manager = { home-manager = {
users.toast = { users.toast = {...}: {
config,
pkgs,
...
}: {
programs.micro = { programs.micro = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
/* /*
environment.systemPackages = [ pkgs.nix-index ]; environment.systemPackages = [ pkgs.nix-index ];
programs.bash.interactiveShellInit = '' programs.bash.interactiveShellInit = ''

View file

@ -1,8 +1,4 @@
{ {systemPkgs, ...}: {
config,
systemPkgs,
...
}: {
nix = { nix = {
settings = { settings = {
auto-optimise-store = true; auto-optimise-store = true;

View file

@ -1,8 +1,4 @@
{ {lib, ...}: {
config,
lib,
...
}: {
services.tailscale = { services.tailscale = {
enable = true; enable = true;
useRoutingFeatures = lib.mkDefault "client"; useRoutingFeatures = lib.mkDefault "client";

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
# Enable scanning # Enable scanning
hardware.sane = { hardware.sane = {
enable = true; enable = true;

View file

@ -1,10 +1,9 @@
{ {
config,
pkgs, pkgs,
lib, lib,
... ...
}: let }: let
discordOverlay = self: super: { discordOverlay = _self: super: {
discord = super.discord.override { discord = super.discord.override {
withOpenASAR = true; withOpenASAR = true;
withVencord = true; withVencord = true;
@ -23,7 +22,7 @@
}; };
*/ */
}; };
stock-discord = self: super: { stock-discord = _self: super: {
discord = super.discord.override { discord = super.discord.override {
withOpenASAR = false; withOpenASAR = false;
withVencord = false; withVencord = false;

View file

@ -1,8 +1,4 @@
{ {lib, ...}: {
config,
lib,
...
}: {
# System wide firefox settings # System wide firefox settings
programs.firefox = { programs.firefox = {
enable = true; enable = true;

View file

@ -1,7 +1,3 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
users.users.toast.packages = [pkgs.jamesdsp]; users.users.toast.packages = [pkgs.jamesdsp];
} }

View file

@ -1,9 +1,4 @@
{ {lib, ...}: let
config,
pkgs,
lib,
...
}: let
kpxcSettings = lib.generators.toINI {} { kpxcSettings = lib.generators.toINI {} {
General = { General = {
# Not sure what changing this does, I'll leave it alone # Not sure what changing this does, I'll leave it alone
@ -32,7 +27,6 @@ in {
home-manager = { home-manager = {
extraSpecialArgs = {kpxcSettings = kpxcSettings;}; extraSpecialArgs = {kpxcSettings = kpxcSettings;};
users.toast = { users.toast = {
config,
pkgs, pkgs,
kpxcSettings, kpxcSettings,
... ...

View file

@ -1,15 +1,6 @@
{ {lib, ...}: {
config,
pkgs,
lib,
...
}: {
home-manager = { home-manager = {
users.toast = { users.toast = {pkgs, ...}: {
config,
pkgs,
...
}: {
programs.micro = { programs.micro = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,5 +1,4 @@
{ {
config,
pkgs, pkgs,
flakeSelf, flakeSelf,
... ...

View file

@ -1,9 +1,4 @@
{ {flakeSelf, ...}: {
config,
pkgs,
flakeSelf,
...
}: {
services.flatpak.enable = true; services.flatpak.enable = true;
home-manager = { home-manager = {

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.pipewire = { services.pipewire = {
enable = true; enable = true;
pulse.enable = true; pulse.enable = true;

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.printing = { services.printing = {
enable = true; enable = true;
startWhenNeeded = true; startWhenNeeded = true;

View file

@ -1,8 +1,4 @@
{ {...}: {
config,
pkgs,
...
}: {
programs.ssh.startAgent = true; programs.ssh.startAgent = true;
/* /*
Home assistant added an option that does this Home assistant added an option that does this

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
imports = [ imports = [
./steam.nix ./steam.nix
./mangohud.nix ./mangohud.nix

View file

@ -1,5 +1,5 @@
{config, ...}: { {...}: {
home-manager.users.toast = {config, ...}: { home-manager.users.toast = {...}: {
programs.mangohud = { programs.mangohud = {
enable = true; enable = true;
# This only works for Vulkan, openGL programs still need the mangohud wrapper # This only works for Vulkan, openGL programs still need the mangohud wrapper

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
config,
pkgs,
...
}: {
environment.systemPackages = with config; [ environment.systemPackages = with config; [
nur.repos.ataraxiasjel.rpcs3 nur.repos.ataraxiasjel.rpcs3
]; ];

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
/* /*
This file will sync saves for games that don't have cloud saves This file will sync saves for games that don't have cloud saves
TODO: turn this into a module eventually TODO: turn this into a module eventually

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
imports = [ imports = [
./kate.nix ./kate.nix
./firefox.nix ./firefox.nix

View file

@ -1,8 +1,4 @@
{ {...}: {
config,
pkgs,
...
}: {
# KDE specific firefox settings # KDE specific firefox settings
programs.firefox = { programs.firefox = {
policies = { policies = {

View file

@ -1,8 +1,4 @@
{ {...}: {
pkgs,
lib,
...
}: {
home-manager.users.toast = { home-manager.users.toast = {
programs.git = { programs.git = {
extraConfig = { extraConfig = {

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
environment.systemPackages = [pkgs.kate]; environment.systemPackages = [pkgs.kate];
# Use kwrite to open text files, and kate if I'm developing stuff # Use kwrite to open text files, and kate if I'm developing stuff

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
imports = [ imports = [
./virtualbox.nix ./virtualbox.nix
./idea.nix ./idea.nix

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}:
config,
pkgs,
...
}:
with pkgs; { with pkgs; {
environment.systemPackages = with jetbrains; [ environment.systemPackages = with jetbrains; [
idea-ultimate idea-ultimate

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
# Need to use visual studio 2019 :( # Need to use visual studio 2019 :(
virtualisation.virtualbox.host = { virtualisation.virtualbox.host = {
enable = true; enable = true;

View file

@ -1,5 +1,4 @@
{ {
config,
pkgs, pkgs,
lib, lib,
flakeSelf, flakeSelf,

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.syncthing.settings.folders = { services.syncthing.settings.folders = {
"school-things" = { "school-things" = {
label = "School things"; label = "School things";

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: let
config,
pkgs,
...
}: let
booDark = pkgs.fetchzip { booDark = pkgs.fetchzip {
url = "https://github.com/adorade/boodark/releases/download/v1.1.1/boodark-v1.1.1.zip"; url = "https://github.com/adorade/boodark/releases/download/v1.1.1/boodark-v1.1.1.zip";
hash = "sha256-GE/FtFlU6A4I9sRyjMhQIidGpDLD99Wzzngz3QI/rSo="; hash = "sha256-GE/FtFlU6A4I9sRyjMhQIidGpDLD99Wzzngz3QI/rSo=";

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.avahi = { services.avahi = {
openFirewall = true; openFirewall = true;
publish = { publish = {

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
config,
pkgs,
...
}: {
# Beep as soon as possible in the initrd # Beep as soon as possible in the initrd
boot.initrd = { boot.initrd = {
kernelModules = ["pcspkr"]; kernelModules = ["pcspkr"];

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
# I prefer using the go implementation # I prefer using the go implementation
services.endlessh-go = { services.endlessh-go = {
enable = true; enable = true;

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
config,
lib,
...
}: {
services = { services = {
nfs.server = { nfs.server = {
enable = true; enable = true;

View file

@ -1,8 +1,4 @@
{ {config, ...}: {
config,
lib,
...
}: {
services = { services = {
samba = { samba = {
enable = true; enable = true;

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.openssh = { services.openssh = {
enable = true; enable = true;
settings = { settings = {

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
services.tailscale = { services.tailscale = {
# This is needed for being an exit node # This is needed for being an exit node
useRoutingFeatures = "server"; useRoutingFeatures = "server";

View file

@ -1,4 +1,4 @@
{config, ...}: { {...}: {
specialisation.traefikEnableWebUI.configuration.services.traefik = { specialisation.traefikEnableWebUI.configuration.services.traefik = {
staticConfigOptions = { staticConfigOptions = {
api = { api = {