From 8cc17721f093a89a39ff60dfe7a3fc3a96b63667 Mon Sep 17 00:00:00 2001 From: Richie Cahill Date: Mon, 15 Apr 2024 00:08:17 -0400 Subject: [PATCH] removed programs from systems/configuration.nix and created modules/libs.nix --- modules/libs.nix | 25 ++++++++++++++++++++ systems/configuration.nix | 50 --------------------------------------- 2 files changed, 25 insertions(+), 50 deletions(-) create mode 100644 modules/libs.nix diff --git a/modules/libs.nix b/modules/libs.nix new file mode 100644 index 0000000..d0ac46e --- /dev/null +++ b/modules/libs.nix @@ -0,0 +1,25 @@ +{ lib, pkgs, ... }: +{ + programs.nix-ld = { + enable = lib.mkDefault true; + libraries = with pkgs; [ + acl + attr + bzip2 + curl + glib + libglvnd + libmysqlclient + libsodium + libssh + libxml2 + openssl + stdenv.cc.cc + systemd + util-linux + xz + zlib + zstd + ]; + }; +} diff --git a/systems/configuration.nix b/systems/configuration.nix index 27c3342..58edfce 100644 --- a/systems/configuration.nix +++ b/systems/configuration.nix @@ -30,56 +30,6 @@ }; }; - programs = { - git = { - enable = true; - lfs.enable = lib.mkDefault true; - config = { - interactive.singlekey = true; - pull.rebase = true; - rebase.autoStash = true; - safe.directory = "/etc/nixos"; - }; - }; - - zsh = { - enable = true; - syntaxHighlighting.enable = true; - zsh-autoenv.enable = true; - enableCompletion = true; - enableBashCompletion = true; - ohMyZsh.enable = true; - autosuggestions = { - enable = true; - strategy = [ "completion" ]; - async = true; - }; - }; - - nix-ld = { - enable = true; - libraries = with pkgs; [ - acl - attr - bzip2 - curl - glib - libglvnd - libmysqlclient - libsodium - libssh - libxml2 - openssl - stdenv.cc.cc - systemd - util-linux - xz - zlib - zstd - ]; - }; - }; - system = { autoUpgrade = { enable = true;