This repository has been archived on 2023-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
nixos/configuration.nix
2023-08-30 19:32:53 +02:00

84 lines
1.6 KiB
Nix

{ config, pkgs, ... }:
let
stateVersion = "23.05";
in
{
imports =
[
./hardware-configuration.nix
<home-manager/nixos>
];
boot.loader.systemd-boot.enable = true;
networking.hostName = "x260";
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "nl_NL.UTF-8";
services.xserver = {
enable = true;
displayManager.gdm.enable = true;
desktopManager.gnome.enable = true;
excludePackages = with pkgs; [ xterm ];
};
home-manager.users.pim = { pkgs, ... }: {
home = {
username = "pim";
homeDirectory = "/home/pim";
stateVersion = stateVersion;
};
programs = {
home-manager.enable = true;
alacritty.enable = true;
firefox.enable = true;
bash = {
enable = true;
shellAliases = {
htop = "btop";
gp = "git push";
gco = "git checkout";
gd = "git diff";
gc = "git commit";
gpl = "git pull";
gb = "git branch";
ga = "git add";
gl = "git log";
};
};
direnv = {
enable = true;
enableBashIntegration = true;
nix-direnv.enable = true;
};
};
# Let home-manager manage the X session
xsession = {
enable = true;
};
};
users.users.pim = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
environment = {
systemPackages = with pkgs; [
vim
wget
curl
git
btop
];
gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary ];
};
system.stateVersion = stateVersion;
}