diff options
author | Tom Barrett <tom@tombarrett.xyz> | 2023-10-15 17:34:40 +0200 |
---|---|---|
committer | Tom Barrett <tom@tombarrett.xyz> | 2023-10-15 17:34:40 +0200 |
commit | 954164b9d415b602b370b8abdbdbf37b422929df (patch) | |
tree | f1013ecaf8d98e02884ffe7d96f8ee78a6210e07 /nix | |
parent | 12bc93369b2c518b3545a367bdb8088145c8956f (diff) |
Diffstat (limited to 'nix')
-rw-r--r-- | nix/configuration.nix | 37 |
1 files changed, 22 insertions, 15 deletions
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; } |