From 954164b9d415b602b370b8abdbdbf37b422929df Mon Sep 17 00:00:00 2001 From: Tom Barrett Date: Sun, 15 Oct 2023 17:34:40 +0200 Subject: tell to use xterm, nixos update --- nix/configuration.nix | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'nix') diff --git a/nix/configuration.nix b/nix/configuration.nix index 16efd4d..ec0a161 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -1,9 +1,12 @@ -{ config, pkgs, ... }: - { - imports = [ ./hardware-configuration.nix ]; + config, + pkgs, + ... +}: { + imports = [./hardware-configuration.nix]; boot.loader.systemd-boot.enable = true; networking.hostName = "nixos"; + nix.settings.experimental-features = ["nix-command" "flakes"]; time.timeZone = "Europe/Berlin"; networking.networkmanager.enable = true; @@ -11,56 +14,60 @@ users.users.tom = { isNormalUser = true; - extraGroups = [ "wheel" "networkmanager"]; + extraGroups = ["wheel" "networkmanager" "video"]; shell = pkgs.zsh; }; hardware.pulseaudio.enable = true; + services.openssh.enable = true; services.xserver.enable = true; services.xserver.autorun = false; services.xserver.displayManager.startx.enable = true; services.xserver.libinput.enable = true; environment.variables.EDITOR = "vim"; + environment.systemPackages = with pkgs; [ acpi + crawl curl dmenu feh + file firefox + fzf git htop + jq lm_sensors - mpc_cli ncdu ncmpcpp nixfmt - pass + nmap + (pass.withExtensions (ext: with ext; [pass-otp])) + pavucontrol pinentry-curses ranger + scrot tmux + tree vim wget ]; + programs.slock.enable = true; + programs.light.enable = true; programs.gnupg.agent = { enable = true; enableSSHSupport = true; pinentryFlavor = null; }; - programs.zsh.enable = true; programs.zsh.autosuggestions.enable = true; programs.zsh.syntaxHighlighting.enable = true; - fonts.fonts = with pkgs; [ hermit ]; + fonts.fonts = with pkgs; [hermit]; system.stateVersion = "23.05"; - - swapDevices = [ - { - device = "/swap"; - size = 4096; - } - ]; + zramSwap.enable = true; } -- cgit v1.2.3