Improved things

This commit is contained in:
Jan Bulthuis committed 2024-07-19 13:59:26 +02:00
1 parent 47365d05f5
commit e1b1e7cc38
8 files changed
+97 -12

No files matched your search

-1
View File
@@ -15,7 +15,6 @@ in {
wget
curl
dig
nix-tree
procps
];
+2
View File
@@ -9,6 +9,8 @@
./firefox/default.nix
./fontconfig/default.nix
./foot/default.nix
./language/nix.nix
./language/rust.nix
./mako/default.nix
./neovim/default.nix
./obsidian/default.nix
@@ -12,6 +12,9 @@ in {
config = lib.mkIf cfg.enable {
# Set desktop type to wayland
modules.desktop.wayland = true;
# TODO: Move elsewhere and make keybindings more configurable
modules.rofi.enable = true;
# Change desktop to execute river
modules.desktop.initScript = ''
+46
View File
@@ -0,0 +1,46 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.nix;
in {
options.modules.nix = {
enable = mkEnableOption "nix";
};
config = mkIf cfg.enable {
# Development packages
home.packages = with pkgs; [
nix-tree
nixfmt-rfc-style
nixd
];
# VSCode configuration
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
jnoortheen.nix-ide
];
userSettings = {
"[nix]" = {
"editor.tabSize" = 2;
};
"nix.enableLanguageServer" = true;
"nix.serverPath" = "nixd";
"nix.serverSettings" = {
nixd = {
formatting = {
command = [ "nixfmt" ];
};
};
};
};
};
# Neovim configuration
programs.nixvim = {
};
};
}
+39
View File
@@ -0,0 +1,39 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.rust;
in {
options.modules.rust = {
enable = mkEnableOption "rust";
};
config = mkIf cfg.enable {
# Development packages
home.packages = with pkgs; [
rustc
cargo
rust-analyzer
rustfmt
];
# VSCode configuration
programs.vscode = {
extensions = with pkgs.vscode-extensions; [
rust-lang.rust-analyzer
];
userSettings = {
"[rust]" = {
};
};
};
# Neovim configuration
programs.nixvim = {
plugins.rust-tools = {
enable = true;
};
};
};
}
-4
View File
@@ -169,10 +169,6 @@ in {
# enable = true;
#};
plugins.rust-tools = {
enable = true;
};
plugins.vimtex = {
enable = true;
texlivePackage = null;
+3 -6
View File
@@ -27,13 +27,9 @@ in {
programs.vscode = {
enable = true;
mutableExtensionsDir = false;
extensions = with pkgs.vscode-extensions; [
eamodio.gitlens
# Language support
# TODO: Move to separate language modules
bbenoist.nix
rust-lang.rust-analyzer
];
userSettings = {
@@ -45,8 +41,9 @@ in {
"terminal.integrated.fontFamily" = mkForce "'${cfg.codeFont.name}', '${cfg.fallbackFont.name}'";
"terminal.integrated.fontSize" = mkForce (cfg.codeFont.recommendedSize); # Convert pt to px
# Autoformatting
# Formatting
"editor.formatOnSave" = true;
"editor.tabSize" = 4;
# Layout
"window.menuBarVisibility" = "hidden";