moar options

This commit is contained in:
Kopatz
2024-04-16 21:53:03 +02:00
parent 409d684b17
commit 468c978e62
11 changed files with 141 additions and 100 deletions

View File

@@ -91,8 +91,6 @@
./modules/ecryptfs.nix ./modules/ecryptfs.nix
./modules/services/syncthing.nix ./modules/services/syncthing.nix
./modules/fh/scanning.nix ./modules/fh/scanning.nix
./modules/nix/ld.nix
./modules/nix/settings.nix
./modules/support/ntfs.nix ./modules/support/ntfs.nix
./modules/thunderbolt.nix ./modules/thunderbolt.nix
./modules/vmware-host.nix ./modules/vmware-host.nix

View File

@@ -5,21 +5,7 @@
#../fh/scanning.nix #../fh/scanning.nix
../flatpak.nix ../flatpak.nix
../gpg.nix ../gpg.nix
../graphical/audio.nix
../graphical/code.nix
../graphical/emulators.nix
../graphical/gamemode.nix
../graphical/games.nix
../graphical/ime.nix
../graphical/obs.nix
../graphical/openrgb.nix
../graphical/plasma.nix
../graphical/shared.nix
../kernel.nix # use latest kernel ../kernel.nix # use latest kernel
../nix/index.nix
../nix/ld.nix
../nix/settings.nix
../noise-supression.nix
../services/syncthing.nix ../services/syncthing.nix
../static-ip.nix ../static-ip.nix
../support/ntfs.nix ../support/ntfs.nix
@@ -31,6 +17,11 @@
virt-manager.enable = true; virt-manager.enable = true;
nftables.enable = true; nftables.enable = true;
cli-tools.enable = true; cli-tools.enable = true;
nix = {
index.enable = true;
ld.enable = true;
settings.enable = true;
};
hardware = { hardware = {
nvidia.enable = true; nvidia.enable = true;
firmware.enable = true; firmware.enable = true;
@@ -44,6 +35,7 @@
gamemode.enable = true; gamemode.enable = true;
games.enable = true; games.enable = true;
ime.enable = true; ime.enable = true;
noise-supression.enable = true;
obs.enable = true; obs.enable = true;
openrgb.enable = true; openrgb.enable = true;
plasma.enable = true; plasma.enable = true;

View File

@@ -8,6 +8,10 @@
tmpfs.enable = true; tmpfs.enable = true;
wireshark.enable = true; wireshark.enable = true;
virt-manager.enable = true; virt-manager.enable = true;
nix = {
ld.enable = true;
settings.enable = true;
};
hardware = { hardware = {
firmware.enable = true; firmware.enable = true;
ssd.enable = true; ssd.enable = true;

View File

@@ -28,13 +28,15 @@
../hdd-spindown.nix ../hdd-spindown.nix
../logging.nix ../logging.nix
../motd.nix ../motd.nix
../nix/settings.nix
../static-ip.nix ../static-ip.nix
]; ];
kop = { kop = {
cli-tools.enable = true; cli-tools.enable = true;
tmpfs.enable = true; tmpfs.enable = true;
nix = {
settings.enable = true;
};
hardware = { hardware = {
firmware.enable = true; firmware.enable = true;
ssd.enable = true; ssd.enable = true;

View File

@@ -9,6 +9,7 @@
./gnome.nix ./gnome.nix
./ime.nix ./ime.nix
./lxqt.nix ./lxqt.nix
./noise-supression.nix
./obs.nix ./obs.nix
./openrgb.nix ./openrgb.nix
./plasma.nix ./plasma.nix

View File

@@ -0,0 +1,17 @@
{config, lib, pkgs, ...}:
with lib;
let
cfg = config.kop.graphical.noise-supression;
in
{
options.kop.graphical.noise-supression = {
enable = mkEnableOption "Enables noise-supression";
};
config = mkIf cfg.enable {
programs.noisetorch.enable = true;
environment.systemPackages = [
pkgs.easyeffects
];
};
}

View File

@@ -1,6 +1,8 @@
{ pkgs, config, ...}: { pkgs, config, ...}:
{ {
imports = [ imports = [
./index.nix
./ld.nix
./settings.nix
]; ];
} }

View File

@@ -1,7 +1,19 @@
{config, lib, ...}:
with lib;
let
cfg = config.kop.nix.index;
in
{ {
programs.command-not-found.enable = false; options.kop.nix.index = {
programs.nix-index = { enable = mkEnableOption "Enables nix index";
enable = true; };
enableZshIntegration=true;
config = mkIf cfg.enable {
programs.command-not-found.enable = false;
programs.nix-index = {
enable = true;
enableZshIntegration=true;
};
}; };
} }

View File

@@ -1,67 +1,77 @@
{ pkgs, ... }: {config, lib, pkgs, ... }:
with lib;
let
cfg = config.kop.nix.ld;
in
{ {
programs.nix-ld.enable = true; options.kop.nix.ld = {
programs.nix-ld.libraries = with pkgs; [ enable = mkEnableOption "Enables nix ld";
acl };
alsa-lib
at-spi2-atk config = mkIf cfg.enable {
at-spi2-core programs.nix-ld.enable = true;
atk programs.nix-ld.libraries = with pkgs; [
attr acl
bzip2 alsa-lib
cairo at-spi2-atk
cups at-spi2-core
curl atk
dbus.lib attr
expat bzip2
fontconfig.lib cairo
freetype cups
gdk-pixbuf curl
glib dbus.lib
gtk3 expat
icu fontconfig.lib
libGL freetype
libappindicator-gtk3 gdk-pixbuf
libdrm glib
libgcc.lib gtk3
libglvnd icu
libkrb5 libGL
libnotify libappindicator-gtk3
libpulseaudio libdrm
libsodium libgcc.lib
libssh libglvnd
libusb1 libkrb5
libuuid libnotify
libxkbcommon libpulseaudio
libxml2 libsodium
mesa libssh
nspr libusb1
nspr libuuid
nss libxkbcommon
openssl libxml2
pango mesa
pipewire nspr
stdenv.cc.cc nspr
systemd nss
util-linux openssl
xorg.libX11 pango
xorg.libXScrnSaver pipewire
xorg.libXau stdenv.cc.cc
xorg.libXcomposite systemd
xorg.libXcursor util-linux
xorg.libXdamage xorg.libX11
xorg.libXdmcp xorg.libXScrnSaver
xorg.libXext xorg.libXau
xorg.libXfixes xorg.libXcomposite
xorg.libXi xorg.libXcursor
xorg.libXrandr xorg.libXdamage
xorg.libXrender xorg.libXdmcp
xorg.libXtst xorg.libXext
xorg.libxcb xorg.libXfixes
xorg.libxkbfile xorg.libXi
xorg.libxshmfence xorg.libXrandr
xz xorg.libXrender
zlib xorg.libXtst
zstd xorg.libxcb
]; xorg.libxkbfile
xorg.libxshmfence
xz
zlib
zstd
];
};
} }

View File

@@ -1,8 +1,18 @@
{ inputs, config, pkgsVersion, ... }: {lib, inputs, config, pkgsVersion, ... }:
with lib;
let
cfg = config.kop.nix.settings;
in
{ {
nix.optimise.automatic = true; options.kop.nix.settings = {
nix.settings.experimental-features = [ "nix-command" "flakes" ]; enable = mkEnableOption "Enables various nix settings";
nix.registry.nixpkgs.flake = pkgsVersion; };
nix.nixPath = ["nixpkgs=flake:nixpkgs"];
home-manager.users.${config.mainUser.name}.home.sessionVariables.NIX_PATH = "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}"; config = mkIf cfg.enable {
nix.optimise.automatic = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nix.registry.nixpkgs.flake = pkgsVersion;
nix.nixPath = ["nixpkgs=flake:nixpkgs"];
home-manager.users.${config.mainUser.name}.home.sessionVariables.NIX_PATH = "nixpkgs=flake:nixpkgs$\{NIX_PATH:+:$NIX_PATH}";
};
} }

View File

@@ -1,7 +0,0 @@
{pkgs, ...}:
{
programs.noisetorch.enable = true;
environment.systemPackages = [
pkgs.easyeffects
];
}