diff options
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 + ]; +} |