From 4a12dd74eabef4f5d8a82cf17aa352584ad48339 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 26 Jul 2024 03:46:30 -0700 Subject: [PATCH] some changes --- configuration.nix | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/configuration.nix b/configuration.nix index 5b09bed..333fa82 100644 --- a/configuration.nix +++ b/configuration.nix @@ -61,13 +61,23 @@ # Enable touchpad support (enabled default in most desktopManager). # services.libinput.enable = true; + services.mbpfan = { + enable = true; + }; + # Define a user account. Don't forget to set a password with ‘passwd’. users.users.runner = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; []; + packages = with pkgs; [ + btop + zellij + powertop + ]; }; + users.defaultUserShell = pkgs.fish; + virtualisation.docker.enable = true; programs.bash = { @@ -76,6 +86,11 @@ enableCompletion = true; }; + programs.fish = { + enable = true; + interactiveShellInit = "set -g fish_key_bindings fish_vi_key_bindings"; + }; + nixpkgs.config.allowUnfree = true; nix.settings.experimental-features = [ "nix-command" "flakes" ]; @@ -90,7 +105,7 @@ neovim ]; - environment.variables.EDITOR = "vim"; + environment.variables.EDITOR = "nvim"; programs.git = { enable = true; @@ -118,8 +133,8 @@ services.openssh.enable = true; # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; - # networking.firewall.allowedUDPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [ 2222 ]; + networking.firewall.allowedUDPPorts = [ 2222 ]; # Or disable the firewall altogether. # networking.firewall.enable = false;