diff options
author | Julian T <julian@jtle.dk> | 2020-10-13 08:18:29 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2020-10-13 08:18:29 +0200 |
commit | 5ae7d6fb04862512ee7740c7f7100752ef428304 (patch) | |
tree | ec7ca374f95f823178b87898b0167362fb4a3bf7 /configuration.nix | |
parent | b6e6f75621d5a01f73f2530f8ef2ffa7c37afdb0 (diff) |
switch to dwm and more programs
Diffstat (limited to 'configuration.nix')
-rw-r--r-- | configuration.nix | 58 |
1 files 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 |