87 lines
2.1 KiB
Nix
87 lines
2.1 KiB
Nix
{ config, lib, pkgs, ... }:
|
||
|
||
{
|
||
# Include the results of the hardware scan.
|
||
imports = [ ./hardware-configuration.nix ];
|
||
|
||
# Use the systemd-boot EFI boot loader.
|
||
boot.loader = {
|
||
systemd-boot.enable = true;
|
||
efi.canTouchEfiVariables = true;
|
||
};
|
||
|
||
# Define your hostname.
|
||
networking.hostName = "eliasLaptop";
|
||
|
||
# Use NetworkManager for networking.
|
||
networking.networkmanager.enable = true;
|
||
|
||
# Set your time zone.
|
||
time.timeZone = "Europe/Berlin";
|
||
|
||
# Select internationalisation properties.
|
||
i18n.defaultLocale = "en_US.UTF-8";
|
||
console = {
|
||
font = "Lat2-Terminus16";
|
||
useXkbConfig = true; # use xkb.options in tty.
|
||
};
|
||
|
||
services.xserver = {
|
||
enable = true;
|
||
displayManager = {
|
||
sddm = {
|
||
enable = true;
|
||
theme = "catppuccin-mocha";
|
||
};
|
||
defaultSession = "none+xmonad";
|
||
};
|
||
windowManager.xmonad = { enable = true; };
|
||
xkb = { layout = "de"; };
|
||
};
|
||
|
||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||
|
||
# Configure keymap in X11
|
||
# services.xserver.xkb.layout = "us";
|
||
# services.xserver.xkb.options = "eurosign:e,caps:escape";
|
||
|
||
# Enable CUPS to print documents.
|
||
services.printing.enable = true;
|
||
|
||
# Enable sound.
|
||
sound.enable = true;
|
||
hardware.pulseaudio.enable = true;
|
||
|
||
# Enable touchpad support (enabled default in most desktopManager).
|
||
services.xserver.libinput.enable = true;
|
||
|
||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||
users = {
|
||
mutableUsers = false;
|
||
users.elias = {
|
||
isNormalUser = true;
|
||
home = "/home/elias";
|
||
shell = pkgs.zsh;
|
||
extraGroups = [ "wheel" "networkmanager" ];
|
||
hashedPassword =
|
||
"$6$pdAJt1f0v7Zb13Ri$1WpKrErAp5JCb7eXs7EeeWYRMBLu5/WKDdMyGzJyYQDijG2NiywUXpAkl/8p1noxOOqYbb.MTw7JmTzhWGsT21";
|
||
};
|
||
};
|
||
|
||
environment.systemPackages = with pkgs; [
|
||
(libsForQt5.callPackage ./home/themes/catppuccin-sddm.nix { })
|
||
|
||
git
|
||
wget
|
||
curl
|
||
alacritty
|
||
dmenu
|
||
];
|
||
# Enable zsh for setting it as shell for users.
|
||
programs.zsh.enable = true;
|
||
|
||
# Set stateVersion. Leave it as set.
|
||
system.stateVersion = "23.11";
|
||
}
|
||
|