summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
authorTom Barrett <tom@tombarrett.xyz>2021-10-11 21:08:05 +0200
committerTom Barrett <tom@tombarrett.xyz>2021-10-11 21:08:05 +0200
commitcb0880e23e22f285a7f8525abf4b168e7ed28568 (patch)
tree393c9306bd08c52409c34a640f6d3f2b195b86a6 /nix
parentdba643ec19f304ddc1b2967a5aeb767b3867293a (diff)
trying out nixos
Diffstat (limited to 'nix')
-rw-r--r--nix/configuration.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix
new file mode 100644
index 0000000..aa6f3e0
--- /dev/null
+++ b/nix/configuration.nix
@@ -0,0 +1,69 @@
+{ config, pkgs, ... }:
+
+{
+ imports = [ ./hardware-configuration.nix ];
+
+ networking.hostName = "nixos";
+ boot.loader.grub.device = "/dev/sda";
+ networking.interfaces.wlp3s0.useDHCP = true;
+
+ boot.loader.grub.enable = true;
+ time.timeZone = "Europe/Berlin";
+ networking.networkmanager.enable = true;
+ i18n.defaultLocale = "en_US.UTF-8";
+
+ users.users.tom = {
+ isNormalUser = true;
+ extraGroups = [ "wheel" "networkmanager" "lxd"];
+ shell = pkgs.zsh;
+ };
+
+ services.xserver.enable = true;
+ services.xserver.autorun = false;
+ services.xserver.displayManager.startx.enable = true;
+ services.xserver.libinput.enable = true;
+
+ environment.variables.EDITOR = "nvim";
+ environment.systemPackages = with pkgs; [
+ neovim
+ git
+ htop
+ ncmpcpp
+ w3m
+ firefox
+ wget
+ curl
+ dmenu
+ pass
+ feh
+ nixfmt
+ neomutt
+ acpi
+ ranger
+ mpc_cli
+ lm_sensors
+ ];
+
+ programs.gnupg.agent = {
+ enable = true;
+ pinentryFlavor = "gtk2";
+ enableSSHSupport = true;
+ };
+
+ programs.zsh.enable = true;
+ programs.zsh.autosuggestions.enable = true;
+ programs.zsh.syntaxHighlighting.enable = true;
+
+ fonts.fonts = with pkgs; [ hermit ];
+
+ system.stateVersion = "21.05";
+
+ virtualisation.lxd.enable = true;
+
+ swapDevices = [
+ {
+ device = "/swap";
+ size = 4096;
+ }
+ ];
+}