some changes

This commit is contained in:
Youwen Wu 2024-07-26 03:46:30 -07:00
parent 24f7403bd2
commit 4a12dd74ea

View file

@ -61,13 +61,23 @@
# Enable touchpad support (enabled default in most desktopManager). # Enable touchpad support (enabled default in most desktopManager).
# services.libinput.enable = true; # services.libinput.enable = true;
services.mbpfan = {
enable = true;
};
# Define a user account. Don't forget to set a password with passwd. # Define a user account. Don't forget to set a password with passwd.
users.users.runner = { users.users.runner = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" "networkmanager" "docker" ]; # Enable sudo for the user. 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; virtualisation.docker.enable = true;
programs.bash = { programs.bash = {
@ -76,6 +86,11 @@
enableCompletion = true; enableCompletion = true;
}; };
programs.fish = {
enable = true;
interactiveShellInit = "set -g fish_key_bindings fish_vi_key_bindings";
};
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];
@ -90,7 +105,7 @@
neovim neovim
]; ];
environment.variables.EDITOR = "vim"; environment.variables.EDITOR = "nvim";
programs.git = { programs.git = {
enable = true; enable = true;
@ -118,8 +133,8 @@
services.openssh.enable = true; services.openssh.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; networking.firewall.allowedTCPPorts = [ 2222 ];
# networking.firewall.allowedUDPPorts = [ ... ]; networking.firewall.allowedUDPPorts = [ 2222 ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;