diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-07-19 00:01:14 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-07-19 00:01:14 -0700 |
| commit | 8976441188db64b5bcd0def77874968a03ac51a5 (patch) | |
| tree | 6700c80f2f54f6e03f630cf5899ba6aa749b7538 /core | |
| parent | 65174b4b5c05bb143e6681a4cbcd0a95f04987e2 (diff) | |
Create core module
Diffstat (limited to 'core')
| -rw-r--r-- | core/default.nix | 8 | ||||
| -rw-r--r-- | core/env.nix | 23 | ||||
| -rw-r--r-- | core/packages.nix | 10 |
3 files changed, 41 insertions, 0 deletions
diff --git a/core/default.nix b/core/default.nix new file mode 100644 index 0000000..9ea2247 --- /dev/null +++ b/core/default.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + imports = [ + ./env.nix + ./packages.nix + ]; +} diff --git a/core/env.nix b/core/env.nix new file mode 100644 index 0000000..2fbf55e --- /dev/null +++ b/core/env.nix @@ -0,0 +1,23 @@ +{ pkgs, ... }: + +{ + environment = { + localBinInPath = true; + + #TODO: migrate to writeShellScriptBin + interactiveShellInit = '' + alias lsa="ls -lAsh" + alias c="codium ." + alias p="nix-shell -p" + + mkcd() { + mkdir -p "$1" + cd "$1" + } + ''; + + variables = { + EDITOR = "${pkgs.vim}/bin/vim"; + }; + }; +} diff --git a/core/packages.nix b/core/packages.nix new file mode 100644 index 0000000..bf30787 --- /dev/null +++ b/core/packages.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + git + vim + wget + killall + ]; +} |