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/services/syncthing.nix
./modules/fh/scanning.nix
./modules/nix/ld.nix
./modules/nix/settings.nix
./modules/support/ntfs.nix
./modules/thunderbolt.nix
./modules/vmware-host.nix

View File

@@ -5,21 +5,7 @@
#../fh/scanning.nix
../flatpak.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
../nix/index.nix
../nix/ld.nix
../nix/settings.nix
../noise-supression.nix
../services/syncthing.nix
../static-ip.nix
../support/ntfs.nix
@@ -31,6 +17,11 @@
virt-manager.enable = true;
nftables.enable = true;
cli-tools.enable = true;
nix = {
index.enable = true;
ld.enable = true;
settings.enable = true;
};
hardware = {
nvidia.enable = true;
firmware.enable = true;
@@ -44,6 +35,7 @@
gamemode.enable = true;
games.enable = true;
ime.enable = true;
noise-supression.enable = true;
obs.enable = true;
openrgb.enable = true;
plasma.enable = true;

View File

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

View File

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

View File

@@ -9,6 +9,7 @@
./gnome.nix
./ime.nix
./lxqt.nix
./noise-supression.nix
./obs.nix
./openrgb.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, ...}:
{
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;
programs.nix-index = {
enable = true;
enableZshIntegration=true;
options.kop.nix.index = {
enable = mkEnableOption "Enables nix index";
};
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;
programs.nix-ld.libraries = with pkgs; [
acl
alsa-lib
at-spi2-atk
at-spi2-core
atk
attr
bzip2
cairo
cups
curl
dbus.lib
expat
fontconfig.lib
freetype
gdk-pixbuf
glib
gtk3
icu
libGL
libappindicator-gtk3
libdrm
libgcc.lib
libglvnd
libkrb5
libnotify
libpulseaudio
libsodium
libssh
libusb1
libuuid
libxkbcommon
libxml2
mesa
nspr
nspr
nss
openssl
pango
pipewire
stdenv.cc.cc
systemd
util-linux
xorg.libX11
xorg.libXScrnSaver
xorg.libXau
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXdmcp
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
xorg.libxcb
xorg.libxkbfile
xorg.libxshmfence
xz
zlib
zstd
];
options.kop.nix.ld = {
enable = mkEnableOption "Enables nix ld";
};
config = mkIf cfg.enable {
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
acl
alsa-lib
at-spi2-atk
at-spi2-core
atk
attr
bzip2
cairo
cups
curl
dbus.lib
expat
fontconfig.lib
freetype
gdk-pixbuf
glib
gtk3
icu
libGL
libappindicator-gtk3
libdrm
libgcc.lib
libglvnd
libkrb5
libnotify
libpulseaudio
libsodium
libssh
libusb1
libuuid
libxkbcommon
libxml2
mesa
nspr
nspr
nss
openssl
pango
pipewire
stdenv.cc.cc
systemd
util-linux
xorg.libX11
xorg.libXScrnSaver
xorg.libXau
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXdmcp
xorg.libXext
xorg.libXfixes
xorg.libXi
xorg.libXrandr
xorg.libXrender
xorg.libXtst
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;
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}";
options.kop.nix.settings = {
enable = mkEnableOption "Enables various nix settings";
};
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
];
}