Separated applications and destops
This commit is contained in:
81
home/applications/browsers/default.nix
Normal file
81
home/applications/browsers/default.nix
Normal file
@@ -0,0 +1,81 @@
|
||||
{pkgs, ...}: {
|
||||
programs = {
|
||||
chromium = {
|
||||
enable = true;
|
||||
package = pkgs.ungoogled-chromium;
|
||||
commandLineArgs = ["--enable-features=TouchpadOverscrollHistoryNavigation"];
|
||||
};
|
||||
|
||||
firefox = {
|
||||
policies = {
|
||||
ExtensionSettings = {
|
||||
# Allow extensions to be installed from anywhere
|
||||
"*" = {
|
||||
"installation_mode" = "allowed";
|
||||
};
|
||||
|
||||
# uBlock Origin
|
||||
"uBlock0@raymondhill.net" = {
|
||||
"installation_mode" = "force_installed";
|
||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/ublock-origin/latest.xpi";
|
||||
};
|
||||
|
||||
# LocalCDN
|
||||
"{b86e4813-687a-43e6-ab65-0bde4ab75758}" = {
|
||||
"installation_mode" = "force_installed";
|
||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/localcdn-fork-of-decentraleyes/latest.xpi";
|
||||
};
|
||||
|
||||
# Sidebery
|
||||
"{3c078156-979c-498b-8990-85f7987dd929}" = {
|
||||
"installation_mode" = "force_installed";
|
||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/sidebery/latest.xpi";
|
||||
};
|
||||
|
||||
# User-Agent Switcher and Manager
|
||||
"{a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7}" = {
|
||||
"installation_mode" = "force_installed";
|
||||
"install_url" = "https://addons.mozilla.org/firefox/downloads/latest/user-agent-switcher-and-manager/latest.xpi";
|
||||
};
|
||||
};
|
||||
};
|
||||
enable = true;
|
||||
profiles.panotaka = {
|
||||
settings = {
|
||||
"widget.use-xdg-desktop-portal.file-picker" = 1;
|
||||
};
|
||||
userChrome = ''
|
||||
#TabsToolbar
|
||||
{
|
||||
visibility: collapse;
|
||||
}
|
||||
'';
|
||||
};
|
||||
/*
|
||||
# Wait for https://github.com/NixOS/nixpkgs/pull/269817 to be merged
|
||||
package = pkgs.wrapFirefox pkgs.firefox-unwrapped {
|
||||
nixExtensions = with config.nur.repos.rycee.firefox-addons; [
|
||||
ublock-origin
|
||||
localcdn
|
||||
];
|
||||
|
||||
extraPolicies = {
|
||||
CaptivePortal = false;
|
||||
DisableFirefoxStudies = true;
|
||||
DisablePocket = true;
|
||||
DisableTelemetry = true;
|
||||
DisableFirefoxAccounts = true;
|
||||
FirefoxHome = {
|
||||
Pocket = false;
|
||||
Snippets = false;
|
||||
};
|
||||
UserMessaging = {
|
||||
ExtensionRecommendations = false;
|
||||
SkipOnboarding = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
*/
|
||||
};
|
||||
};
|
||||
}
|
||||
21
home/applications/common.nix
Normal file
21
home/applications/common.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{pkgs, ...}: {
|
||||
home.packages = with pkgs; [
|
||||
# Work-specific programs
|
||||
teams-for-linux
|
||||
|
||||
# Creative tools
|
||||
blender
|
||||
inkscape
|
||||
|
||||
# Productivity tools
|
||||
libreoffice-qt
|
||||
hunspell
|
||||
hunspellDicts.en_CA
|
||||
|
||||
# System tools
|
||||
gparted
|
||||
|
||||
# Communication tools
|
||||
discord
|
||||
];
|
||||
}
|
||||
7
home/applications/default.nix
Normal file
7
home/applications/default.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{...}: {
|
||||
imports = [
|
||||
./common.nix
|
||||
./browsers
|
||||
./vscode
|
||||
];
|
||||
}
|
||||
60
home/applications/vscode/default.nix
Normal file
60
home/applications/vscode/default.nix
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
./javascript.nix
|
||||
./nix.nix
|
||||
];
|
||||
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
enableUpdateCheck = false;
|
||||
enableExtensionUpdateCheck = false;
|
||||
extensions = with inputs.nix-vscode-extensions.extensions.${system}; [
|
||||
# General extensions
|
||||
|
||||
## Code Completion
|
||||
vscode-marketplace.github.copilot
|
||||
vscode-marketplace.github.copilot-chat
|
||||
|
||||
## Error Checking
|
||||
vscode-marketplace.usernamehw.errorlens
|
||||
|
||||
## Export and Visualisation
|
||||
vscode-marketplace.ibm.output-colorizer
|
||||
vscode-marketplace.nobuhito.printcode
|
||||
vscode-marketplace.pnp.polacode
|
||||
|
||||
## Git
|
||||
vscode-marketplace.lamartire.git-indicators
|
||||
vscode-marketplace.mhutchie.git-graph
|
||||
|
||||
## Miscelaneous
|
||||
vscode-marketplace.britesnow.vscode-toggle-quotes
|
||||
vscode-marketplace.mrmlnc.vscode-duplicate
|
||||
vscode-marketplace.qcz.text-power-tools
|
||||
|
||||
# Language extensions
|
||||
|
||||
## CSV
|
||||
vscode-marketplace.mechatroner.rainbow-csv
|
||||
|
||||
## Rust language extensions
|
||||
vscode-marketplace.rust-lang.rust-analyzer
|
||||
vscode-marketplace.serayuzgur.crates
|
||||
vscode-marketplace.tamasfe.even-better-toml
|
||||
vscode-marketplace.vadimcn.vscode-lldb
|
||||
|
||||
## SVG
|
||||
vscode-marketplace.dheovani.svg-viewer
|
||||
];
|
||||
userSettings = {
|
||||
"editor.linkedEditing" = true;
|
||||
"window.menuBarVisibility" = "toggle";
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/applications/vscode/javascript.nix
Normal file
23
home/applications/vscode/javascript.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
...
|
||||
}: {
|
||||
programs.vscode = {
|
||||
extensions = with inputs.nix-vscode-extensions.extensions.${system}; [
|
||||
# General
|
||||
vscode-marketplace.christian-kohler.npm-intellisense
|
||||
vscode-marketplace.esbenp.prettier-vscode
|
||||
vscode-marketplace.liamhammett.inline-parameters
|
||||
vscode-marketplace.mgmcdermott.vscode-language-babel
|
||||
vscode-marketplace.yatki.vscode-surround
|
||||
|
||||
# Svelte
|
||||
vscode-marketplace.svelte.svelte-vscode
|
||||
];
|
||||
userSettings = {
|
||||
"[javascript]"."editor.defaultFormatter" = "esbenp.prettier-vscode";
|
||||
"svelte.enable-ts-plugin" = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
23
home/applications/vscode/nix.nix
Normal file
23
home/applications/vscode/nix.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
inputs,
|
||||
system,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [
|
||||
nil
|
||||
alejandra
|
||||
deadnix
|
||||
];
|
||||
|
||||
programs.vscode = {
|
||||
extensions = with inputs.nix-vscode-extensions.extensions.${system}; [
|
||||
vscode-marketplace.jnoortheen.nix-ide
|
||||
vscode-marketplace.kamadorueda.alejandra
|
||||
];
|
||||
userSettings = {
|
||||
"nix.enableLanguageServer" = true;
|
||||
"nix.serverPath" = "nil";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user