[feat] Change stuff for mac

This commit is contained in:
Uttarayan Mondal
2024-03-18 12:15:37 +05:30
parent 03aa7cafed
commit d912b2ae49
5 changed files with 21 additions and 13 deletions

View File

@@ -15,7 +15,6 @@
picat picat
spotdl spotdl
davis davis
music-player
pandoc pandoc
gnupg gnupg
gpg-tui gpg-tui
@@ -47,7 +46,6 @@
nil nil
pkg-config pkg-config
lua-language-server lua-language-server
codelldb
(nerdfonts.override { fonts = [ "Hasklig" ]; }) (nerdfonts.override { fonts = [ "Hasklig" ]; })
pfetch-rs pfetch-rs
mpc-cli mpc-cli
@@ -87,7 +85,7 @@
xdg.enable = true; xdg.enable = true;
xdg.userDirs = { xdg.userDirs = {
enable = true; enable = device.isLinux;
music = "${config.home.homeDirectory}/Nextcloud/Music"; music = "${config.home.homeDirectory}/Nextcloud/Music";
}; };

View File

@@ -212,12 +212,12 @@
]; ];
extraConfigLua = extraConfigLua =
let let
codelldb = pkgs.codelldb; codelldb = if device.isLinux then pkgs.vscode-extensions.vadimcn.vscode-lldb.adapter else null;
liblldb = liblldb =
if device.isLinux then if device.isLinux then
"${codelldb}/lldb/lib/liblldb.so" "${codelldb}/lldb/lib/liblldb.so"
else if device.isMac then # else if device.isMac then
"${codelldb}/lldb/lib/liblldb.dylib" # "${codelldb}/lldb/lib/liblldb.dylib"
else null else null
; ;
in in
@@ -273,7 +273,10 @@
}, },
dap = { dap = {
autoload_configurations = false, autoload_configurations = false,
adapter = require'rustaceanvim.config'.get_codelldb_adapter("${codelldb}/bin/codelldb", "${codelldb}/lldb/lib/liblldb.so") ${pkgs.lib.optionalString device.isLinux ''
adapter = require'rustaceanvim.config'.get_codelldb_adapter("${codelldb}/bin/codelldb", "${liblldb}")
''
}
}, },
} }

6
flake.lock generated
View File

@@ -1331,11 +1331,11 @@
}, },
"nixpkgs_6": { "nixpkgs_6": {
"locked": { "locked": {
"lastModified": 1710272261, "lastModified": 1710451336,
"narHash": "sha256-g0bDwXFmTE7uGDOs9HcJsfLFhH7fOsASbAuOzDC+fhQ=", "narHash": "sha256-pP86Pcfu3BrAvRO7R64x7hs+GaQrjFes+mEPowCfkxY=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "0ad13a6833440b8e238947e47bea7f11071dc2b2", "rev": "d691274a972b3165335d261cc4671335f5c67de9",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -2,8 +2,15 @@
with lib; with lib;
let cfg = config.programs.goread; let
in { cfg = config.programs.goread;
# configDir =
# if pkgs.stdenv.isDarwin then
# "${config.home.homeDirectory}Library/Application Support/goread"
# else
# "${config.xdg.configHome}/goread";
in
{
options = { options = {
programs.goread = { programs.goread = {
enable = mkEnableOption "goread - a terminal RSS/Atom reader"; enable = mkEnableOption "goread - a terminal RSS/Atom reader";

View File

@@ -184,5 +184,5 @@ in
inputs.neovim-nightly-overlay.overlay inputs.neovim-nightly-overlay.overlay
inputs.nixneovim.overlays.default inputs.nixneovim.overlays.default
inputs.nur.overlay inputs.nur.overlay
inputs.rustaceanvim.overlays.default # inputs.rustaceanvim.overlays.default
] ]