2021-11-22 15:12:19 +01:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
2021-11-22 19:27:52 +01:00
|
|
|
|
./home-manager.nix
|
2021-11-22 15:12:19 +01:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# Use the systemd-boot EFI boot loader.
|
2021-11-23 20:51:25 +01:00
|
|
|
|
boot.loader = {
|
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
|
};
|
2021-11-22 15:12:19 +01:00
|
|
|
|
|
|
|
|
|
# Set your time zone.
|
|
|
|
|
time.timeZone = "Europe/Zurich";
|
|
|
|
|
|
2021-11-23 20:51:25 +01:00
|
|
|
|
networking = {
|
|
|
|
|
networkmanager.enable = true;
|
|
|
|
|
firewall.allowedTCPPorts = [ 22 ];
|
|
|
|
|
# firewall.allowedUDPPorts = [ ... ];
|
|
|
|
|
};
|
2021-11-22 15:12:19 +01:00
|
|
|
|
|
2021-11-23 20:51:25 +01:00
|
|
|
|
hardware = {
|
|
|
|
|
cpu.intel.updateMicrocode = true;
|
|
|
|
|
enableRedistributableFirmware = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
services = {
|
|
|
|
|
openssh.enable = true;
|
|
|
|
|
autorandr.enable = true;
|
|
|
|
|
printing.enable = true;
|
|
|
|
|
};
|
2021-11-22 15:12:19 +01:00
|
|
|
|
|
|
|
|
|
# Select internationalisation properties.
|
|
|
|
|
i18n.defaultLocale = "en_US.UTF-8";
|
|
|
|
|
console = {
|
|
|
|
|
font = "Lat2-Terminus16";
|
|
|
|
|
keyMap = "us";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# Enable the X11 windowing system.
|
2021-11-23 20:51:25 +01:00
|
|
|
|
services.xserver = {
|
|
|
|
|
enable = true;
|
|
|
|
|
displayManager.lightdm.enable = true;
|
|
|
|
|
displayManager.defaultSession = "none+qtile";
|
|
|
|
|
windowManager.qtile.enable = true;
|
|
|
|
|
layout = "us";
|
|
|
|
|
xkbOptions = "compose:ralt";
|
|
|
|
|
libinput.enable = true;
|
2021-11-22 15:12:19 +01:00
|
|
|
|
};
|
|
|
|
|
|
2021-11-22 16:30:00 +01:00
|
|
|
|
fonts.fonts = with pkgs; [
|
|
|
|
|
source-code-pro
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
2021-11-22 15:12:19 +01:00
|
|
|
|
# Enable keyring
|
|
|
|
|
security.pam.services.lightdm.enableGnomeKeyring = true;
|
|
|
|
|
services.gnome.gnome-keyring.enable = true;
|
|
|
|
|
|
|
|
|
|
# Enable sound.
|
|
|
|
|
sound.enable = true;
|
|
|
|
|
hardware.pulseaudio.enable = true;
|
|
|
|
|
|
|
|
|
|
# Define a user account. Don't forget to set a password with ‘passwd’.
|
|
|
|
|
users.users.andreas = {
|
|
|
|
|
isNormalUser = true;
|
|
|
|
|
initialPassword = "password";
|
|
|
|
|
extraGroups = [
|
|
|
|
|
"wheel"
|
|
|
|
|
"networkmanager"
|
2021-11-22 15:31:37 +01:00
|
|
|
|
];
|
2021-11-22 15:12:19 +01:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
# allow non-free packages
|
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
2021-11-22 20:14:59 +01:00
|
|
|
|
|
|
|
|
|
# enable garbage collection
|
2021-11-22 20:09:16 +01:00
|
|
|
|
nix.gc = {
|
|
|
|
|
automatic = true;
|
|
|
|
|
dates = "weekly";
|
|
|
|
|
options = "--delete-older-than 7d";
|
|
|
|
|
};
|
2021-11-22 15:12:19 +01:00
|
|
|
|
|
|
|
|
|
# enable steam
|
|
|
|
|
programs.steam.enable = true;
|
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
|
|
2021-11-22 20:14:59 +01:00
|
|
|
|
# enable lockscreen
|
|
|
|
|
|
|
|
|
|
programs.xss-lock = {
|
|
|
|
|
enable = true;
|
|
|
|
|
lockerCommand = "i3lock -c 000000";
|
|
|
|
|
};
|
|
|
|
|
|
2021-11-22 15:12:19 +01:00
|
|
|
|
environment.shellAliases = {
|
|
|
|
|
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
|
2021-11-22 20:17:14 +01:00
|
|
|
|
rebuild = "sudo nixos-rebuild switch";
|
2021-11-22 15:12:19 +01:00
|
|
|
|
};
|
2021-11-22 20:14:59 +01:00
|
|
|
|
|
2021-11-22 15:12:19 +01:00
|
|
|
|
environment.variables = {
|
|
|
|
|
EDITOR = "vim";
|
|
|
|
|
HIGHLIGHT_STYLE = "solarized-light";
|
|
|
|
|
ZWEILI_ENVIRONMENT = "desktop";
|
|
|
|
|
};
|
2021-11-22 20:14:59 +01:00
|
|
|
|
|
2021-11-22 15:12:19 +01:00
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
|
arc-theme
|
|
|
|
|
celluloid
|
|
|
|
|
firefox
|
2021-11-23 21:09:31 +01:00
|
|
|
|
gimp
|
2021-11-22 15:12:19 +01:00
|
|
|
|
git
|
|
|
|
|
highlight
|
|
|
|
|
htop
|
2021-11-22 20:14:59 +01:00
|
|
|
|
i3lock
|
2021-11-23 21:09:31 +01:00
|
|
|
|
inkscape
|
2021-11-23 20:35:49 +01:00
|
|
|
|
killall
|
2021-11-23 20:36:13 +01:00
|
|
|
|
libreoffice-fresh
|
2021-11-22 17:13:29 +01:00
|
|
|
|
lxappearance
|
2021-11-22 15:12:19 +01:00
|
|
|
|
ncdu
|
|
|
|
|
nitrogen
|
2021-11-22 17:32:50 +01:00
|
|
|
|
pavucontrol
|
2021-11-22 15:12:19 +01:00
|
|
|
|
ranger
|
|
|
|
|
rofi
|
2021-11-22 16:24:58 +01:00
|
|
|
|
source-code-pro
|
2021-11-22 15:12:19 +01:00
|
|
|
|
terminator
|
2021-11-22 19:30:42 +01:00
|
|
|
|
tree
|
2021-11-22 15:12:19 +01:00
|
|
|
|
vim
|
|
|
|
|
wget
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
# This value determines the NixOS release from which the default
|
|
|
|
|
# settings for stateful data, like file locations and database versions
|
|
|
|
|
# on your system were taken. It‘s perfectly fine and recommended to leave
|
|
|
|
|
# this value at the release version of the first install of this system.
|
|
|
|
|
# Before changing this value read the documentation for this option
|
|
|
|
|
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
|
|
|
|
system.stateVersion = "21.05"; # Did you read the comment?
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|