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"; }