From b2cf386dfe7c77a8a0868aea06df81282403d001 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sat, 9 May 2020 13:53:59 +0200 Subject: [PATCH] Disable home module until proper dotfile migration --- configuration.nix | 2 +- modules/gui.nix | 35 ++++++++++++++++++++++++++++++++++- modules/home.nix | 11 ----------- modules/software.nix | 23 +++++++++++++++++++++-- 4 files changed, 56 insertions(+), 15 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0b4308a..eb635d3 100644 --- a/configuration.nix +++ b/configuration.nix @@ -81,7 +81,7 @@ ./modules/gui.nix ./modules/datasync.nix ./modules/audio.nix - ./modules/home.nix + #./modules/home.nix ./modules/hardware-configuration.nix ]; diff --git a/modules/gui.nix b/modules/gui.nix index 1443753..6c72314 100644 --- a/modules/gui.nix +++ b/modules/gui.nix @@ -30,6 +30,7 @@ imv kanshi redshift-wlr + kitty ]; extraSessionCommands = '' export MOZ_ENABLE_WAYLAND=1 @@ -41,7 +42,39 @@ export SDL_VIDEODRIVER=wayland ''; }; - + wayland.windowManager.sway = { + enable = true; + config = { + input = { * = {xkb_layout = "es"}; }; + menu = "rofi -show drun"; + terminal = "kitty"; + keybindings = lib.mkOptionDefault { + "${modifier}+Return" = "exec ${terminal}"; + "${modifier}+w" = "kill"; + "${modifier}+d" = "exec ${menu}"; + }; + startup = [ + {command = "kitty --class tmux -- tmuxp load ~/.tmuxp/local.yaml"; workspace = "1";} + {command = "firefox"; workspace = "2";} + {command = "emacs"; workspace = "3";} + ]; + window.commands = [ + {command = "floating enable"; criteria = {class = "mpv";} ; } + {command = "floating enable"; criteria = {class = "imv";} ; } + ]; + workspaceAutoBackAndForth = true; + }; + extraSessionCommands = '' + export MOZ_ENABLE_WAYLAND=1 + export MOZ_DBUS_REMOTE=1 + export GRIM_DEFAULT_DIR=/home/coolneng/Photos/Screenshots + export _JAVA_AWT_WM_NONREPARENTING=1 + export QT_QPA_PLATFORM=wayland + export QT_WAYLAND_DISABLE_WINDOWDECORATION="1" + export SDL_VIDEODRIVER=wayland + ''; + }; + # Blue light filter services.redshift = { package = pkgs.redshift-wlr; diff --git a/modules/home.nix b/modules/home.nix index 138f336..48f2b4f 100644 --- a/modules/home.nix +++ b/modules/home.nix @@ -1,16 +1,5 @@ { config, lib, pkgs, ... }: -# Doom emacs overlay -let - -doom-emacs = pkgs.callPackage (builtins.fetchTarball { - url = https://github.com/vlaci/nix-doom-emacs/archive/master.tar.gz; -}) { - doomPrivateDir = ./doom.d; -}; - -in - { # User packages home.packages = [ diff --git a/modules/software.nix b/modules/software.nix index 4d8645e..2b2501f 100644 --- a/modules/software.nix +++ b/modules/software.nix @@ -1,5 +1,16 @@ { config, lib, pkgs, ... }: +# Doom emacs overlay +let + +doom-emacs = pkgs.callPackage (builtins.fetchTarball { + url = https://github.com/vlaci/nix-doom-emacs/archive/master.tar.gz; +}) { + doomPrivateDir = ./doom.d; +}; + +in + { environment.systemPackages = with pkgs; [ # Monitoring @@ -14,8 +25,16 @@ # LaTeX texlive.combined.scheme-full pandoc - # Declarative user config - home-manager + # Text editors + doom-emacs + neovim + # Terminals + tmux + tmuxp + # Development + git + direnv + lorri ]; # Fonts declaration