moved spellcheck to separate file
This commit is contained in:
parent
c38754530f
commit
db799a8253
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +1,4 @@
|
||||||
result
|
result
|
||||||
.direnv
|
.direnv
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
19
.vscode/settings.json
vendored
Normal file
19
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{
|
||||||
|
"cSpell.words": [
|
||||||
|
"bitwarden",
|
||||||
|
"forgejo",
|
||||||
|
"gids",
|
||||||
|
"headscale",
|
||||||
|
"jellyfin",
|
||||||
|
"macvlan",
|
||||||
|
"nextcloud",
|
||||||
|
"nixos",
|
||||||
|
"nixpkgs",
|
||||||
|
"pihole",
|
||||||
|
"pkgs",
|
||||||
|
"rpool",
|
||||||
|
"searx",
|
||||||
|
"ublock",
|
||||||
|
"uids"
|
||||||
|
]
|
||||||
|
}
|
|
@ -6,7 +6,7 @@
|
||||||
# LC_ADDRESS = "en_IE.UTF-8"; # lets just get used to this one now
|
# LC_ADDRESS = "en_IE.UTF-8"; # lets just get used to this one now
|
||||||
# LC_TELEPHONE = "en_IE.UTF-8"; # lets just get used to this one now
|
# LC_TELEPHONE = "en_IE.UTF-8"; # lets just get used to this one now
|
||||||
LC_MONETARY = "en_US.UTF-8"; # to be changed once I move
|
LC_MONETARY = "en_US.UTF-8"; # to be changed once I move
|
||||||
LC_PAPER = "en_US.UTF-8"; # convient for american printers until I move
|
LC_PAPER = "en_US.UTF-8"; # convenient for american printers until I move
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
userConifg = osConfig.host.users.leyla;
|
userConfig = osConfig.host.users.leyla;
|
||||||
hardware = osConfig.host.hardware;
|
hardware = osConfig.host.hardware;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -14,16 +14,16 @@ in {
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
packages =
|
packages =
|
||||||
lib.lists.optionals userConifg.isTerminalUser (
|
lib.lists.optionals userConfig.isTerminalUser (
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
# comand line tools
|
# command line tools
|
||||||
yt-dlp
|
yt-dlp
|
||||||
ffmpeg
|
ffmpeg
|
||||||
imagemagick
|
imagemagick
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
++ (
|
++ (
|
||||||
lib.lists.optionals userConifg.isDesktopUser (
|
lib.lists.optionals userConfig.isDesktopUser (
|
||||||
with pkgs; [
|
with pkgs; [
|
||||||
# helvetica font
|
# helvetica font
|
||||||
aileron
|
aileron
|
||||||
|
|
101
homes/leyla/vscode/default.nix
Normal file
101
homes/leyla/vscode/default.nix
Normal file
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
osConfig,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
nix-development-enabled = osConfig.host.nix-development.enable;
|
||||||
|
in {
|
||||||
|
nixpkgs = {
|
||||||
|
overlays = [
|
||||||
|
inputs.nix-vscode-extensions.overlays.default
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
bash.shellAliases = {
|
||||||
|
code = "codium";
|
||||||
|
};
|
||||||
|
|
||||||
|
vscode = let
|
||||||
|
extensions = inputs.nix-vscode-extensions.extensions.${pkgs.system};
|
||||||
|
open-vsx = extensions.open-vsx;
|
||||||
|
vscode-marketplace = extensions.vscode-marketplace;
|
||||||
|
in {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
package = pkgs.vscodium;
|
||||||
|
|
||||||
|
mutableExtensionsDir = false;
|
||||||
|
enableUpdateCheck = false;
|
||||||
|
enableExtensionUpdateCheck = false;
|
||||||
|
|
||||||
|
userSettings = lib.mkMerge [
|
||||||
|
{
|
||||||
|
"workbench.colorTheme" = "Atom One Dark";
|
||||||
|
"cSpell.language" = "en,de-DE,it";
|
||||||
|
"cSpell.userWords" = import ./user-words.nix;
|
||||||
|
}
|
||||||
|
(lib.mkIf nix-development-enabled {
|
||||||
|
"nix.enableLanguageServer" = true;
|
||||||
|
"nix.serverPath" = "nil";
|
||||||
|
"[nix]" = {
|
||||||
|
"editor.defaultFormatter" = "kamadorueda.alejandra";
|
||||||
|
"editor.formatOnPaste" = true;
|
||||||
|
"editor.formatOnSave" = true;
|
||||||
|
"editor.formatOnType" = true;
|
||||||
|
};
|
||||||
|
"alejandra.program" = "alejandra";
|
||||||
|
"nixpkgs" = {
|
||||||
|
"expr" = "import <nixpkgs> {}";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
extensions = (
|
||||||
|
with open-vsx;
|
||||||
|
[
|
||||||
|
# vs code feel extensions
|
||||||
|
ms-vscode.atom-keybindings
|
||||||
|
akamud.vscode-theme-onedark
|
||||||
|
streetsidesoftware.code-spell-checker
|
||||||
|
streetsidesoftware.code-spell-checker-german
|
||||||
|
streetsidesoftware.code-spell-checker-italian
|
||||||
|
jeanp413.open-remote-ssh
|
||||||
|
|
||||||
|
# html extensions
|
||||||
|
formulahendry.auto-rename-tag
|
||||||
|
ms-vscode.live-server
|
||||||
|
|
||||||
|
# js extensions
|
||||||
|
dsznajder.es7-react-js-snippets
|
||||||
|
dbaeumer.vscode-eslint
|
||||||
|
standard.vscode-standard
|
||||||
|
firsttris.vscode-jest-runner
|
||||||
|
stylelint.vscode-stylelint
|
||||||
|
tauri-apps.tauri-vscode
|
||||||
|
|
||||||
|
# astro blog extensions
|
||||||
|
astro-build.astro-vscode
|
||||||
|
unifiedjs.vscode-mdx
|
||||||
|
|
||||||
|
# misc extensions
|
||||||
|
bungcip.better-toml
|
||||||
|
]
|
||||||
|
++ (lib.lists.optionals nix-development-enabled [
|
||||||
|
# nix extensions
|
||||||
|
pinage404.nix-extension-pack
|
||||||
|
jnoortheen.nix-ide
|
||||||
|
kamadorueda.alejandra
|
||||||
|
])
|
||||||
|
++ (
|
||||||
|
with vscode-marketplace; [
|
||||||
|
# js extensions
|
||||||
|
karyfoundation.nearley
|
||||||
|
]
|
||||||
|
)
|
||||||
|
);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
3
homes/leyla/vscode/user-words.nix
Normal file
3
homes/leyla/vscode/user-words.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[
|
||||||
|
"leyla"
|
||||||
|
]
|
|
@ -17,7 +17,7 @@
|
||||||
initrd = {
|
initrd = {
|
||||||
availableKernelModules = ["xhci_pci" "aacraid" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
availableKernelModules = ["xhci_pci" "aacraid" "ahci" "usbhid" "usb_storage" "sd_mod"];
|
||||||
kernelModules = [];
|
kernelModules = [];
|
||||||
# TODO: figure out some kind of snapshotting before rolebacks
|
# TODO: figure out some kind of snapshotting before rollbacks
|
||||||
# postDeviceCommands = lib.mkAfter ''
|
# postDeviceCommands = lib.mkAfter ''
|
||||||
# zfs rollback -r rpool/root@blank
|
# zfs rollback -r rpool/root@blank
|
||||||
# zfs rollback -r rpool/home@blank
|
# zfs rollback -r rpool/home@blank
|
||||||
|
@ -127,7 +127,7 @@
|
||||||
# systemd.services = {
|
# systemd.services = {
|
||||||
# # https://github.com/openzfs/zfs/issues/10891
|
# # https://github.com/openzfs/zfs/issues/10891
|
||||||
# systemd-udev-settle.enable = false;
|
# systemd-udev-settle.enable = false;
|
||||||
# # Snapshots are not accessable on boot for some reason this should fix it
|
# # Snapshots are not accessible on boot for some reason this should fix it
|
||||||
# # https://github.com/NixOS/nixpkgs/issues/257505
|
# # https://github.com/NixOS/nixpkgs/issues/257505
|
||||||
# zfs-mount = {
|
# zfs-mount = {
|
||||||
# serviceConfig = {
|
# serviceConfig = {
|
||||||
|
|
|
@ -48,12 +48,12 @@ in {
|
||||||
directory = {
|
directory = {
|
||||||
root = lib.mkOption {
|
root = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "directory that piholes will be hosted at";
|
description = "directory that pihole will be hosted at";
|
||||||
default = "/var/lib/pihole";
|
default = "/var/lib/pihole";
|
||||||
};
|
};
|
||||||
data = lib.mkOption {
|
data = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "directory that piholes data will be hosted at";
|
description = "directory that pihole data will be hosted at";
|
||||||
default = "${config.apps.pihole.directory.root}/data";
|
default = "${config.apps.pihole.directory.root}/data";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -66,7 +66,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that headscale will be hosted at";
|
description = "hostname that headscale will be hosted at";
|
||||||
default = "${config.apps.headscale.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.headscale.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -78,7 +78,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that jellyfin will be hosted at";
|
description = "hostname that jellyfin will be hosted at";
|
||||||
default = "${config.apps.jellyfin.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.jellyfin.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
mediaDirectory = lib.mkOption {
|
mediaDirectory = lib.mkOption {
|
||||||
|
@ -95,7 +95,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that forgejo will be hosted at";
|
description = "hostname that forgejo will be hosted at";
|
||||||
default = "${config.apps.forgejo.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.forgejo.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -107,7 +107,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that home-assistant will be hosted at";
|
description = "hostname that home-assistant will be hosted at";
|
||||||
default = "${config.apps.home-assistant.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.home-assistant.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -119,7 +119,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that searx will be hosted at";
|
description = "hostname that searx will be hosted at";
|
||||||
default = "${config.apps.searx.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.searx.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -131,7 +131,7 @@ in {
|
||||||
};
|
};
|
||||||
hostname = lib.mkOption {
|
hostname = lib.mkOption {
|
||||||
type = lib.types.str;
|
type = lib.types.str;
|
||||||
description = "hosname that nextcloud will be hosted at";
|
description = "hostname that nextcloud will be hosted at";
|
||||||
default = "${config.apps.nextcloud.subdomain}.${config.apps.base_domain}";
|
default = "${config.apps.nextcloud.subdomain}.${config.apps.base_domain}";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue