Emacs and inputs updated
- Added org-roam in Emacs - Flake inputs updated - Other little modifications
This commit is contained in:
parent
3f39ace857
commit
317e50ef9f
13 changed files with 167 additions and 119 deletions
|
@ -3,12 +3,15 @@
|
|||
home-manager.users.ccr = { suites, ... }: {
|
||||
imports = with suites; shell ++ gui ++ browser ++ multimedia ++ dev ++ base;
|
||||
home.packages = with pkgs; [
|
||||
nixpkgs-fmt
|
||||
rnix-lsp
|
||||
ack
|
||||
ranger
|
||||
calibre
|
||||
element-desktop
|
||||
gtk-engine-murrine
|
||||
gtk_engines
|
||||
gsettings-desktop-schemas
|
||||
lxappearance
|
||||
yarn
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -12,9 +12,29 @@
|
|||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
python-language-server
|
||||
python
|
||||
>>>>>>> 651ab71 (Emacs and inputs updated)
|
||||
fd
|
||||
ag
|
||||
nixpkgs-fmt
|
||||
rnix-lsp
|
||||
<<<<<<< HEAD
|
||||
] ++ (if config.network.hostname != "mbp" then python-language-server else [ ]);
|
||||
=======
|
||||
(
|
||||
makeDesktopItem {
|
||||
name = "org-protocol";
|
||||
exec = "emacs %u";
|
||||
#exec = "emacsclient %u";
|
||||
comment = "Org protocol";
|
||||
desktopName = "org-protocol";
|
||||
type = "Application";
|
||||
mimeType = "x-scheme-handler/org-protocol";
|
||||
}
|
||||
)
|
||||
];
|
||||
>>>>>>> 651ab71 (Emacs and inputs updated)
|
||||
}
|
||||
|
|
|
@ -9,8 +9,10 @@
|
|||
)
|
||||
|
||||
(use-package fira-code-mode
|
||||
:custom (fira-code-mode-disabled-ligatures '(":")) ;; List of ligatures to turn off
|
||||
:config (global-fira-code-mode))
|
||||
:custom (fira-code-mode-disabled-ligatures '()) ;; List of ligatures to turn off
|
||||
:config
|
||||
(fira-code-mode-set-font)
|
||||
(global-fira-code-mode))
|
||||
|
||||
|
||||
(defalias 'yes-or-no-p 'y-or-n-p)
|
||||
|
|
|
@ -1,10 +1,28 @@
|
|||
(use-package org
|
||||
:init
|
||||
(setq fill-column 80)
|
||||
(setq fill-column 80)
|
||||
(require 'org-protocol)
|
||||
:hook
|
||||
((org-mode . refill-mode)
|
||||
(org-mode . (lambda () (org-superstar-mode 1)))
|
||||
(org-mode . prettify-symbols-mode)))
|
||||
|
||||
(use-package org-roam
|
||||
:init
|
||||
(setq org-roam-v2-ack t)
|
||||
:custom
|
||||
(org-roam-directory (file-truename "~/roam/"))
|
||||
(org-roam-graph-executable "dot")
|
||||
:bind (("C-c n l" . org-roam-buffer-toggle)
|
||||
("C-c n f" . org-roam-node-find)
|
||||
("C-c n g" . org-roam-graph)
|
||||
("C-c n i" . org-roam-node-insert)
|
||||
("C-c n c" . org-roam-capture)
|
||||
;; Dailies
|
||||
("C-c n j" . org-roam-dailies-capture-today))
|
||||
:config
|
||||
(org-roam-db-autosync-mode)
|
||||
;; If using org-roam-protocol
|
||||
(require 'org-roam-protocol))
|
||||
|
||||
(provide 'config-org)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
(use-package lsp-python-ms
|
||||
:ensure t
|
||||
:hook (python-mode . (lambda ()
|
||||
(setq indent-tabs-mode nil) ; disable tabs
|
||||
(require 'lsp-python-ms)
|
||||
(lsp)))
|
||||
:init
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
|
||||
(defun nixos-rebuild-test ()
|
||||
(interactive)
|
||||
;; async-shell command should be sufficient, to check why it isn't
|
||||
(sudo-utils-shell-command "nixos-rebuild test"))
|
||||
|
||||
(global-set-key [f6] 'nixos-rebuild-test)
|
||||
|
||||
(provide 'nix)
|
||||
|
|
|
@ -8,27 +8,25 @@
|
|||
package = pkgs.whitesur-gtk-theme;
|
||||
};
|
||||
iconTheme = {
|
||||
#name = "Adwaita";
|
||||
#package = pkgs.gnome.adwaita-icon-theme;
|
||||
name = "WhiteSur";
|
||||
package = pkgs.whitesur-icon-theme;
|
||||
name = "Adwaita";
|
||||
package = pkgs.gnome.adwaita-icon-theme;
|
||||
};
|
||||
};
|
||||
home.file.".icons/default" = {
|
||||
recursive = true;
|
||||
source = let
|
||||
drv = pkgs.stdenv.mkDerivation {
|
||||
name = "apple-cursor";
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/ful1e5/apple_cursor/releases/download/v1.2.0/macOSBigSur.tar.gz";
|
||||
sha256 = "sha256-8QNd8EEf11MIBVUbgZy6U1ZnDIWj92EGQmKLR8Edqfw=";
|
||||
};
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
mv * $out/
|
||||
'';
|
||||
};
|
||||
in
|
||||
"${drv}/";
|
||||
};
|
||||
# home.file.".icons/default" = {
|
||||
# recursive = true;
|
||||
# source = let
|
||||
# drv = pkgs.stdenv.mkDerivation {
|
||||
# name = "apple-cursor";
|
||||
# src = pkgs.fetchurl {
|
||||
# url = "https://github.com/ful1e5/apple_cursor/releases/download/v1.2.0/macOSBigSur.tar.gz";
|
||||
# sha256 = "sha256-8QNd8EEf11MIBVUbgZy6U1ZnDIWj92EGQmKLR8Edqfw=";
|
||||
# };
|
||||
# installPhase = ''
|
||||
# mkdir -p $out
|
||||
# mv * $out/
|
||||
# '';
|
||||
# };
|
||||
# in
|
||||
# "${drv}/";
|
||||
# };
|
||||
}
|
||||
|
|
|
@ -6,47 +6,71 @@
|
|||
let
|
||||
modifier = "Mod4";
|
||||
in
|
||||
{
|
||||
enable = true;
|
||||
config = {
|
||||
modifier = modifier;
|
||||
menu = "${pkgs.bemenu}/bin/bemenu-run -b -m 1 -p 'λ'";
|
||||
output = {
|
||||
HDMI-A-2 = {
|
||||
#bg = "~/dotfiles/dotfiles/xorg/wallpaper.jpg fill";
|
||||
};
|
||||
};
|
||||
#fonts = [ "Font Awesome" "Fira Code" ];
|
||||
terminal = "${pkgs.foot}/bin/footclient";
|
||||
bars = [
|
||||
{
|
||||
command = "${pkgs.waybar}/bin/waybar";
|
||||
}
|
||||
];
|
||||
startup = [
|
||||
{
|
||||
command = "foot --server";
|
||||
always = true;
|
||||
}
|
||||
];
|
||||
window.commands = [
|
||||
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
|
||||
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
|
||||
{ criteria = { title = "MetaMask Notification.*"; }; command = "floating enable"; }
|
||||
];
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "us";
|
||||
xkb_variant = "intl";
|
||||
{
|
||||
enable = true;
|
||||
wrapperFeatures.gtk = true;
|
||||
config = {
|
||||
modifier = modifier;
|
||||
menu = "${pkgs.bemenu}/bin/bemenu-run -b -m 1 -p 'λ'";
|
||||
output = {
|
||||
HDMI-A-2 = {
|
||||
#bg = "~/dotfiles/dotfiles/xorg/wallpaper.jpg fill";
|
||||
};
|
||||
};
|
||||
#fonts = [ "Font Awesome" "Fira Code" ];
|
||||
terminal = "${pkgs.foot}/bin/footclient";
|
||||
bars = [
|
||||
{
|
||||
command = "${pkgs.waybar}/bin/waybar";
|
||||
}
|
||||
];
|
||||
|
||||
startup = let
|
||||
gsettings = "${pkgs.glib}/bin/gsettings";
|
||||
gsettingsscript = pkgs.writeShellScript "gsettings-auto.sh" ''
|
||||
expression=""
|
||||
for pair in "$@"; do
|
||||
IFS=:; set -- $pair
|
||||
expressions="$expressions -e 's:^$2=(.*)$:${gsettings} set org.gnome.desktop.interface $1 \1:e'"
|
||||
done
|
||||
IFS=
|
||||
echo "" >/tmp/gsettings.log
|
||||
echo exec sed -E $expressions "''${XDG_CONFIG_HOME:-$HOME/.config}"/gtk-3.0/settings.ini &>>/tmp/gsettings.log
|
||||
eval exec sed -E $expressions "''${XDG_CONFIG_HOME:-$HOME/.config}"/gtk-3.0/settings.ini &>>/tmp/gsettings.log
|
||||
'';
|
||||
gsettingscmd = ''${gsettingsscript} \
|
||||
gtk-theme:gtk-theme-name \
|
||||
icon-theme:gtk-icon-theme-name \
|
||||
font-name:gtk-font-name \
|
||||
cursor-theme:gtk-cursor-theme-name'';
|
||||
in
|
||||
[
|
||||
{
|
||||
command = "foot --server";
|
||||
always = true;
|
||||
}
|
||||
|
||||
#{ always = true; command = "${gsettingscmd}"; }
|
||||
];
|
||||
window.commands = [
|
||||
{ criteria = { app_id = "mpv"; }; command = "sticky enable"; }
|
||||
{ criteria = { app_id = "mpv"; }; command = "floating enable"; }
|
||||
{ criteria = { title = "MetaMask Notification.*"; }; command = "floating enable"; }
|
||||
];
|
||||
input = {
|
||||
"*" = {
|
||||
xkb_layout = "us";
|
||||
xkb_variant = "intl";
|
||||
};
|
||||
};
|
||||
};
|
||||
extraConfig = ''
|
||||
bindsym ${modifier}+p move workspace to output right
|
||||
#seat seat0 xcursor_theme "Adwaita"
|
||||
'';
|
||||
xwayland = true;
|
||||
systemdIntegration = true;
|
||||
};
|
||||
extraConfig = ''
|
||||
bindsym ${modifier}+p move workspace to output right
|
||||
'';
|
||||
xwayland = true;
|
||||
systemdIntegration = true;
|
||||
};
|
||||
};
|
||||
|
||||
programs.waybar = {
|
||||
|
@ -62,7 +86,7 @@
|
|||
"sway/mode"
|
||||
"sway/workspaces"
|
||||
];
|
||||
modules-center = [ ];
|
||||
modules-center = [];
|
||||
modules-right = [
|
||||
"idle_inhibitor"
|
||||
"tray"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue