diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/default.nix | 1 | ||||
| -rw-r--r-- | modules/home/dev-tools.nix | 14 | ||||
| -rw-r--r-- | modules/home/shell.nix | 14 | ||||
| -rw-r--r-- | modules/nixos/common.nix | 17 |
4 files changed, 31 insertions, 15 deletions
diff --git a/modules/home/default.nix b/modules/home/default.nix index ec32c7f..89bad9e 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix | |||
| @@ -4,5 +4,6 @@ | |||
| 4 | ./editor.nix | 4 | ./editor.nix |
| 5 | ./cli-tools.nix | 5 | ./cli-tools.nix |
| 6 | ./dotfiles.nix | 6 | ./dotfiles.nix |
| 7 | ./dev-tools.nix | ||
| 7 | ]; | 8 | ]; |
| 8 | } | 9 | } |
diff --git a/modules/home/dev-tools.nix b/modules/home/dev-tools.nix new file mode 100644 index 0000000..f98790e --- /dev/null +++ b/modules/home/dev-tools.nix | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | { pkgs, ... }: | ||
| 2 | { | ||
| 3 | home.packages = with pkgs; [ | ||
| 4 | gh | ||
| 5 | tmux | ||
| 6 | htop | ||
| 7 | yq-go | ||
| 8 | tree-sitter | ||
| 9 | docker | ||
| 10 | docker-compose | ||
| 11 | kubectl | ||
| 12 | awscli2 | ||
| 13 | ]; | ||
| 14 | } | ||
diff --git a/modules/home/shell.nix b/modules/home/shell.nix index 406206c..7e6dc85 100644 --- a/modules/home/shell.nix +++ b/modules/home/shell.nix | |||
| @@ -1,14 +1,4 @@ | |||
| 1 | { pkgs, ... }: | ||
| 1 | { | 2 | { |
| 2 | programs.zsh = { | 3 | home.packages = [ pkgs.liquidprompt ]; |
| 3 | enable = true; | ||
| 4 | autosuggestion.enable = true; | ||
| 5 | syntaxHighlighting.enable = true; | ||
| 6 | }; | ||
| 7 | |||
| 8 | programs.starship.enable = true; | ||
| 9 | |||
| 10 | programs.direnv = { | ||
| 11 | enable = true; | ||
| 12 | nix-direnv.enable = true; | ||
| 13 | }; | ||
| 14 | } | 4 | } |
diff --git a/modules/nixos/common.nix b/modules/nixos/common.nix index 5427414..2e70b15 100644 --- a/modules/nixos/common.nix +++ b/modules/nixos/common.nix | |||
| @@ -13,11 +13,22 @@ | |||
| 13 | time.timeZone = lib.mkDefault "Etc/UTC"; | 13 | time.timeZone = lib.mkDefault "Etc/UTC"; |
| 14 | i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; | 14 | i18n.defaultLocale = lib.mkDefault "en_US.UTF-8"; |
| 15 | 15 | ||
| 16 | programs.zsh.enable = true; | ||
| 17 | |||
| 18 | users.users.tom = { | 16 | users.users.tom = { |
| 19 | isNormalUser = true; | 17 | isNormalUser = true; |
| 20 | extraGroups = [ "wheel" ]; | 18 | extraGroups = [ "wheel" ]; |
| 21 | shell = pkgs.zsh; | 19 | shell = pkgs.bash; |
| 20 | }; | ||
| 21 | |||
| 22 | services.openssh = { | ||
| 23 | enable = true; | ||
| 24 | settings = { | ||
| 25 | PasswordAuthentication = false; | ||
| 26 | PermitRootLogin = "no"; | ||
| 27 | }; | ||
| 28 | }; | ||
| 29 | |||
| 30 | networking.firewall = { | ||
| 31 | enable = true; | ||
| 32 | allowedTCPPorts = [ 22 ]; | ||
| 22 | }; | 33 | }; |
| 23 | } | 34 | } |
