2023-08-23 10:33:28 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
let
|
|
|
|
stateVersion = "23.05";
|
|
|
|
in
|
2023-08-23 10:33:28 +00:00
|
|
|
{
|
|
|
|
imports =
|
2023-08-30 17:32:53 +00:00
|
|
|
[
|
2023-08-23 10:33:28 +00:00
|
|
|
./hardware-configuration.nix
|
2023-08-28 16:03:17 +00:00
|
|
|
<home-manager/nixos>
|
2023-08-23 10:33:28 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
2023-08-30 17:32:53 +00:00
|
|
|
networking.hostName = "x260";
|
|
|
|
time.timeZone = "Europe/Amsterdam";
|
|
|
|
i18n.defaultLocale = "nl_NL.UTF-8";
|
2023-08-23 10:33:28 +00:00
|
|
|
|
|
|
|
services.xserver = {
|
|
|
|
enable = true;
|
2023-08-28 09:24:53 +00:00
|
|
|
displayManager.gdm.enable = true;
|
|
|
|
desktopManager.gnome.enable = true;
|
2023-08-28 16:03:17 +00:00
|
|
|
excludePackages = with pkgs; [ xterm ];
|
2023-08-23 10:33:28 +00:00
|
|
|
};
|
|
|
|
|
2023-08-28 16:03:17 +00:00
|
|
|
home-manager.users.pim = { pkgs, ... }: {
|
2023-08-30 17:32:53 +00:00
|
|
|
home = {
|
|
|
|
username = "pim";
|
|
|
|
homeDirectory = "/home/pim";
|
|
|
|
stateVersion = stateVersion;
|
2023-08-28 16:03:17 +00:00
|
|
|
};
|
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
2023-08-28 16:03:17 +00:00
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
direnv = {
|
|
|
|
enable = true;
|
|
|
|
enableBashIntegration = true;
|
|
|
|
nix-direnv.enable = true;
|
|
|
|
};
|
2023-08-28 16:03:17 +00:00
|
|
|
};
|
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
# Let home-manager manage the X session
|
|
|
|
xsession = {
|
2023-08-28 16:03:17 +00:00
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2023-08-23 10:33:28 +00:00
|
|
|
|
|
|
|
users.users.pim = {
|
|
|
|
isNormalUser = true;
|
2023-08-30 17:32:53 +00:00
|
|
|
extraGroups = [ "wheel" ];
|
2023-08-23 10:33:28 +00:00
|
|
|
};
|
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
environment = {
|
|
|
|
systemPackages = with pkgs; [
|
|
|
|
vim
|
|
|
|
wget
|
|
|
|
curl
|
|
|
|
git
|
|
|
|
btop
|
|
|
|
];
|
|
|
|
gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary ];
|
|
|
|
};
|
2023-08-23 10:33:28 +00:00
|
|
|
|
2023-08-30 17:32:53 +00:00
|
|
|
system.stateVersion = stateVersion;
|
2023-08-23 10:33:28 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
|