From d90a57d6a752c94ddfce53c66fc3f48cf3a34612 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Tue, 26 Mar 2019 10:12:24 +0000 Subject: [PATCH] Add nixos system configuration --- nixos/configuration.nix | 67 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 nixos/configuration.nix diff --git a/nixos/configuration.nix b/nixos/configuration.nix new file mode 100644 index 00000000..176423e8 --- /dev/null +++ b/nixos/configuration.nix @@ -0,0 +1,67 @@ +{ config, pkgs, ... }: + +{ + imports = + [ + /etc/nixos/hardware-configuration.nix + ]; + + environment.systemPackages = with pkgs; [ + wget vim git zsh gnupg curl tmux + ]; + + networking.hostName = "skinnyv"; + + users.users.cyryl = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" ]; + packages = with pkgs; [ + firefox terminator zsh keepass fontconfig go nodejs rustup gcc gdb binutils xclip pkgconfig veracrypt gitAndTools.diff-so-fancy + ]; + uid = 1000; + shell = pkgs.zsh; + }; + + services.syncthing = { + enable = true; + user = "cyryl"; + dataDir = "/home/cyryl/.syncthing"; + openDefaultPorts = true; + }; + + services.xserver = { + enable = true; + layout = "pl"; + libinput.enable = true; + + desktopManager = { + gnome3.enable = true; + default="gnome3"; + xterm.enable=false; + }; + displayManager.gdm.enable = true; + }; + + sound.enable = true; + hardware.pulseaudio.enable = true; + + time.timeZone = "Europe/London"; + fileSystems."/".options = [ "noatime" "nodiratime" "discard" ]; + + boot.loader.grub.enable = true; + boot.loader.grub.version = 2; + boot.loader.grub.device = "nodev"; + boot.loader.grub.efiSupport = true; + boot.loader.efi.canTouchEfiVariables = true; + + boot.initrd.luks.devices = [ + { + name = "root"; + device = "/dev/disk/by-uuid/8c76bf01-59b3-4c60-b853-e9cb77f3ca14"; + preLVM = true; + allowDiscards = true; + } + ]; + + system.stateVersion = "18.09"; +}