summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/configuration.nix37
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;
}