From 265253b12030ce5bd380c62a8ca90edb3d22e57a Mon Sep 17 00:00:00 2001 From: sdhou Date: Tue, 12 Mar 2024 18:24:00 +0800 Subject: [PATCH] add file nixos config --- oye.nix | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 oye.nix diff --git a/oye.nix b/oye.nix new file mode 100644 index 0000000..8244587 --- /dev/null +++ b/oye.nix @@ -0,0 +1,45 @@ +{ lib, config, pkgs, ... }: +with lib; +{ + time.timeZone = "Asia/Shanghai"; + nix.settings.substituters = [ "https://mirrors.cernet.edu.cn/nix-channels/store" ]; + documentation.enable = true; + documentation.nixos.enable = true; + environment.noXlibs = false; + environment.systemPackages = with pkgs; [ + vim + axel + wget + git + cloc + tree + bat + redis + nginx + docker + nodePackages_latest.nodejs + pm2 + yarn + nodePackages.pnpm + jdk + maven + go + rclone + wrk + tig + #telnet + mariadb + minio + mycli + jq + ]; + services.redis.servers."".enable = true; + system.stateVersion = "23.11"; + virtualisation.docker.enable = true; + users.users.sdhou = { + isNormalUser = true; + extraGroups = [ + "docker" + ]; + }; +}