diff --git a/configuration.nix b/configuration.nix index 9f3ece5..87d8bc6 100644 --- a/configuration.nix +++ b/configuration.nix @@ -2,7 +2,7 @@ # your system. Help is available in the configuration.nix(5) man page # and in the NixOS manual (accessible by running ‘nixos-help’). -{ config, pkgs, ... }: +{ lib, config, pkgs, ... }: { imports = @@ -14,7 +14,7 @@ boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; - networking.hostName = "nixos"; # Define your hostname. + networking.hostName = "potemkin"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. # Configure network proxy if necessary @@ -83,12 +83,26 @@ isNormalUser = true; description = "Petra Besser"; extraGroups = [ "networkmanager" "wheel" ]; + home = "/home-local/petra"; + createHome = true; packages = with pkgs; [ kdePackages.kate # thunderbird ]; }; + users.ldap = { + enable = true; + base = "dc=fet,dc=htu,dc=tuwien,dc=ac,dc=at"; + server = "ldap://juri.fet.htu.tuwien.ac.at/"; + useTLS = false; + extraConfig = '' + ldap_version 3 + pam_password md5 + nss_override_attribute_value loginShell /run/current-system/sw/bin/bash + ''; + }; + # Install firefox. programs.firefox.enable = true; @@ -100,6 +114,7 @@ environment.systemPackages = with pkgs; [ vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. wget + git ]; # Some programs need SUID wrappers, can be configured further or are