Separate out coding software configurations

This commit is contained in:
2024-06-11 16:09:36 -07:00
parent 65bac6adaf
commit 0293eceb2a
2 changed files with 27 additions and 10 deletions

26
coding.nix Normal file
View File

@@ -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
'';
};
};
}

View File

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