summaryrefslogtreecommitdiff
path: root/modules/core
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-22 15:15:46 -0700
committerFuwn <[email protected]>2024-09-22 15:15:46 -0700
commit08d4be5b51bb595e55555cc93c47f7adc77ed1c3 (patch)
treeb89c6b008116fba278b9fc5238c8a1a0f3efbbec /modules/core
parentcore: move variables and virtualisation to desktop (diff)
downloadnixos-config-08d4be5b51bb595e55555cc93c47f7adc77ed1c3.tar.xz
nixos-config-08d4be5b51bb595e55555cc93c47f7adc77ed1c3.zip
core: move harware and software to desktop
Diffstat (limited to 'modules/core')
-rw-r--r--modules/core/default.nix2
-rw-r--r--modules/core/hardware/bluetooth.nix19
-rw-r--r--modules/core/hardware/cpu.nix21
-rw-r--r--modules/core/hardware/default.nix14
-rw-r--r--modules/core/hardware/tpm.nix18
-rw-r--r--modules/core/hardware/usb.nix10
-rw-r--r--modules/core/hardware/yubikey.nix18
-rw-r--r--modules/core/software/aagl.nix9
-rw-r--r--modules/core/software/access/default.nix7
-rw-r--r--modules/core/software/access/gnupg.nix18
-rw-r--r--modules/core/software/access/mosh.nix6
-rw-r--r--modules/core/software/access/ssh.nix39
-rw-r--r--modules/core/software/boot/default.nix30
-rw-r--r--modules/core/software/boot/grub.nix22
-rw-r--r--modules/core/software/boot/systemd-boot.nix9
-rw-r--r--modules/core/software/default.nix40
-rw-r--r--modules/core/software/desktop/default.nix6
-rw-r--r--modules/core/software/desktop/gtk.nix8
-rw-r--r--modules/core/software/desktop/xdg-portal.nix15
-rw-r--r--modules/core/software/encryption.nix16
-rw-r--r--modules/core/software/gaming.nix38
-rw-r--r--modules/core/software/input.nix25
-rw-r--r--modules/core/software/locale.nix9
-rw-r--r--modules/core/software/multimedia/audio/default.nix6
-rw-r--r--modules/core/software/multimedia/audio/pipewire.nix164
-rw-r--r--modules/core/software/multimedia/audio/wireplumber.nix42
-rw-r--r--modules/core/software/multimedia/default.nix6
-rw-r--r--modules/core/software/multimedia/video/default.nix11
-rw-r--r--modules/core/software/multimedia/video/graphics.nix21
-rw-r--r--modules/core/software/multimedia/video/libva.nix7
-rw-r--r--modules/core/software/multimedia/video/nvidia.nix38
-rw-r--r--modules/core/software/multimedia/video/vulkan.nix9
-rw-r--r--modules/core/software/programs.nix22
-rw-r--r--modules/core/software/services/adb.nix12
-rw-r--r--modules/core/software/services/ananicy.nix8
-rw-r--r--modules/core/software/services/dbus.nix15
-rw-r--r--modules/core/software/services/default.nix24
-rw-r--r--modules/core/software/services/libinput.nix13
-rw-r--r--modules/core/software/services/logrotate.nix24
-rw-r--r--modules/core/software/services/ollama.nix6
-rw-r--r--modules/core/software/services/printing.nix19
-rw-r--r--modules/core/software/services/xserver.nix10
-rw-r--r--modules/core/software/shell.nix7
-rw-r--r--modules/core/software/systemd.nix11
-rw-r--r--modules/core/software/users.nix46
45 files changed, 0 insertions, 920 deletions
diff --git a/modules/core/default.nix b/modules/core/default.nix
index ef9131a..f44e8ff 100644
--- a/modules/core/default.nix
+++ b/modules/core/default.nix
@@ -1,9 +1,7 @@
{
imports = [
- ./hardware
./networking
./nix
./security
- ./software
];
}
diff --git a/modules/core/hardware/bluetooth.nix b/modules/core/hardware/bluetooth.nix
deleted file mode 100644
index 9737504..0000000
--- a/modules/core/hardware/bluetooth.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{ pkgs, ... }:
-{
- boot.kernelParams = [ "btusb" ];
- services.blueman.enable = true;
-
- hardware.bluetooth = {
- enable = true;
- powerOnBoot = true;
- package = pkgs.bluez5-experimental;
- disabledPlugins = [ "sap" ];
- # hsphfpd.enable = true;
-
- settings.General = {
- JustWorksRepairing = "always";
- MultiProfile = "multiple";
- Experimental = true;
- };
- };
-}
diff --git a/modules/core/hardware/cpu.nix b/modules/core/hardware/cpu.nix
deleted file mode 100644
index 1ac3a27..0000000
--- a/modules/core/hardware/cpu.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{ pkgs, config, ... }:
-{
- environment.systemPackages = [ pkgs.amdctl ];
-
- powerManagement = {
- enable = true;
- cpuFreqGovernor = "performance";
- };
-
- boot = {
- kernelModules = [
- # "kvm-amd"
- "amd-pstate"
- "zenpower"
- "msr"
- ];
-
- kernelParams = [ "amd_iommu=on" ];
- extraModulePackages = [ config.boot.kernelPackages.zenpower ];
- };
-}
diff --git a/modules/core/hardware/default.nix b/modules/core/hardware/default.nix
deleted file mode 100644
index 167e7c7..0000000
--- a/modules/core/hardware/default.nix
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- imports = [
- ./cpu.nix
- ./bluetooth.nix
- ./usb.nix
- ./tpm.nix
- ./yubikey.nix
- ];
-
- hardware = {
- enableRedistributableFirmware = true;
- enableAllFirmware = true;
- };
-}
diff --git a/modules/core/hardware/tpm.nix b/modules/core/hardware/tpm.nix
deleted file mode 100644
index b84551e..0000000
--- a/modules/core/hardware/tpm.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{ pkgs, ... }:
-{
- security.tpm2 = {
- enable = true;
- applyUdevRules = true;
- abrmd.enable = true;
- tctiEnvironment.enable = true;
- pkcs11.enable = true;
- };
-
- environment.systemPackages = with pkgs; [
- tpm2-tools
- tpm2-tss
- tpm2-abrmd
- ];
-
- boot.kernelModules = [ "uhid" ];
-}
diff --git a/modules/core/hardware/usb.nix b/modules/core/hardware/usb.nix
deleted file mode 100644
index f697761..0000000
--- a/modules/core/hardware/usb.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{ pkgs, ... }:
-{
- environment.systemPackages = with pkgs; [
- usbutils
- lm_sensors
- pciutils
- ];
-
- boot.kernelParams = [ "usbcore.autosuspend=-1" ];
-}
diff --git a/modules/core/hardware/yubikey.nix b/modules/core/hardware/yubikey.nix
deleted file mode 100644
index 6bd4a5c..0000000
--- a/modules/core/hardware/yubikey.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{ pkgs, ... }:
-{
- hardware.gpgSmartcards.enable = true;
-
- services = {
- pcscd.enable = true;
- udev.packages = [ pkgs.yubikey-personalization ];
- };
-
- environment.systemPackages = with pkgs; [
- yubikey-manager
- yubikey-manager-qt
- yubikey-personalization
- yubikey-personalization-gui
- yubico-piv-tool
- yubioath-flutter
- ];
-}
diff --git a/modules/core/software/aagl.nix b/modules/core/software/aagl.nix
deleted file mode 100644
index b164edb..0000000
--- a/modules/core/software/aagl.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ inputs, ... }:
-let
- inherit (inputs) aagl;
-in
-{
- imports = [ aagl.nixosModules.default ];
- nix.settings = aagl.nixConfig;
- programs.anime-game-launcher.enable = true;
-}
diff --git a/modules/core/software/access/default.nix b/modules/core/software/access/default.nix
deleted file mode 100644
index 7db7629..0000000
--- a/modules/core/software/access/default.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- imports = [
- ./gnupg.nix
- ./mosh.nix
- ./ssh.nix
- ];
-}
diff --git a/modules/core/software/access/gnupg.nix b/modules/core/software/access/gnupg.nix
deleted file mode 100644
index e60da30..0000000
--- a/modules/core/software/access/gnupg.nix
+++ /dev/null
@@ -1,18 +0,0 @@
-{ pkgs, ... }:
-{
- programs.gnupg.agent = {
- enable = true;
- enableSSHSupport = true;
- pinentryPackage = pkgs.pinentry-curses;
- enableExtraSocket = true;
- enableBrowserSocket = true;
-
- settings = {
- enable-ssh-support = "";
- ttyname = "$GPG_TTY";
- default-cache-ttl = 34560000; # 60
- max-cache-ttl = 34560000; # 120
- allow-loopback-pinentry = "";
- };
- };
-}
diff --git a/modules/core/software/access/mosh.nix b/modules/core/software/access/mosh.nix
deleted file mode 100644
index c9af5bf..0000000
--- a/modules/core/software/access/mosh.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- programs.mosh = {
- enable = true;
- openFirewall = false;
- };
-}
diff --git a/modules/core/software/access/ssh.nix b/modules/core/software/access/ssh.nix
deleted file mode 100644
index 665532f..0000000
--- a/modules/core/software/access/ssh.nix
+++ /dev/null
@@ -1,39 +0,0 @@
-{ lib, config, ... }:
-{
- programs.ssh.startAgent = false;
- security.pam.sshAgentAuth.enable = true;
-
- services = {
- fail2ban.jails.sshd.settings = {
- enabled = true;
- filter = "sshd[mode=aggressive]";
- port = lib.strings.concatStringsSep "," (map toString config.services.openssh.ports);
- };
-
- openssh = {
- enable = true;
- ports = [ 22 ];
- openFirewall = false;
-
- settings = {
- StreamLocalBindUnlink = "yes";
- GatewayPorts = "clientspecified";
-
- KexAlgorithms = [
- "curve25519-sha256"
- "diffie-hellman-group16-sha512"
- "diffie-hellman-group18-sha512"
- "diffie-hellman-group-exchange-sha256"
- ];
-
- Macs = [
- ];
- };
- };
- };
-}
diff --git a/modules/core/software/boot/default.nix b/modules/core/software/boot/default.nix
deleted file mode 100644
index 9fe77a0..0000000
--- a/modules/core/software/boot/default.nix
+++ /dev/null
@@ -1,30 +0,0 @@
-{ pkgs, ... }:
-{
- imports = [
- ./grub.nix
- ./systemd-boot.nix
- ];
-
- boot = {
- tmp.cleanOnBoot = true;
- crashDump.enable = false;
- consoleLogLevel = 3;
- kernelPackages = pkgs.linuxPackages_zen;
- binfmt.emulatedSystems = [ "aarch64-linux" ];
-
- kernelParams = [
- "iommu=pt"
- "threadirqs"
- ];
-
- loader = {
- timeout = 1;
- generationsDir.copyKernels = true;
-
- efi = {
- canTouchEfiVariables = true;
- efiSysMountPoint = "/boot";
- };
- };
- };
-}
diff --git a/modules/core/software/boot/grub.nix b/modules/core/software/boot/grub.nix
deleted file mode 100644
index 3932713..0000000
--- a/modules/core/software/boot/grub.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ pkgs, ... }:
-{
- boot.loader.grub = {
- enable = true;
- device = "nodev";
- efiSupport = true;
- useOSProber = true;
- memtest86.enable = true;
- gfxmodeEfi = "1920x1080x32";
- gfxmodeBios = "1920x1080x32";
- gfxpayloadBios = "keep";
- gfxpayloadEfi = "keep";
- splashMode = "normal";
-
- theme = pkgs.fetchFromGitHub {
- owner = "Lxtharia";
- repo = "minegrub-theme";
- rev = "193b3a7c3d432f8c6af10adfb465b781091f56b3";
- sha256 = "1bvkfmjzbk7pfisvmyw5gjmcqj9dab7gwd5nmvi8gs4vk72bl2ap";
- };
- };
-}
diff --git a/modules/core/software/boot/systemd-boot.nix b/modules/core/software/boot/systemd-boot.nix
deleted file mode 100644
index b51a896..0000000
--- a/modules/core/software/boot/systemd-boot.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- boot.loader.systemd-boot = {
- enable = false;
- editor = true;
- consoleMode = "max";
- memtest86.enable = true;
- netbootxyz.enable = true;
- };
-}
diff --git a/modules/core/software/default.nix b/modules/core/software/default.nix
deleted file mode 100644
index f0de576..0000000
--- a/modules/core/software/default.nix
+++ /dev/null
@@ -1,40 +0,0 @@
-{ pkgs, ... }:
-{
- imports = [
- ./access
- ./boot
- ./desktop
- ./multimedia
- ./services
- ./aagl.nix
- ./encryption.nix
- ./gaming.nix
- ./input.nix
- ./locale.nix
- ./programs.nix
- ./shell.nix
- ./systemd.nix
- ./users.nix
- ];
-
- system = {
- autoUpgrade = {
- enable = false;
- allowReboot = false;
- };
-
- switch = {
- enable = false;
- enableNg = true;
- };
- };
-
- environment.enableAllTerminfo = true;
-
- console = {
- earlySetup = true;
- keyMap = "us";
- font = "ter-v16n";
- packages = [ pkgs.terminus_font ];
- };
-}
diff --git a/modules/core/software/desktop/default.nix b/modules/core/software/desktop/default.nix
deleted file mode 100644
index bd2c811..0000000
--- a/modules/core/software/desktop/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- imports = [
- ./gtk.nix
- ./xdg-portal.nix
- ];
-}
diff --git a/modules/core/software/desktop/gtk.nix b/modules/core/software/desktop/gtk.nix
deleted file mode 100644
index 4357e75..0000000
--- a/modules/core/software/desktop/gtk.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ pkgs, ... }:
-{
- environment.systemPackages = with pkgs; [
- gtk2
- gtk3
- gtk4
- ];
-}
diff --git a/modules/core/software/desktop/xdg-portal.nix b/modules/core/software/desktop/xdg-portal.nix
deleted file mode 100644
index 72bcb97..0000000
--- a/modules/core/software/desktop/xdg-portal.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ pkgs, ... }:
-{
- xdg.portal = {
- enable = true;
- config.common.default = "*";
- # wlr.enable = true;
- # xdgOpenUsePortal = true;
-
- extraPortals = with pkgs; [
- xdg-desktop-portal-wlr
- xdg-desktop-portal-gtk
- xdg-desktop-portal-gnome
- ];
- };
-}
diff --git a/modules/core/software/encryption.nix b/modules/core/software/encryption.nix
deleted file mode 100644
index 53a24bb..0000000
--- a/modules/core/software/encryption.nix
+++ /dev/null
@@ -1,16 +0,0 @@
-{
- boot = {
- initrd.availableKernelModules = [
- # "aesni_intel"
- # "cryptd"
- "usb_storage"
- ];
-
- # <https://wiki.archlinux.org/title/Dm-crypt/System_configuration#Timeout>
- kernelParams = [
- "luks.options=timeout=0"
- "rd.luks.options=timeout=0"
- "rootflags=x-systemd.device-timeout=0"
- ];
- };
-}
diff --git a/modules/core/software/gaming.nix b/modules/core/software/gaming.nix
deleted file mode 100644
index 675aee9..0000000
--- a/modules/core/software/gaming.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{ pkgs, ... }:
-{
- programs = {
- steam =
- let
- openFirewall = false;
- in
- {
- enable = true;
- remotePlay.openFirewall = openFirewall;
- localNetworkGameTransfers.openFirewall = openFirewall;
- dedicatedServer.openFirewall = openFirewall;
- extest.enable = true;
- # gamescopeSession.enable = true;
-
- package = pkgs.steam-small.override {
- extraEnv = {
- MANGOHUD = true;
- # SDL_VIDEODRIVER = "x11";
- };
- };
-
- extraCompatPackages = [ pkgs.proton-ge-bin.steamcompattool ];
- };
-
- gamemode = {
- enable = true;
- enableRenice = false;
- };
-
- gamescope.enable = true;
- };
-
- environment.systemPackages = with pkgs; [
- mangohud
- steamtinkerlaunch
- ];
-}
diff --git a/modules/core/software/input.nix b/modules/core/software/input.nix
deleted file mode 100644
index 2d9f651..0000000
--- a/modules/core/software/input.nix
+++ /dev/null
@@ -1,25 +0,0 @@
-{ pkgs, secrets, ... }:
-{
- i18n = {
- defaultLocale = secrets.i18n.locale;
-
- inputMethod = {
- enable = true;
- type = "fcitx5";
-
- fcitx5 = {
- waylandFrontend = true;
-
- addons = with pkgs; [
- fcitx5-configtool
- fcitx5-gtk
- fcitx5-hangul
- fcitx5-mozc
- fcitx5-rime
- rime-data
- catppuccin-fcitx5
- ];
- };
- };
- };
-}
diff --git a/modules/core/software/locale.nix b/modules/core/software/locale.nix
deleted file mode 100644
index 8ebd49b..0000000
--- a/modules/core/software/locale.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ secrets, ... }:
-{
- location.provider = "geoclue2";
-
- time = {
- timeZone = "${secrets.i18n.timezone}";
- hardwareClockInLocalTime = false;
- };
-}
diff --git a/modules/core/software/multimedia/audio/default.nix b/modules/core/software/multimedia/audio/default.nix
deleted file mode 100644
index f4e7f0a..0000000
--- a/modules/core/software/multimedia/audio/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- imports = [
- ./pipewire.nix
- # ./wireplumber.nix
- ];
-}
diff --git a/modules/core/software/multimedia/audio/pipewire.nix b/modules/core/software/multimedia/audio/pipewire.nix
deleted file mode 100644
index 2824176..0000000
--- a/modules/core/software/multimedia/audio/pipewire.nix
+++ /dev/null
@@ -1,164 +0,0 @@
-# { lib, ... }:
-# let
-# inherit (lib.modules) mkBefore;
-# inherit (lib.lists) singleton;
-# inherit (builtins) toString;
-# mapOptionDefault = lib.attrsets.mapAttrs (_: lib.modules.mkOptionDefault);
-# quantum = toString 64;
-# rate = toString 48000;
-# qr = "${quantum}/${rate}";
-# in
-{
- services.pipewire = {
- enable = true;
- wireplumber.enable = true;
- jack.enable = true;
- pulse.enable = true;
- audio.enable = true;
-
- alsa = {
- enable = true;
- support32Bit = true;
- };
-
- extraConfig = {
- pipewire = {
- "10-logging" = {
- "context.properties"."log.level" = 3;
- };
-
- # "10-defaults" = {
- # "context.properties" = mapOptionDefault {
- # "clock.power-of-two-quantum" = true;
- # "core.daemon" = true;
- # "core.name" = "pipewire-0";
- # "link.max-buffers" = 16;
- # "settings.check-quantum" = true;
- # };
-
- # "context.spa-libs" = mapOptionDefault {
- # "audio.convert.*" = "audioconvert/libspa-audioconvert";
- # "avb.*" = "avb/libspa-avb";
- # "api.alsa.*" = "alsa/libspa-alsa";
- # "api.v4l2.*" = "v4l2/libspa-v4l2";
- # "api.libcamera.*" = "libcamera/libspa-libcamera";
- # "api.bluez5.*" = "bluez5/libspa-bluez5";
- # "api.vulkan.*" = "vulkan/libspa-vulkan";
- # "api.jack.*" = "jack/libspa-jack";
- # "support.*" = "support/libspa-support";
- # "video.convert.*" = "videoconvert/libspa-videoconvert";
- # };
- # };
- };
-
- # pipewire-pulse = {
- # "10-defaults" = {
- # "context.spa-libs" = mapOptionDefault {
- # "audio.convert.*" = "audioconvert/libspa-audioconvert";
- # "support.*" = "support/libspa-support";
- # };
-
- # "pulse.cmd" = mkBefore [
- # {
- # cmd = "load-module";
- # args = "module-always-sink";
- # flags = [ ];
- # }
- # ];
-
- # "pulse.properties" = {
- # "server.address" = mkBefore [ "unix:native" ];
- # };
-
- # "pulse.rules" = mkBefore [
- # {
- # matches = [
- # { "application.process.binary" = "teams"; }
- # { "application.process.binary" = "teams-insiders"; }
- # { "application.process.binary" = "skypeforlinux"; }
- # ];
-
- # actions.quirks = [ "force-s16-info" ];
- # }
- # {
- # matches = singleton { "application.process.binary" = "firefox"; };
- # actions.quirks = [ "remove-capture-dont-move" ];
- # }
- # {
- # matches = singleton { "application.name" = "~speech-dispatcher*"; };
-
- # actions = {
- # update-props = {
- # "pulse.min.req" = "1024/48000"; # 21 milliseconds
- # "pulse.min.quantum " = "1024/48000"; # 21 milliseconds
- # };
- # };
- # }
- # ];
- # };
- # };
-
- # pipewire."92-low-latency" = {
- # "context.properties" = {
- # "default.clock.rate" = rate;
- # "default.clock.quantum" = quantum;
- # "default.clock.min-quantum" = quantum;
- # "default.clock.max-quantum" = quantum;
- # "default.clock.allowed-rates" = [ rate ];
- # };
-
- # # "context.modules" = [
- # # {
- # # name = "libpipewire-module-rtkit";
-
- # # flags = [
- # # "ifexists"
- # # "nofail"
- # # ];
-
- # # args = {
- # # "nice.level" = -15;
- # # "rt.prio" = 90;
- # # "rt.time.soft" = 200000;
- # # "rt.time.hard" = 200000;
- # # };
- # # }
- # # {
- # # name = "libpipewire-module-protocol-pulse";
-
- # # args = {
- # # "server.address" = [ "unix:native" ];
- # # "pulse.min.quantum" = qr;
- # # "pulse.min.req" = qr;
- # # "pulse.min.frag" = qr;
- # # };
- # # }
- # # ];
-
- # "stream.properties" = {
- # "node.latency" = qr;
- # "resample.quality" = 1;
- # };
- # };
-
- # pipewire-pulse."92-low-latency" = {
- # "context.modules" = singleton {
- # name = "libpipewire-module-protocol-pulse";
-
- # args = {
- # "pulse.min.req" = qr;
- # "pulse.default.req" = qr;
- # "pulse.max.req" = qr;
- # "pulse.min.quantum" = qr;
- # "pulse.max.quantum" = qr;
- # };
- # };
-
- # "stream.properties" = {
- # "node.latency" = qr;
- # "resample.quality" = 4;
- # };
- # };
- };
- };
-}
diff --git a/modules/core/software/multimedia/audio/wireplumber.nix b/modules/core/software/multimedia/audio/wireplumber.nix
deleted file mode 100644
index 970396f..0000000
--- a/modules/core/software/multimedia/audio/wireplumber.nix
+++ /dev/null
@@ -1,42 +0,0 @@
-let
- rate = builtins.toString 48000;
-in
-{
- services.pipewire.wireplumber = {
- enable = true;
-
- extraConfig = {
- "10-log-level-debug" = {
- "context.properties"."log.level" = "D";
- };
-
- "10-default-volume" = {
- "wireplumber.settings"."device.routes.default-sink-volume" = 1.0;
- };
-
- "92-low-latency" = {
- "monitor.alsa.rules" = [
- {
- matches = [
- { "device.name" = "~alsa_card.*"; }
- { "node.name" = "~alsa_output.*"; }
- ];
-
- actions.update-props = {
- "node.description" = "ALSA Low Latency Output";
- "audio.rate" = rate;
- "audio.format" = "S32LE";
- "resample.quality" = 4;
- "resample.disable" = false;
- "session.suspend-timeout-seconds" = 0;
- "api.alsa.period-size" = 2;
- "api.alsa.headroom" = 128;
- "api.alsa.period-num" = 2;
- "api.alsa.disable-batch" = false;
- };
- }
- ];
- };
- };
- };
-}
diff --git a/modules/core/software/multimedia/default.nix b/modules/core/software/multimedia/default.nix
deleted file mode 100644
index 7bf261a..0000000
--- a/modules/core/software/multimedia/default.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- imports = [
- ./audio
- ./video
- ];
-}
diff --git a/modules/core/software/multimedia/video/default.nix b/modules/core/software/multimedia/video/default.nix
deleted file mode 100644
index 31cdfd5..0000000
--- a/modules/core/software/multimedia/video/default.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-{ pkgs, ... }:
-{
- imports = [
- ./graphics.nix
- ./libva.nix
- ./nvidia.nix
- ./vulkan.nix
- ];
-
- environment.systemPackages = [ pkgs.mediastreamer-openh264 ];
-}
diff --git a/modules/core/software/multimedia/video/graphics.nix b/modules/core/software/multimedia/video/graphics.nix
deleted file mode 100644
index 13da295..0000000
--- a/modules/core/software/multimedia/video/graphics.nix
+++ /dev/null
@@ -1,21 +0,0 @@
-{ pkgs, ... }:
-{
- hardware.graphics = {
- enable = true;
- enable32Bit = true;
-
- extraPackages = with pkgs; [
- nvidia-vaapi-driver
- vaapiVdpau
- libvdpau-va-gl
- ];
-
- extraPackages32 = with pkgs; [
- nvidia-vaapi-driver
- vaapiVdpau
- libvdpau-va-gl
- ];
- };
-
- environment.systemPackages = [ pkgs.mesa ];
-}
diff --git a/modules/core/software/multimedia/video/libva.nix b/modules/core/software/multimedia/video/libva.nix
deleted file mode 100644
index d420495..0000000
--- a/modules/core/software/multimedia/video/libva.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{ pkgs, ... }:
-{
- environment.systemPackages = with pkgs; [
- libva
- libva-utils
- ];
-}
diff --git a/modules/core/software/multimedia/video/nvidia.nix b/modules/core/software/multimedia/video/nvidia.nix
deleted file mode 100644
index c133bc2..0000000
--- a/modules/core/software/multimedia/video/nvidia.nix
+++ /dev/null
@@ -1,38 +0,0 @@
-{ pkgs, config, ... }:
-{
- environment = {
- systemPackages = with pkgs; [
- nvidia-container-toolkit
- nvidia-docker
- ];
-
- shellAliases.nvidia-settings = "nvidia-settings --config='$XDG_CONFIG_HOME'/nvidia/settings";
- };
-
- boot = {
- blacklistedKernelModules = [ "nouveau" ];
-
- kernelParams = [
- "nvidia-drm.fbdev=1"
- "nvidia-drm.modeset=1"
- "nvidia.NVreg_PreserveVideoMemoryAllocations=1"
- ];
- };
-
- hardware = {
- nvidia-container-toolkit.enable = true;
-
- nvidia = {
- modesetting.enable = true;
- open = false;
- nvidiaSettings = true;
- package = config.boot.kernelPackages.nvidiaPackages.production;
- forceFullCompositionPipeline = true;
-
- powerManagement = {
- enable = true;
- finegrained = false;
- };
- };
- };
-}
diff --git a/modules/core/software/multimedia/video/vulkan.nix b/modules/core/software/multimedia/video/vulkan.nix
deleted file mode 100644
index be37e0e..0000000
--- a/modules/core/software/multimedia/video/vulkan.nix
+++ /dev/null
@@ -1,9 +0,0 @@
-{ pkgs, ... }:
-{
- environment.systemPackages = with pkgs; [
- vulkan-loader
- vulkan-validation-layers
- vulkan-tools
- vulkan-extension-layer
- ];
-}
diff --git a/modules/core/software/programs.nix b/modules/core/software/programs.nix
deleted file mode 100644
index a1025fb..0000000
--- a/modules/core/software/programs.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ pkgs, ... }:
-{
- programs = {
- fish.enable = true;
- mtr.enable = true;
- dconf.enable = true;
- ccache.enable = true;
- fuse.userAllowOther = true;
-
- bash.interactiveShellInit = ''
- export HISTFILE="$XDG_STATE_HOME/bash/history"
- '';
- };
-
- environment.systemPackages = with pkgs; [
- vim
- wget
- git
- pinentry
- runc
- ];
-}
diff --git a/modules/core/software/services/adb.nix b/modules/core/software/services/adb.nix
deleted file mode 100644
index d106ead..0000000
--- a/modules/core/software/services/adb.nix
+++ /dev/null
@@ -1,12 +0,0 @@
-{ pkgs, ... }:
-{
- programs.adb.enable = true;
-
- services.udev = {
- packages = [ pkgs.android-udev-rules ];
-
- extraRules = ''
- SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="adbusers"
- '';
- };
-}
diff --git a/modules/core/software/services/ananicy.nix b/modules/core/software/services/ananicy.nix
deleted file mode 100644
index bdc9bbd..0000000
--- a/modules/core/software/services/ananicy.nix
+++ /dev/null
@@ -1,8 +0,0 @@
-{ pkgs, ... }:
-{
- services.ananicy = {
- enable = false;
- package = pkgs.ananicy-cpp;
- rulesProvider = pkgs.ananicy-rules-cachyos;
- };
-}
diff --git a/modules/core/software/services/dbus.nix b/modules/core/software/services/dbus.nix
deleted file mode 100644
index 8b25bf9..0000000
--- a/modules/core/software/services/dbus.nix
+++ /dev/null
@@ -1,15 +0,0 @@
-{ pkgs, ... }:
-{
- services.dbus = {
- enable = true;
- implementation = "broker";
-
- packages = with pkgs; [
- dconf
- gcr
- udisks2
- # flatpak
- # xdg-desktop-portal
- ];
- };
-}
diff --git a/modules/core/software/services/default.nix b/modules/core/software/services/default.nix
deleted file mode 100644
index 4b9ccf6..0000000
--- a/modules/core/software/services/default.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ pkgs, ... }:
-{
- imports = [
- # ./adb.nix
- ./ananicy.nix
- ./dbus.nix
- ./libinput.nix
- ./logrotate.nix
- ./ollama.nix
- # ./printing.nix
- ./xserver.nix
- ];
-
- services = {
- printing.enable = false;
- gnome.gnome-keyring.enable = true;
- fstrim.enable = false;
- gvfs.enable = true;
- udev.packages = with pkgs; [ pkgs.logitech-udev-rules ];
- thermald.enable = true;
- irqbalance.enable = true;
- gpm.enable = true;
- };
-}
diff --git a/modules/core/software/services/libinput.nix b/modules/core/software/services/libinput.nix
deleted file mode 100644
index 643f814..0000000
--- a/modules/core/software/services/libinput.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{
- services.libinput = {
- enable = true;
-
- mouse = {
- accelProfile = "flat";
- };
-
- touchpad = {
- accelProfile = "flat";
- };
- };
-}
diff --git a/modules/core/software/services/logrotate.nix b/modules/core/software/services/logrotate.nix
deleted file mode 100644
index 2dedf2e..0000000
--- a/modules/core/software/services/logrotate.nix
+++ /dev/null
@@ -1,24 +0,0 @@
-{ pkgs, lib, ... }:
-{
- services.logrotate.settings = {
- "/var/log/audit/audit.log" = { };
-
- header = {
- global = true;
- dateext = true;
- dateformat = "-%Y-%m-%d";
- nomail = true;
- missingok = true;
- copytruncate = true;
- priority = 1;
- frequency = "daily";
- rotate = 7;
- minage = 1;
- compress = true;
- compresscmd = "${lib.getExe' pkgs.zstd "zstd"}";
- compressoptions = " -Xcompression-level 10";
- compressext = "zst";
- uncompresscmd = "${lib.getExe' pkgs.zstd "unzstd"}";
- };
- };
-}
diff --git a/modules/core/software/services/ollama.nix b/modules/core/software/services/ollama.nix
deleted file mode 100644
index d737250..0000000
--- a/modules/core/software/services/ollama.nix
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- services.ollama = {
- enable = true;
- acceleration = "cuda";
- };
-}
diff --git a/modules/core/software/services/printing.nix b/modules/core/software/services/printing.nix
deleted file mode 100644
index f7a38de..0000000
--- a/modules/core/software/services/printing.nix
+++ /dev/null
@@ -1,19 +0,0 @@
-{ pkgs, ... }:
-{
- services = {
- printing = {
- enable = true;
-
- drivers = with pkgs; [
- gutenprint
- hplip
- ];
- };
-
- avahi = {
- enable = true;
- nssmdns4 = true;
- openFirewall = true;
- };
- };
-}
diff --git a/modules/core/software/services/xserver.nix b/modules/core/software/services/xserver.nix
deleted file mode 100644
index f1833a4..0000000
--- a/modules/core/software/services/xserver.nix
+++ /dev/null
@@ -1,10 +0,0 @@
-{
- services.xserver = {
- xkb = {
- layout = "us";
- options = "caps:escape";
- };
-
- videoDrivers = [ "nvidia" ];
- };
-}
diff --git a/modules/core/software/shell.nix b/modules/core/software/shell.nix
deleted file mode 100644
index 0b3508f..0000000
--- a/modules/core/software/shell.nix
+++ /dev/null
@@ -1,7 +0,0 @@
-{ pkgs, ... }:
-{
- environment = with pkgs; {
- binsh = "${dash}/bin/dash";
- shells = [ fish ];
- };
-}
diff --git a/modules/core/software/systemd.nix b/modules/core/software/systemd.nix
deleted file mode 100644
index c475d96..0000000
--- a/modules/core/software/systemd.nix
+++ /dev/null
@@ -1,11 +0,0 @@
-{ pkgs, ... }:
-{
- boot.initrd.systemd.enable = true;
-
- systemd.services.containerd.path = with pkgs; [
- containerd
- runc
- iptables
- nvidia-docker
- ];
-}
diff --git a/modules/core/software/users.nix b/modules/core/software/users.nix
deleted file mode 100644
index ab3fe03..0000000
--- a/modules/core/software/users.nix
+++ /dev/null
@@ -1,46 +0,0 @@
-{ pkgs, secrets, ... }:
-let
- initialHashedPassword = secrets.initial_hashed_password;
-in
-{
- users = {
- mutableUsers = false;
-
- users = {
- root = {
- inherit initialHashedPassword;
-
- shell = pkgs.bash;
- };
-
- ebisu = {
- inherit initialHashedPassword;
-
- isNormalUser = true;
- shell = pkgs.fish;
-
- extraGroups = [
- "wheel"
- "systemd-journal"
- "audio"
- "video"
- "input"
- "plugdev"
- "lp"
- "tss"
- "power"
- "nix"
- "network"
- "networkmanager"
- "wireshark"
- "mysql"
- "docker"
- "podman"
- "git"
- "libvirtd"
- "kvm"
- ];
- };
- };
- };
-}