summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2023-10-15 17:34:40 +0200
committerTom Barrett <tom@tombarrett.xyz>2023-10-15 17:34:40 +0200
commit954164b9d415b602b370b8abdbdbf37b422929df (patch)
treef1013ecaf8d98e02884ffe7d96f8ee78a6210e07
parent12bc93369b2c518b3545a367bdb8088145c8956f (diff)
tell to use xterm, nixos updateHEADmaster
-rw-r--r--.zshrc1
-rw-r--r--nix/configuration.nix37
2 files changed, 23 insertions, 15 deletions
diff --git a/.zshrc b/.zshrc
index f392055..444c9fa 100644
--- a/.zshrc
+++ b/.zshrc
@@ -18,6 +18,7 @@ export path=(
)
export EDITOR=vim
export BROWSER=firefox
+export TERM=xterm
autoload -Uz compinit
compinit
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;
}