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

63 lines
1.4 KiB
Nix

{ config, pkgs, ... }@args:
let
stateVersion = "23.05";
home-manager = builtins.fetchTarball "https://github.com/nix-community/home-manager/archive/release-${stateVersion}.tar.gz";
in
{
nixpkgs.config.packageOverrides = pkgs: {
nur = import (builtins.fetchTarball "https://github.com/nix-community/NUR/archive/master.tar.gz") {
inherit pkgs;
};
};
imports =
[
./hardware-configuration.nix
(import "${home-manager}/nixos")
];
boot = {
loader.systemd-boot.enable = true;
kernelParams = [ "i915.enable_psr=0" ];
};
networking.hostName = "x260";
time.timeZone = "Europe/Amsterdam";
i18n.defaultLocale = "en_US.UTF-8";
services.xserver = {
enable = true;
displayManager.gdm = {
enable = true;
settings = {
daemon = {
AutomaticLoginEnable = true;
AutomaticLogin = "pim";
};
};
};
desktopManager.gnome.enable = true;
excludePackages = with pkgs; [ xterm ];
};
home-manager.users.pim = import /home/pim/.config/home-manager/home.nix (args // { inherit stateVersion; });
users.users.pim = {
isNormalUser = true;
extraGroups = [ "wheel" ];
};
environment = {
systemPackages = with pkgs; [
wget
curl
git
btop
ripgrep
vim
];
gnome.excludePackages = with pkgs; [ gnome-tour gnome.epiphany gnome.geary gnome-console ];
};
system.stateVersion = stateVersion;
}