First commit
This commit is contained in:
14
modules/home/default.nix
Normal file
14
modules/home/default.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./firefox.nix
|
||||
./git.nix
|
||||
./nvf.nix
|
||||
./packages.nix
|
||||
./plasma.nix
|
||||
# ./vscode.nix
|
||||
./zsh.nix
|
||||
];
|
||||
}
|
||||
118
modules/home/firefox.nix
Normal file
118
modules/home/firefox.nix
Normal file
@@ -0,0 +1,118 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
languagePacks = [ "en-US" ];
|
||||
nativeMessagingHosts = with pkgs; [
|
||||
kdePackages.plasma-browser-integration
|
||||
];
|
||||
policies = {
|
||||
DefaultDownloadDirectory = config.xdg.userDirs.download;
|
||||
DisableFirefoxAccounts = true;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableProfileImport = true;
|
||||
DisableProfileRefresh = true;
|
||||
DisableTelemetry = true;
|
||||
DontCheckDefaultBrowser = true;
|
||||
EnableTrackingProtection = {
|
||||
Value = true; # Tracking protection is enabled by default in both the regular browser and private browsing
|
||||
Locked = true; # Whether or not a user can change tracking protection
|
||||
Cryptomining = true; # Block cryptomining scripts
|
||||
Fingerprinting = true; # Block fingerprinting scripts
|
||||
EmailTracking = true; # Block email tracking pixels and scripts
|
||||
};
|
||||
FirefoxHome = {
|
||||
Search = true;
|
||||
TopSites = true;
|
||||
SponsoredTopSites = false;
|
||||
Highlights = false;
|
||||
Pocket = false;
|
||||
Stories = false;
|
||||
SponsoredPocket = false;
|
||||
SponsoredStories = false;
|
||||
Snippets = true;
|
||||
Locked = true;
|
||||
};
|
||||
FirefoxSuggest = {
|
||||
WebSuggestions = true;
|
||||
SponsoredSuggestions = false;
|
||||
ImproveSuggest = false;
|
||||
Locked = true;
|
||||
};
|
||||
Homepage = {
|
||||
URL = "http://100.78.212.35:30054";
|
||||
Locked = true;
|
||||
StartPage = "homepage";
|
||||
};
|
||||
OfferToSaveLogins = false;
|
||||
OverrideFirstRunPage = "";
|
||||
PasswordManagerEnabled = false;
|
||||
PopupBlocking = {
|
||||
Default = false;
|
||||
Locked = true;
|
||||
};
|
||||
PrimaryPassword = false;
|
||||
SearchBar = "unified";
|
||||
ShowHomeButton = true;
|
||||
SkipTermsOfUse = true;
|
||||
};
|
||||
profiles.eclypse = {
|
||||
name = "Eclypse";
|
||||
isDefault = true;
|
||||
extensions = {
|
||||
force = true;
|
||||
packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
bitwarden
|
||||
plasma-integration
|
||||
];
|
||||
settings = {
|
||||
"uBlock0@raymondhill.net".settings = {
|
||||
selectedFilterLists = [
|
||||
"ublock-filters"
|
||||
"ublock-badware"
|
||||
"ublock-privacy"
|
||||
"ublock-unbreak"
|
||||
"ublock-quick-fixes"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
search = {
|
||||
default = "google";
|
||||
engines = {
|
||||
nix-packages = {
|
||||
name = "Nix Packages";
|
||||
urls = [
|
||||
{
|
||||
template = "https://search.nixos.org/packages";
|
||||
params = [
|
||||
{
|
||||
name = "channel";
|
||||
value = "unstable";
|
||||
}
|
||||
{
|
||||
name = "query";
|
||||
value = "{searchTerms}";
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
|
||||
icon = "${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
|
||||
definedAliases = [ "@np" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
# Auto-enable extensions
|
||||
"extensions.autoDisableScopes" = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
15
modules/home/git.nix
Normal file
15
modules/home/git.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Eclypsed";
|
||||
userEmail = "Ec1ypsed@proton.me";
|
||||
extraConfig = {
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
125
modules/home/nvf.nix
Normal file
125
modules/home/nvf.nix
Normal file
@@ -0,0 +1,125 @@
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
host,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.nvf.homeManagerModules.default
|
||||
];
|
||||
|
||||
programs.nvf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim = {
|
||||
viAlias = false;
|
||||
vimAlias = true;
|
||||
|
||||
options = {
|
||||
wrap = false;
|
||||
};
|
||||
|
||||
lsp = {
|
||||
enable = true;
|
||||
formatOnSave = true;
|
||||
inlayHints.enable = true;
|
||||
};
|
||||
|
||||
treesitter = {
|
||||
enable = true;
|
||||
indent.enable = true;
|
||||
};
|
||||
|
||||
statusline.lualine.enable = true;
|
||||
telescope.enable = true;
|
||||
autocomplete.blink-cmp.enable = true;
|
||||
|
||||
# Auto-close (, ", `, etc.
|
||||
mini.pairs = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# File explorer
|
||||
filetree.neo-tree = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
# Formatting files
|
||||
formatter.conform-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
binds = {
|
||||
whichKey.enable = true;
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<C-e>";
|
||||
mode = [ "n" ];
|
||||
silent = true;
|
||||
action = "<cmd>Neotree toggle<CR>";
|
||||
}
|
||||
];
|
||||
|
||||
theme = {
|
||||
enable = true;
|
||||
name = "catppuccin";
|
||||
style = "mocha";
|
||||
};
|
||||
|
||||
languages = {
|
||||
enableTreesitter = true;
|
||||
enableFormat = true;
|
||||
|
||||
nix = {
|
||||
enable = true;
|
||||
format = {
|
||||
enable = true;
|
||||
package = pkgs.nixfmt;
|
||||
type = "nixfmt";
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
package = pkgs.nixd;
|
||||
server = "nixd";
|
||||
options = {
|
||||
nixos = {
|
||||
expr = "(builtins.getFlake (builtins.toString ./.)).nixosConfigurations.${host}.options";
|
||||
};
|
||||
home-manager = {
|
||||
expr = "(builtins.getFlake (builtins.toString ./.)).nixosConfigurations.${host}.options.home-manager.users.type.getSubOptions []";
|
||||
};
|
||||
};
|
||||
};
|
||||
treesitter.enable = true;
|
||||
};
|
||||
|
||||
python = {
|
||||
enable = true;
|
||||
dap = {
|
||||
enable = true;
|
||||
debugger = "debugpy";
|
||||
};
|
||||
format = {
|
||||
enable = true;
|
||||
type = "black-and-isort";
|
||||
};
|
||||
lsp = {
|
||||
enable = true;
|
||||
};
|
||||
treesitter.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
utility = {
|
||||
sleuth.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
25
modules/home/packages.nix
Normal file
25
modules/home/packages.nix
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
zoom-us
|
||||
devenv
|
||||
discord
|
||||
sqlitebrowser
|
||||
drawio
|
||||
|
||||
# Libre Office
|
||||
libreoffice-qt
|
||||
hunspell
|
||||
hunspellDicts.en_US
|
||||
|
||||
# KDE
|
||||
kdePackages.kate
|
||||
|
||||
# CD Stuff
|
||||
picard
|
||||
heybrochecklog
|
||||
];
|
||||
}
|
||||
45
modules/home/plasma.nix
Normal file
45
modules/home/plasma.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
inputs.plasma-manager.homeModules.plasma-manager
|
||||
];
|
||||
|
||||
programs = {
|
||||
plasma = {
|
||||
enable = true;
|
||||
|
||||
kscreenlocker = {
|
||||
appearance = {
|
||||
wallpaper = ../../wallpapers/lanterns_of_twilight.png;
|
||||
};
|
||||
};
|
||||
|
||||
workspace = {
|
||||
lookAndFeel = "org.kde.breezedark.desktop";
|
||||
wallpaper = ../../wallpapers/lanterns_of_twilight.png;
|
||||
wallpaperFillMode = "preserveAspectCrop";
|
||||
};
|
||||
};
|
||||
|
||||
konsole = {
|
||||
enable = true;
|
||||
defaultProfile = "Jade";
|
||||
profiles = {
|
||||
jade = {
|
||||
name = "Jade";
|
||||
font = {
|
||||
name = "FiraCode";
|
||||
};
|
||||
extraConfig = {
|
||||
Appearance = {
|
||||
WordMode = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
65
modules/home/vscode.nix
Normal file
65
modules/home/vscode.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{
|
||||
pkgs,
|
||||
# pkgs-stable,
|
||||
...
|
||||
}:
|
||||
# let
|
||||
# ms-python-stable = pkgs-stable.vscode-extensions.ms-python;
|
||||
# in
|
||||
{
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscode-fhs;
|
||||
profiles = {
|
||||
default = {
|
||||
enableExtensionUpdateCheck = false;
|
||||
enableUpdateCheck = false;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
# General
|
||||
pkief.material-icon-theme
|
||||
ritwickdey.liveserver
|
||||
aaron-bond.better-comments
|
||||
yzane.markdown-pdf
|
||||
|
||||
# Nix
|
||||
bbenoist.nix
|
||||
jnoortheen.nix-ide
|
||||
|
||||
# Python
|
||||
# ms-python-stable.python
|
||||
# ms-python-stable.vscode-pylance
|
||||
# ms-python-stable.debugpy
|
||||
# ms-python-stable.black-formatter
|
||||
# ms-python-stable.isort
|
||||
# ms-python.python # Currently broken, need to manually install
|
||||
# ms-python.black-formatter
|
||||
# ms-python.isort
|
||||
|
||||
# Rust
|
||||
rust-lang.rust-analyzer
|
||||
|
||||
# Typescript / WebDev
|
||||
esbenp.prettier-vscode
|
||||
yoavbls.pretty-ts-errors
|
||||
svelte.svelte-vscode
|
||||
];
|
||||
userSettings = {
|
||||
# General
|
||||
"workbench.iconTheme" = "material-icon-theme";
|
||||
|
||||
# Python
|
||||
"[python]" = {
|
||||
"editor.defaultFormatter" = "ms-python.black-formatter";
|
||||
"editor.formatOnSave" = true;
|
||||
"editor.codeActionsOnSave" = {
|
||||
"source.organizeImports" = "explicit";
|
||||
};
|
||||
};
|
||||
"isort.args" = [ "--profile" "black" ];
|
||||
"python.analysis.typeCheckingMode" = "strict";
|
||||
"python.languageServer" = "Pylance";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
29
modules/home/zsh.nix
Normal file
29
modules/home/zsh.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
direnv = {
|
||||
enable = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
kitty = {
|
||||
enable = true;
|
||||
enableGitIntegration = true;
|
||||
font = {
|
||||
name = "FiraCode Nerd Font";
|
||||
package = pkgs.nerd-fonts.fira-code;
|
||||
};
|
||||
shellIntegration = {
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
};
|
||||
zsh = {
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
autosuggestion.enable = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user