From 5ae7d6fb04862512ee7740c7f7100752ef428304 Mon Sep 17 00:00:00 2001 From: Julian T Date: Tue, 13 Oct 2020 08:18:29 +0200 Subject: switch to dwm and more programs --- configuration.nix | 58 ++++++++++++++++++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/configuration.nix b/configuration.nix index 2bbdfa1..e160a07 100644 --- a/configuration.nix +++ b/configuration.nix @@ -8,7 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - ]; + ]; boot = { # Use the GRUB 2 boot loader. @@ -102,11 +102,19 @@ enable = false; package = pkgs.i3-gaps; }; - qtile.enable = true; + qtile.enable = false; }; displayManager = { - defaultSession = "none+qtile"; + defaultSession = "none+script"; + session = [{ + name = "script"; + manage = "window"; + start = + '' + /home/julian/.nixxstart + ''; + }]; }; desktopManager = { @@ -130,19 +138,19 @@ enable = true; # Turn down sound when inserting headphones handlers = { - headphone = { - action = - '' - vals=($1) - case ''${vals[2]} in - plug) - whoami >> /tmp/acpi.log - amixer set Master 10% - ;; - esac - ''; - event = "jack/headphone.*"; - }; + headphone = { + action = + '' + vals=($1) + case ''${vals[2]} in + plug) + whoami >> /tmp/acpi.log + amixer set Master 10% + ;; + esac + ''; + event = "jack/headphone.*"; + }; }; }; tlp.enable = true; @@ -157,6 +165,15 @@ printing.enable = true; blueman.enable = true; + + postgresql = { + enable = true; + initialScript = pkgs.writeText "backend-initScript" '' + CREATE ROLE julian WITH LOGIN PASSWORD 'hejmeddig' CREATEDB; + CREATE DATABASE julian; + GRANT ALL PRIVILEGES ON DATABASE julian TO julian; + ''; + }; }; # Define a user account. Don't forget to set a password with ‘passwd’. @@ -195,7 +212,7 @@ wget vim neovim git htop zsh stow pass tree dnsutils gnupg zip unzip gopass tig file imagemagick whois nmap usbutils lshw gnumake aspell aspellDicts.da aspellDicts.en pv acpi jq killall netcat-gnu perl gopass - cowsay + cowsay cdrkit gdb man-pages pdftk sox # Landuage support rustup gcc binutils python3 python go clang-tools @@ -206,7 +223,7 @@ # X stuff feh xscreensaver dmenu rofi xorg.xmodmap xss-lock xclip - acpilight xdotool dunst xcompmgr scrot libnotify + acpilight xdotool dunst xcompmgr scrot libnotify i3lock # Gui applications firefox pavucontrol okular leafpad inkscape gimp @@ -216,11 +233,12 @@ gnome3.simple-scan vlc xorg.xev gnome3.evolution evolution-data-server vimHugeX tor-browser-bundle-bin (mumble.override { pulseSupport = true; }) - (slstatus.override { conf = (builtins.readFile ./slstatus.h); }) + (slstatus.override { conf = (builtins.readFile ./slstatus.h); }) + libreoffice-fresh liferea # Other stuff # texlive.combined.scheme-full biber - aldo nitrokey-udev-rules nitrokey-app + aldo asciidoctor git-lfs youtube-dl sshpass # Hardware stuff. X230 linuxPackages.acpi_call -- cgit v1.2.3