new generation

This commit is contained in:
L-Nafaryus 2023-06-22 15:33:50 +05:00
parent 5c5ba91aa7
commit 83b1b001e9
8 changed files with 65 additions and 60 deletions

View File

@ -116,25 +116,28 @@
(setq mu4e-confirm-quit nil) (setq mu4e-confirm-quit nil)
(setq mu4e-attachment-dir "~/.mail/.attachments") (setq mu4e-attachment-dir "~/.mail/.attachments")
(require 'mu4e-alert) (require 'mu4e-alert)
(setq mu4e-alert-interesting-mail-query "flag:unread AND maildir:/gmail-main/Inbox") (setq mu4e-alert-interesting-mail-query "flag:unread AND maildir:/gmail-main/Inbox")
(mu4e-alert-enable-mode-line-display) (mu4e-alert-enable-mode-line-display)
(defun refresh-mu4e-alert-mode-line () (defun refresh-mu4e-alert-mode-line ()
(interactive) (interactive)
(mu4e~proc-kill) (mu4e~proc-kill)
(async-shell-command "mbsync -a") (async-shell-command "mbsync -a")
(mu4e-alert-enable-mode-line-display) (mu4e-alert-enable-mode-line-display)
(mu4e-alert-enable-notifications) (mu4e-alert-enable-notifications)
)
(run-with-timer 0 60 'refresh-mu4e-alert-mode-line)
) )
(run-with-timer 0 60 'refresh-mu4e-alert-mode-line) (after! projectile
(setq projectile-require-project-root nil)
(setq projectile-project-search-path '("~/projects"))
) )
(setq projectile-require-project-root nil)
(setq projectile-project-search-path '("~/projects"))
(after! meson-mode (after! meson-mode
(add-hook 'meson-mode-hook 'company-mode)) (add-hook 'meson-mode-hook 'company-mode)
)

View File

@ -56,7 +56,7 @@
(evil +everywhere); come to the dark side, we have cookies (evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding fold ; (nigh) universal code folding
;;(format +onsave) ; automated prettiness format ;;(format +onsave) ; automated prettiness
;;god ; run Emacs commands without modifier keys ;;god ; run Emacs commands without modifier keys
;;lispy ; vim for lisp, for people who don't like vim ;;lispy ; vim for lisp, for people who don't like vim
;;multiple-cursors ; editing in many places at once ;;multiple-cursors ; editing in many places at once
@ -140,7 +140,7 @@
;;(haskell +lsp) ; a language that's lazier than I am ;;(haskell +lsp) ; a language that's lazier than I am
;;hy ; readability of scheme w/ speed of python ;;hy ; readability of scheme w/ speed of python
;;idris ; a language you can depend on ;;idris ; a language you can depend on
;;json ; At least it ain't XML json ; At least it ain't XML
;;(java +lsp) ; the poster child for carpal tunnel syndrome ;;(java +lsp) ; the poster child for carpal tunnel syndrome
;;javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;javascript ; all(hope(abandon(ye(who(enter(here))))))
;;julia ; a better, faster MATLAB ;;julia ; a better, faster MATLAB
@ -157,7 +157,7 @@
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional
python ; beautiful is better than ugly (python +lsp +pyright) ; beautiful is better than ugly
;;qt ; the 'cutest' gui framework ever ;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs ;;racket ; a DSL for DSLs
;;raku ; the artist formerly known as perl6 ;;raku ; the artist formerly known as perl6

View File

@ -29,11 +29,11 @@
"nixpkgs-stable": "nixpkgs-stable_2" "nixpkgs-stable": "nixpkgs-stable_2"
}, },
"locked": { "locked": {
"lastModified": 1686133476, "lastModified": 1687317349,
"narHash": "sha256-RCkGMdQ9oivH4bdEwQDyFEIP7bQmdPahTFtBw5rVuyk=", "narHash": "sha256-fj+4afP27luddlVlkukSvl3YP3x15k1tohloSseM34Y=",
"owner": "nix-community", "owner": "nix-community",
"repo": "emacs-overlay", "repo": "emacs-overlay",
"rev": "d80c21d639094ecc95f5ea437a141090499384d0", "rev": "67bc8a38d8517ee1b9c8e2e850ad27b8923b4d0e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -78,11 +78,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1685518550, "lastModified": 1687171271,
"narHash": "sha256-o2d0KcvaXzTrPRIo0kOLV0/QXHhDQ5DTi+OxcjO8xqY=", "narHash": "sha256-BJlq+ozK2B1sJDQXS3tzJM5a+oVZmi1q0FlBK/Xqv7M=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "a1720a10a6cfe8234c0e93907ffe81be440f4cef", "rev": "abfb11bd1aec8ced1c9bb9adfe68018230f4fb3c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -120,11 +120,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1686142265, "lastModified": 1687301540,
"narHash": "sha256-IP0xPa0VYqxCzpqZsg3iYGXarUF+4r2zpkhwdHy9WsM=", "narHash": "sha256-vFbCrE9WlOSVpyAT5VNR3bqMB7W7sDzMNDcO6JqtmBw=",
"owner": "rycee", "owner": "rycee",
"repo": "home-manager", "repo": "home-manager",
"rev": "39c7d0a97a77d3f31953941767a0822c94dc01f5", "rev": "9a76fb9a852fdf9edd3b0aabc119efa1d618f969",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -176,11 +176,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1684899633, "lastModified": 1686838567,
"narHash": "sha256-NtwerXX8UFsoNy6k+DukJMriWtEjQtMU/Urbff2O2Dg=", "narHash": "sha256-aqKCUD126dRlVSKV6vWuDCitfjFrZlkwNuvj5LtjRRU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "4cc688ee711159b9bcb5a367be44007934e1a49d", "rev": "429f232fe1dc398c5afea19a51aad6931ee0fb89",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -239,11 +239,11 @@
}, },
"nixpkgs-stable_2": { "nixpkgs-stable_2": {
"locked": { "locked": {
"lastModified": 1685952468, "lastModified": 1687193290,
"narHash": "sha256-YCOr9kttCqoa9IZMjHxX6SlwenTg7FsSmG9TaT76mSE=", "narHash": "sha256-3bknptEbd9LLlCiFRFkMwmciHB+QXET41gH/RX+Nr1A=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "70f7275b32f49bc67ae3532b758b80cb6c27f98a", "rev": "ad157fe26e74211e7dde0456cb3fd9ab78b6e552",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -255,11 +255,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1686089707, "lastModified": 1687274257,
"narHash": "sha256-LTNlJcru2qJ0XhlhG9Acp5KyjB774Pza3tRH0pKIb3o=", "narHash": "sha256-TutzPriQcZ8FghDhEolnHcYU2oHIG5XWF+/SUBNnAOE=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "af21c31b2a1ec5d361ed8050edd0303c31306397", "rev": "2c9ecd1f0400076a4d6b2193ad468ff0a7e7fdc5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -270,11 +270,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1685931219, "lastModified": 1686960236,
"narHash": "sha256-8EWeOZ6LKQfgAjB/USffUSELPRjw88A+xTcXnOUvO5M=", "narHash": "sha256-AYCC9rXNLpUWzD9hm+askOfpliLEC9kwAo7ITJc4HIw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7409480d5c8584a1a83c422530419efe4afb0d19", "rev": "04af42f3b31dba0ef742d254456dc4c14eedac86",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -286,11 +286,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1685931219, "lastModified": 1686960236,
"narHash": "sha256-8EWeOZ6LKQfgAjB/USffUSELPRjw88A+xTcXnOUvO5M=", "narHash": "sha256-AYCC9rXNLpUWzD9hm+askOfpliLEC9kwAo7ITJc4HIw=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7409480d5c8584a1a83c422530419efe4afb0d19", "rev": "04af42f3b31dba0ef742d254456dc4c14eedac86",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -301,11 +301,11 @@
}, },
"nur": { "nur": {
"locked": { "locked": {
"lastModified": 1686143635, "lastModified": 1687322502,
"narHash": "sha256-BmsQRuHNoOIQl9Zv/aettlJUt366HoRW1xQnI8n3C64=", "narHash": "sha256-Xof4hZTleIF/rmhZNPHCTt/wKJ7Ex/hVZ7QaZAn1epA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "b54d94d6eb99231590921225e1601705b97aa968", "rev": "6e3daaa6f11e491556306e4422bd957de24f05a9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -12,6 +12,7 @@ in {
user.packages = with pkgs; [ user.packages = with pkgs; [
onlyoffice-bin onlyoffice-bin
tectonic tectonic
biber
]; ];
}; };
} }

View File

@ -11,19 +11,18 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
gnomeExtensions.containers #gnomeExtensions.containers
gnomeExtensions.tray-icons-reloaded gnomeExtensions.tray-icons-reloaded
]; ];
services.xserver = { services.xserver = {
enable = true; enable = true;
# TODO: unable to login with xorg, only wayland works
displayManager.gdm.enable = false; displayManager.gdm.enable = false;
displayManager.lightdm.enable = true;
displayManager.gdm.wayland = false; displayManager.gdm.wayland = false;
displayManager.lightdm.enable = true;
desktopManager.gnome.enable = true; desktopManager.gnome.enable = true;
#autorun = false;
#displayManager.startx.enable = true;
}; };
}; };

View File

@ -20,6 +20,7 @@ in {
(if cfg.video.enable then [ (if cfg.video.enable then [
unstable.obs-studio unstable.obs-studio
unstable.obs-studio-plugins.obs-vkcapture
unstable.handbrake unstable.handbrake
ffmpeg ffmpeg
] else []); ] else []);

View File

@ -41,9 +41,10 @@ in {
# :tools lookup & :lang org +roam # :tools lookup & :lang org +roam
sqlite sqlite
# :lang latex & :lang org (latex previews) # :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium texlive.combined.scheme-full
# :lang nix # :lang nix
nixfmt nixfmt
rnix-lsp
]; ];
env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ]; env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ];

View File

@ -22,20 +22,20 @@ in {
easyeffects easyeffects
]; ];
hardware.pulseaudio.enable = false; hardware.pulseaudio.enable = false;
# HACK Prevents ~/.esd_auth files by disabling the esound protocol module # HACK Prevents ~/.esd_auth files by disabling the esound protocol module
# for pulseaudio, which I likely don't need. Is there a better way? # for pulseaudio, which I likely don't need. Is there a better way?
hardware.pulseaudio.configFile = hardware.pulseaudio.configFile =
let let
inherit (pkgs) runCommand pulseaudio; inherit (pkgs) runCommand pulseaudio;
paConfigFile = runCommand "disablePulseaudioEsoundModule" paConfigFile = runCommand "disablePulseaudioEsoundModule"
{ buildInputs = [ pulseaudio ]; } '' { buildInputs = [ pulseaudio ]; } ''
mkdir "$out" mkdir "$out"
cp ${pulseaudio}/etc/pulse/default.pa "$out/default.pa" cp ${pulseaudio}/etc/pulse/default.pa "$out/default.pa"
sed -i -e 's|load-module module-esound-protocol-unix|# ...|' "$out/default.pa" sed -i -e 's|load-module module-esound-protocol-unix|# ...|' "$out/default.pa"
''; '';
in in
mkIf config.hardware.pulseaudio.enable "${paConfigFile}/default.pa"; mkIf config.hardware.pulseaudio.enable "${paConfigFile}/default.pa";
user.extraGroups = [ "audio" ]; user.extraGroups = [ "audio" ];
}; };