From 0293eceb2a08347c52868199314f0bcb8b68afdd Mon Sep 17 00:00:00 2001 From: Nettika Date: Tue, 11 Jun 2024 16:09:36 -0700 Subject: [PATCH] Separate out coding software configurations --- coding.nix | 26 ++++++++++++++++++++++++++ configuration.nix | 11 +---------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 coding.nix diff --git a/coding.nix b/coding.nix new file mode 100644 index 0000000..4c52659 --- /dev/null +++ b/coding.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: +{ + environment.systemPackages = [pkgs.vscode]; + + programs = { + git = { + enable = true; + lfs.enable = true; + config = { + init.defaultBranch = "master"; + user = { + email = "git@nettika.cat"; + name = "Nettika"; + }; + credential.helper = "store"; + }; + }; + nano = { + enable = true; + nanorc = '' + set autoindent + set linenumbers + ''; + }; + }; +} diff --git a/configuration.nix b/configuration.nix index 11d4e7d..eb28e8f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -4,6 +4,7 @@ ./hardware.nix ./networking.nix ./users.nix + ./coding.nix ]; time.timeZone = "America/Los_Angeles"; @@ -13,11 +14,8 @@ nixpkgs.config.allowUnfree = true; environment.systemPackages = with pkgs; [ - nano - git lshw firefox - vscode ]; services.xserver = { @@ -36,12 +34,5 @@ dedicatedServer.openFirewall = true; }; - programs.nano = { - nanorc = '' - set autoindent - set linenumbers - ''; - }; - system.stateVersion = "24.05"; }