use home-manager

remove some unneeded gnome apps
install btop and htop alias
This commit is contained in:
nixos 2023-08-28 16:03:17 +00:00
parent 465bf6e27e
commit c07bce3ce3

View file

@ -8,6 +8,7 @@
imports = imports =
[ # Include the results of the hardware scan. [ # Include the results of the hardware scan.
./hardware-configuration.nix ./hardware-configuration.nix
<home-manager/nixos>
]; ];
# Use the GRUB 2 boot loader. # Use the GRUB 2 boot loader.
@ -44,9 +45,32 @@
enable = true; enable = true;
displayManager.gdm.enable = true; displayManager.gdm.enable = true;
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;
excludePackages = with pkgs; [ xterm ];
}; };
home-manager.users.pim = { pkgs, ... }: {
programs.home-manager.enable = true;
programs.bash = {
enable = true;
shellAliases = {
htop = "btop";
};
};
home.username = "pim";
home.homeDirectory = "/home/pim";
home.stateVersion = "23.05";
home.packages = with pkgs; [ firefox ];
# Let home-manager manage the X session
xsession = {
enable = true;
};
programs.alacritty = {
enable = true;
};
};
# Configure keymap in X11 # Configure keymap in X11
# services.xserver.layout = "us"; # services.xserver.layout = "us";
@ -66,9 +90,6 @@
users.users.pim = { users.users.pim = {
isNormalUser = true; isNormalUser = true;
extraGroups = [ "wheel" ]; # Enable sudo for the user. extraGroups = [ "wheel" ]; # Enable sudo for the user.
packages = with pkgs; [
firefox
];
}; };
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
@ -78,8 +99,11 @@
wget wget
curl curl
git git
btop
]; ];
environment.gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary ];
# Some programs need SUID wrappers, can be configured further or are # Some programs need SUID wrappers, can be configured further or are
# started in user sessions. # started in user sessions.
# programs.mtr.enable = true; # programs.mtr.enable = true;