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