Satori: misc changes

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-05-30 16:05:26 +05:30
parent 423c2236b7
commit a66daf3ac6
15 changed files with 163 additions and 159 deletions

167
flake.lock generated
View File

@@ -17,12 +17,16 @@
}
},
"emacs": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1650973913,
"narHash": "sha256-Fa+P0FZ/PcU953NBqnz41PnvObjDw0LaS1Vg4LTc2aA=",
"lastModified": 1653045399,
"narHash": "sha256-olhvDOOmxoXhyrVHsPAifTuhHJCH0eyG4t1FzIBJgEs=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "5f258dfdab8e58abe2e44b78a3ccf262041f7b74",
"rev": "f2b5fc6846d69051b7a7b174f7a96aa57b195f6e",
"type": "github"
},
"original": {
@@ -48,6 +52,21 @@
}
},
"flake-utils": {
"locked": {
"lastModified": 1652776076,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
@@ -62,7 +81,7 @@
"type": "github"
}
},
"flake-utils_2": {
"flake-utils_3": {
"locked": {
"lastModified": 1637014545,
"narHash": "sha256-26IZAc5yzlD9FlDT54io1oqG/bBoyka+FJk5guaX4x4=",
@@ -79,14 +98,14 @@
},
"home-manager": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1650920743,
"narHash": "sha256-7xxdtLp295HswhyEjr991QJsBFeadUo43NiAsHnQ5+8=",
"lastModified": 1652996682,
"narHash": "sha256-7ZWyd5W2tM/uxXGn16AJUXenlGPUt/r6zitEcorz5j0=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "223a73c2ba7d358b23666937cb13a59b31df511c",
"rev": "02b15de8ad714409358cffdc6ed518ade03402c4",
"type": "github"
},
"original": {
@@ -97,14 +116,14 @@
},
"home-manager-stable": {
"inputs": {
"nixpkgs": "nixpkgs_2"
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1650841545,
"narHash": "sha256-AF3fk+p/mHbdtyrI3kpms+MoMVOdGIBGJ+7LT7WWdaU=",
"lastModified": 1651519540,
"narHash": "sha256-3k6p8VsTwwRPQjE8rrMh+o2AZACZn/eeYJ7ivdQ/Iro=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "236c6ec21420e44c38ec76de4fc3335bec1859b5",
"rev": "d93d56ab8c1c6aa575854a79b9d2f69d491db7d0",
"type": "github"
},
"original": {
@@ -117,15 +136,15 @@
"mailserver": {
"inputs": {
"blobs": "blobs",
"nixpkgs": "nixpkgs_3",
"nixpkgs": "nixpkgs_4",
"utils": "utils"
},
"locked": {
"lastModified": 1650133068,
"narHash": "sha256-biHmW4DyRjydDUJ9bTqvUgVSSE/MzzAseQERT5yPjWI=",
"lastModified": 1652050932,
"narHash": "sha256-1lOa33Z2sC6CmNdqkCtplVHlMUWVZl4FLT6MYOM+WJQ=",
"owner": "simple-nixos-mailserver",
"repo": "nixos-mailserver",
"rev": "4ce864f52ae7e1733582a32d66c1f94ee11a52c8",
"rev": "4396125ebbbaecbaba0f8e0afb25e492b3be5795",
"type": "gitlab"
},
"original": {
@@ -136,11 +155,11 @@
},
"master": {
"locked": {
"lastModified": 1651001537,
"narHash": "sha256-c8EkxI11BMjTIcs9f1gbLbPNeqXprFrZV6NSGQVxxRw=",
"lastModified": 1653050917,
"narHash": "sha256-eZwDi0VjGt7hRvhFYaq+/olq+na2gEORPgWIj5qx43E=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d67c3c89620e5785a5d8600a3aea94320f7bb56d",
"rev": "6501ee65b0493c880ba2e2b9d62766d6bb10cbca",
"type": "github"
},
"original": {
@@ -152,7 +171,7 @@
},
"nbfc": {
"inputs": {
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_5",
"utils": "utils_2"
},
"locked": {
@@ -171,7 +190,7 @@
},
"neovim-flake": {
"inputs": {
"flake-utils": "flake-utils",
"flake-utils": "flake-utils_2",
"nixpkgs": [
"nvim",
"nixpkgs"
@@ -179,11 +198,11 @@
},
"locked": {
"dir": "contrib",
"lastModified": 1650946819,
"narHash": "sha256-96tABVv1Dauk0FH7Dvk1ZXoabCyIpmx3oJUMLaiF9Ww=",
"lastModified": 1653002438,
"narHash": "sha256-6V8vvZwRH7U/3NcfJQGTzy9KJKsfl/+1xVtbS+84M8M=",
"owner": "neovim",
"repo": "neovim",
"rev": "a75efc237d8669ef12fdfc9a7c5c5cf0f77083dc",
"rev": "eb0aa8bb0ebc3cc233af6a5281c553d14ee57183",
"type": "github"
},
"original": {
@@ -195,14 +214,14 @@
},
"nix-gaming": {
"inputs": {
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1650903776,
"narHash": "sha256-6OWA4R9trOSkmSdsJXslYlQ+VklCIOLpZKfNTtrXHNg=",
"lastModified": 1652398145,
"narHash": "sha256-W6Nv8xXBApGXGq0XQXbH7rDrV3ZjaNv8WMV2Yk4YEzI=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "448bce69b5713a3da870c77bbd6610e4c5fca2a8",
"rev": "ae98c45185cba42bf8b4d0a6922a491bf9faa090",
"type": "github"
},
"original": {
@@ -213,11 +232,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1648065016,
"narHash": "sha256-H1+uesSA0vsSWaPey5KbYdE+D67gXBJNk3Z/HE00M3M=",
"lastModified": 1650970888,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c984213d12225fa5feb640136872da56d2e8f702",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb",
"type": "github"
},
"original": {
@@ -227,11 +246,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1648065016,
"narHash": "sha256-H1+uesSA0vsSWaPey5KbYdE+D67gXBJNk3Z/HE00M3M=",
"lastModified": 1650970888,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "c984213d12225fa5feb640136872da56d2e8f702",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb",
"type": "github"
},
"original": {
@@ -240,6 +259,20 @@
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1650970888,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1642635915,
"narHash": "sha256-vabPA32j81xBO5m3+qXndWp5aqepe+vu96Wkd9UnngM=",
@@ -254,7 +287,7 @@
"type": "indirect"
}
},
"nixpkgs_4": {
"nixpkgs_5": {
"locked": {
"lastModified": 1646811357,
"narHash": "sha256-JJdz8QJ8Gz9ZChGfl4P9Cm8C9mYJLRGVsXcY9gNPtuI=",
@@ -269,13 +302,13 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_6": {
"locked": {
"lastModified": 1650899852,
"narHash": "sha256-FNgHYq0LtGhvq1CniCg1RaH9Ngr7svm9iR6loPWCCNs=",
"lastModified": 1651319551,
"narHash": "sha256-sw4Bx5mdVej9nFEMS9qF6cOTIo6SdDI4V7Mvvdkg94Y=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ecc66a886eb7eec1d671ddfce2a0cccd12bc4807",
"rev": "f153271f124108dc89c1bba2883adf782ad759ff",
"type": "github"
},
"original": {
@@ -284,13 +317,13 @@
"type": "github"
}
},
"nixpkgs_6": {
"nixpkgs_7": {
"locked": {
"lastModified": 1650970888,
"narHash": "sha256-K0Qk6YbkyxBbszkBKCxsLA+jrQpaecf0X8iIO8frS48=",
"lastModified": 1652840887,
"narHash": "sha256-gEK4NNa4GwIgTZE63kt/4WTFAWRTJVSa30+h4ZjFh9U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "27a62a9c603d0d832141682cb4f34964d7b48ebb",
"rev": "52dc75a4fee3fdbcb792cb6fba009876b912bfe0",
"type": "github"
},
"original": {
@@ -300,13 +333,13 @@
"type": "github"
}
},
"nixpkgs_7": {
"nixpkgs_8": {
"locked": {
"lastModified": 1650831523,
"narHash": "sha256-6pDZ08SAXsUx5rOP391x+TG39ENP/XA8VMa1tQvgEjc=",
"lastModified": 1652885393,
"narHash": "sha256-YIgvvlk4iQ1Hi7KD9o5gsojc+ApB+jiH1d5stK8uXiw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "87d34a6b8982e901b8e50096b8e79ebc0e66cda0",
"rev": "48037fd90426e44e4bf03e6479e88a11453b9b66",
"type": "github"
},
"original": {
@@ -316,7 +349,7 @@
"type": "github"
}
},
"nixpkgs_8": {
"nixpkgs_9": {
"locked": {
"lastModified": 1637453606,
"narHash": "sha256-Gy6cwUswft9xqsjWxFYEnx/63/qzaFUwatcbV5GF/GQ=",
@@ -334,11 +367,11 @@
},
"nur": {
"locked": {
"lastModified": 1650996920,
"narHash": "sha256-BkwCJRYkdQBfdr373bbr0aIukPilcIahWpLxRyz72oA=",
"lastModified": 1653042409,
"narHash": "sha256-P3h+rDxT1AScFhwc8MconD5AnhmWykoEMNDatP6IEMU=",
"owner": "nix-community",
"repo": "NUR",
"rev": "ef4034d35ab9bfda6cf4670be2016a029e954f66",
"rev": "f27711d8edb9480dfb1c3c899987df4b94aa2bed",
"type": "github"
},
"original": {
@@ -351,14 +384,14 @@
"inputs": {
"flake-compat": "flake-compat",
"neovim-flake": "neovim-flake",
"nixpkgs": "nixpkgs_7"
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1650961252,
"narHash": "sha256-TYNm2ZRNg0TXI/IdKGSJ527MFaks+6aY2kL7NX7TpWo=",
"lastModified": 1653034615,
"narHash": "sha256-WbofGOnVjhFTKfC7WWwiWdrD5w/eRkm0o1A44vnfWbE=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "184a46c1fc32d0b3c1a5aaad26249f1a970e4d3c",
"rev": "1ff270f63d9179b83ed2aadbdba3d0880a091305",
"type": "github"
},
"original": {
@@ -392,7 +425,7 @@
"master": "master",
"nbfc": "nbfc",
"nix-gaming": "nix-gaming",
"nixpkgs": "nixpkgs_6",
"nixpkgs": "nixpkgs_7",
"nur": "nur",
"nvim": "nvim",
"old": "old",
@@ -403,15 +436,15 @@
},
"rust": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs_8"
"flake-utils": "flake-utils_3",
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1650941217,
"narHash": "sha256-rWpp8pKM9jYcvG7JiNAw+ITOlY20h8K83S3RQc9pY74=",
"lastModified": 1653014441,
"narHash": "sha256-6TRk5POjjevXZUzBnQ7Nlac1It4l12mEAltw5sRfQg8=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "b4cc9abdd42655b61325f3feb062cacc51a54de2",
"rev": "6ae180c1af192475b29e269f10d9da2d5abec4f0",
"type": "github"
},
"original": {
@@ -422,11 +455,11 @@
},
"stable": {
"locked": {
"lastModified": 1650921206,
"narHash": "sha256-RGlfTC2ktqLVw0gBvZeCM//B4ig2CdQJm39sDvm0DBQ=",
"lastModified": 1652881001,
"narHash": "sha256-k9JmPCojaJnqGz4aRXXT1HZqJKHCXijoMfBAb24abXk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3a9e0f239d80fa134e8fcbdee4dfc793902da37e",
"rev": "2d474d6a4a43a0348b78db68dc00c491032cf5cf",
"type": "github"
},
"original": {
@@ -468,11 +501,11 @@
},
"utils_3": {
"locked": {
"lastModified": 1649676176,
"narHash": "sha256-OWKJratjt2RW151VUlJPRALb7OU2S5s+f0vLj4o1bHM=",
"lastModified": 1652776076,
"narHash": "sha256-gzTw/v1vj4dOVbpBSJX4J0DwUR6LIyXo7/SuuTJp1kM=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "a4b154ebbdc88c8498a5c7b01589addc9e9cb678",
"rev": "04c1b180862888302ddfb2e3ad9eaa63afc60cf8",
"type": "github"
},
"original": {

View File

@@ -7,23 +7,27 @@ idk random variables to match my color theme
#+begin_src emacs-lisp
; -*- lexical-binding: t; -*-
(setq
c-bg "#073642"
c-fg "#eee8d5"
c-red "#dc322f"
c-green "#859900"
c-yellow "#b58900"
c-blue "#268bd2"
c-magenta "#d33682"
c-cyan "#2aa198"
c-white "#eee8d5"
c-black "#002b36"
c-red-2 "#cb4b16"
c-green-2 "#586e75"
c-yellow-2 "#657b83"
c-blue-2 "#839496"
c-magenta-2 "#6c71c4"
c-cyan-2 "#93a1a1"
c-white-2 "#fdf6e3")
c-bg "#073642"
c-fg "#eee8d5"
c-red "#dc322f"
c-green "#859900"
c-yellow "#b58900"
c-blue "#268bd2"
c-magenta "#d33682"
c-cyan "#2aa198"
c-white "#eee8d5"
c-black "#002b36"
c-red-2 "#cb4b16"
c-green-2 "#586e75"
c-yellow-2 "#657b83"
c-blue-2 "#839496"
c-magenta-2 "#6c71c4"
c-cyan-2 "#93a1a1"
c-white-2 "#fdf6e3")
#+end_src
#+begin_src python
#+end_src
* Settings
@@ -46,7 +50,7 @@ c-white-2 "#fdf6e3")
** Setting some variables
#+begin_src emacs-lisp
(setq initial-major-mode 'emacs-lisp-mode
(setq initial-major-mode 'emacs-lisp-mode
frame-resize-pixelwise t
auto-window-vscroll nil
scroll-step 1
@@ -54,8 +58,8 @@ c-white-2 "#fdf6e3")
confirm-kill-processes nil
dark-theme t
inhibit-startup-screen t)
(setq-default tab-width 2
indent-tabs-mode nil)
(setq-default tab-width 2
indent-tabs-mode nil)
#+end_src
** Emacs startup hook
@@ -120,7 +124,6 @@ Add orderless for selectrum
:after selectrum
:config
(setq completion-styles '(orderless basic))
(add-to-list 'orderless-matching-styles 'orderless-flex)
(savehist-mode)
(setq orderless-skip-highlighting (lambda () selectrum-is-active))
(setq selectrum-highlight-candidates-function #'orderless-highlight-matches))
@@ -247,6 +250,7 @@ Configure treemacs-evil to get colemak-dh bindings
*** Language specific LSP packages
#+begin_src emacs-lisp
(use-package lsp-haskell)
(use-package lsp-grammarly)
#+end_src
*** Configure flycheck
@@ -273,7 +277,8 @@ For autocomplete
(define-key company-active-map (kbd "C-n") 'company-select-next)
(define-key company-active-map (kbd "C-e") 'company-select-previous)
(define-key company-search-map (kbd "C-n") 'company-select-next)
(define-key company-search-map (kbd "C-e") 'company-select-previous))
(define-key company-search-map (kbd "C-e") 'company-select-previous)
(company-mode))
#+end_src
*** Configure company-quickhelp
@@ -302,6 +307,12 @@ For autocomplete
(use-package nix-mode
:mode "\\.nix\\'")
(add-to-list 'lsp-language-id-configuration '(nix-mode . "nix"))
(lsp-register-client
(make-lsp-client :new-connection (lsp-stdio-connection '("rnix-lsp"))
:major-modes '(nix-mode)
:server-id 'nix))
(use-package hcl-mode
:mod
@@ -342,8 +353,8 @@ For autocomplete
centaur-tabs-set-icons t)
(centaur-tabs-group-buffer-groups)
(add-hook 'server-after-make-frame-hook 'centaur-tabs-mode)
(centaur-tabs-headline-match)
(set-face-attribute 'tab-line nil :inherit 'centaur-tabs-unselected))
(set-face-attribute 'tab-line nil :inherit 'centaur-tabs-unselected)
(centaur-tabs-headline-match))
#+end_src
** Misc packages
@@ -418,6 +429,13 @@ For autocomplete
(add-hook 'haskell-literate-mode-hook #'lsp)
#+end_src
* Random eye candy stuff
#+begin_src emacs-lisp
(use-package pretty-mode
:config
(global-pretty-mode t))
#+end_src
* Custom mode line
#+begin_src emacs-lisp
(defface mode-line-buf-name
@@ -507,7 +525,7 @@ This returns the command to run in the terminal
(let ((full buffer-file-name)
(file (file-name-sans-extension buffer-file-name)))
(pcase (file-name-extension full)
("c" (concat "gcc " full "-lm -pthread -o " file " && " file " && rm " file))
("c" (concat "gcc " full " -lm -pthread -o " file " && " file " && rm " file))
("java" (concat "java" full))
("py" (concat "python" full))
("cpp" (concat "g++ " full " -o " file " && " file " && rm " file))

View File

@@ -16,7 +16,9 @@ white = "#eee8d5"
config :: Config
config =
defaultConfig
{ font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16",
{
--font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,Noto Sans CJK JP:style=Regular:pixelsize=16,Noto Sans CJK KR:style=Regular:pixelsize=16,Noto Sans CJK SC:style=Regular:pixelsize=16",
font = "xft:Fira Mono:style=Regular:antialias=true:pixelsize,Font Awesome 5 Brands:pixelsize=16,Font Awesome 5 Free:pixelsize=16:style=Solid,Lohit Devanagari:style=Regular:pixelsize=16,Lohit Gurmukhi:style=Regular:pixelsize=16,HanaMinA:style=Regular:pixelsize=16,HanaMinB:style=Regular:pixelsize=16",
additionalFonts =
[ "xft:Font Awesome 5 Free:pixelsize=15:style=Solid",
"xft:Font Awesome 5 Brands:pixelsize=15"

View File

@@ -38,7 +38,7 @@ myManageHook = composeAll
, className =? "Anki" --> doFloat
]
tabConfig = defaultTheme {
tabConfig = def {
activeTextColor = bgColor,
activeColor = fgColor,
inactiveTextColor = fgColor,
@@ -55,7 +55,7 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
spawn $ XMonad.terminal conf)
, ((modMask, xK_d),
spawn "/usr/bin/env dmenu_run -l 20")
spawn "dmenu_run -l 20")
, ((shiftMask, xK_Print),
spawn "flameshot gui")

View File

@@ -84,6 +84,7 @@
(qjackctl.override { jackSession = true; })
stable.lmms
# stable.blender
thunderbird
neomutt
mailcap
element-desktop

View File

@@ -97,7 +97,7 @@ in
type "httpd"
quality "9"
name "Vorbis Stream"
port "8000"
port "8001"
max_clients "4"
}
filesystem_charset "UTF-8"

View File

@@ -6,7 +6,7 @@
wireless.enable = true;
wireless.interfaces = [ "wlp0s20f3" ];
firewall = {
allowedTCPPorts = [ 22 18172 6600 8000 ];
allowedTCPPorts = [ 22 18172 6600 8001 ];
allowedUDPPorts = [ 22 17840 18172 ];
};
interfaces = {

View File

@@ -10,7 +10,6 @@
substituters = [
"https://nix-gaming.cachix.org"
"https://nix-community.cachix.org"
"https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store"
];
trusted-public-keys = [
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="

View File

@@ -5,13 +5,13 @@
w3m
tmux
bc
ghc
gnumake
pciutils
ntfs3g
python3
htop
nodejs
ghc
wget
ripgrep
kbd
@@ -24,15 +24,8 @@
docker-compose
nodePackages.typescript
rust-bin.nightly.latest.default
#language servers
rust-analyzer
ccls
clang-tools
nodePackages.typescript-language-server
nodePackages.vscode-langservers-extracted
rnix-lsp
python3Packages.python-lsp-server
haskell-language-server
vulkan-tools
vulkan-headers
msr-tools

View File

@@ -3,11 +3,12 @@
{
services = {
tor.enable = true;
logmein-hamachi.enable = true;
logmein-hamachi.enable = false;
openssh = {
enable = true;
permitRootLogin = "yes";
};
btrfs.autoScrub.enable = true;
udev.extraRules = ''
ACTION=="add|change", KERNEL=="sda", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"

View File

@@ -43,7 +43,8 @@
font-awesome
monoid
office-code-pro
noto-fonts-cjk
hanazono
# noto-fonts-cjk
];
users.users.natto = {
isNormalUser = true;

View File

@@ -48,6 +48,10 @@ in
nvidiaBusId = "PCI:1:0:0";
};
modesetting = { enable = true; };
powerManagement = {
enable = true;
finegrained = true;
};
};
};
services.xserver = {

View File

@@ -207,7 +207,7 @@ local on_attach = function(client, bufnr)
buf_set_keymap('n', "<M-f>", "<cmd>lua vim.lsp.buf.formatting()<CR>", {silent=true, noremap=true})
end
local servers = { "ccls", "rust_analyzer", "tsserver", "hls", "pylsp", "texlab", "rnix", "terraform_lsp", "html", "cssls", "jsonls", "svelte", "gopls" }
local servers = { "clangd", "rust_analyzer", "tsserver", "hls", "pylsp", "texlab", "rnix", "terraform_lsp", "html", "cssls", "jsonls", "svelte", "gopls" }
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
capabilities.textDocument.completion.completionItem.resolveSupport = {

View File

@@ -9,7 +9,7 @@
support32Bit = true;
};
pulse.enable = true;
jack.enable = true;
# jack.enable = true;
socketActivation = true;
# https://nixos.wiki/wiki/PipeWire#Low-latency_setup

View File

@@ -17,54 +17,6 @@ emacsWithPackagesFromUsePackage {
alwaysTangle = true;
extraEmacsPackages = epkgs: with epkgs; [
use-package
tsc
(epkgs.tree-sitter-langs.withPlugins (_: epkgs.tree-sitter-langs.plugins))
];
#https://github.com/NixOS/nixpkgs/issues/108089
override = epkgs: epkgs // {
tsc = epkgs.melpaPackages.tsc.overrideAttrs (oa:
let
version = "0.18.0";
tsc-dyn = fetchurl {
url = "https://github.com/emacs-tree-sitter/elisp-tree-sitter/releases/download/${version}/tsc-dyn.so";
sha256 = "sha256-97KDzdYNJN4ceJeuQxZtQ/7iU0CYXEp6gcSM9rNwlyE=";
};
in
{
postInstall = ''
cp ${tsc-dyn} $out/share/emacs/site-lisp/elpa/tsc-${oa.version}/tsc-dyn.so
echo -n ${version} > $out/share/emacs/site-lisp/elpa/tsc-${oa.version}/DYN-VERSION
'';
});
tree-sitter-langs = epkgs.melpaPackages.tree-sitter-langs.overrideAttrs (oa:
let
version = "0.11.3";
tree-sitter-grammars = stdenv.mkDerivation rec {
inherit version;
name = "tree-sitter-grammars";
src = fetchzip {
url = "https://github.com/emacs-tree-sitter/tree-sitter-langs/releases/download/${version}/tree-sitter-grammars-linux-${version}.tar.gz";
sha256 = "sha256-85Yy6NuEVnibehmalz2qr0pCENYwmxsyyIf0TUYnDY8=";
stripRoot = false;
};
installPhase = ''
install -d $out/langs/bin
echo -n "${version}" > $out/langs/bin/BUNDLE-VERSION
install -m444 * $out/langs/bin
'';
};
in
{
src = fetchFromGitHub {
owner = "emacs-tree-sitter";
repo = "tree-sitter-langs";
rev = version;
sha256 = "sha256-Br+ON7a8FWoU75ySPSP2DkiyHjj80TP5XvcMMJrU9+k=";
};
postPatch = ''
substituteInPlace ./tree-sitter-langs-build.el \
--replace "tree-sitter-langs-grammar-dir tree-sitter-langs--dir" "tree-sitter-langs-grammar-dir \"${tree-sitter-grammars}/langs\""
'';
});
gruvbox-theme = epkgs.melpaPackages.gruvbox-theme.overrideAttrs (_: { patches = [ ./gruvbox-el.patch ]; });
};
}