2021-08-25 04:27:20 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
config = mkIf (config.sconfig.profile == "desktop") {
|
|
|
|
services.pcscd.enable = true;
|
|
|
|
|
2021-11-02 18:47:46 +00:00
|
|
|
sconfig = {
|
2022-02-04 03:19:24 +00:00
|
|
|
alacritty.enable = true;
|
2021-11-02 18:47:46 +00:00
|
|
|
security-tools = true;
|
|
|
|
};
|
2021-09-08 00:32:11 +00:00
|
|
|
|
2022-08-08 17:40:03 +00:00
|
|
|
services.udev.extraHwdb = ''
|
|
|
|
mouse:usb:*
|
|
|
|
MOUSE_DPI=600@1000
|
|
|
|
'';
|
|
|
|
|
2021-12-29 01:56:11 +00:00
|
|
|
fonts.fonts = [ pkgs.bck-nerdfont ];
|
2021-10-11 05:05:54 +00:00
|
|
|
|
2022-02-05 18:11:00 +00:00
|
|
|
environment.variables.MOZ_ENABLE_WAYLAND = "1";
|
2022-01-14 05:07:21 +00:00
|
|
|
environment.variables.MOZ_USE_XINPUT2 = "1";
|
|
|
|
|
2021-08-25 04:27:20 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
2021-11-02 18:46:18 +00:00
|
|
|
chromium
|
2021-08-25 04:27:20 +00:00
|
|
|
discord
|
|
|
|
element-desktop
|
|
|
|
ffmpeg
|
|
|
|
gimp
|
|
|
|
glxinfo
|
|
|
|
gnome3.dconf-editor
|
|
|
|
opensc
|
|
|
|
pavucontrol
|
2021-10-15 20:59:28 +00:00
|
|
|
pulseeffects-legacy
|
2021-09-28 18:47:24 +00:00
|
|
|
qemu_full
|
2021-08-25 04:27:20 +00:00
|
|
|
tdesktop
|
|
|
|
youtube-dl
|
|
|
|
|
|
|
|
(mpv-with-scripts.override { scripts = [ mpvScripts.mpris ]; })
|
|
|
|
|
|
|
|
(vscode-with-extensions.override {
|
|
|
|
vscode = vscodium;
|
|
|
|
vscodeExtensions = with pkgs.vscode-extensions; [
|
2021-12-08 19:08:37 +00:00
|
|
|
jnoortheen.nix-ide
|
2021-11-09 16:02:28 +00:00
|
|
|
ms-azuretools.vscode-docker
|
2021-10-17 20:16:36 +00:00
|
|
|
ms-python.python
|
2021-12-03 17:06:28 +00:00
|
|
|
shardulm94.trailing-spaces
|
2022-08-27 04:35:36 +00:00
|
|
|
] ++
|
|
|
|
optionals config.sconfig.xmonad.enable [
|
|
|
|
vscode-extensions.haskell.haskell
|
|
|
|
vscode-extensions.justusadam.language-haskell
|
2021-08-25 04:27:20 +00:00
|
|
|
];
|
|
|
|
})
|
|
|
|
|
|
|
|
(wrapFirefox firefox-unwrapped {
|
|
|
|
extraPolicies = {
|
2021-11-09 02:40:42 +00:00
|
|
|
NewTabPage = false;
|
2021-08-25 04:27:20 +00:00
|
|
|
CaptivePortal = false;
|
|
|
|
DisablePocket = true;
|
|
|
|
DisableFirefoxStudies = true;
|
|
|
|
OfferToSaveLogins = false;
|
|
|
|
DisableFormHistory = true;
|
|
|
|
SearchSuggestEnabled = false;
|
2022-06-19 04:55:07 +00:00
|
|
|
|
|
|
|
Preferences = builtins.mapAttrs
|
|
|
|
(n: v: { Value = v; Status = "locked"; })
|
|
|
|
{
|
|
|
|
"browser.contentblocking.category" = "strict";
|
|
|
|
"browser.zoom.siteSpecific" = false;
|
2022-06-20 03:20:00 +00:00
|
|
|
"extensions.formautofill.addresses.enabled" = false;
|
|
|
|
"extensions.formautofill.creditCards.enabled" = false;
|
2022-06-19 04:55:07 +00:00
|
|
|
"network.IDN_show_punycode" = true;
|
|
|
|
"ui.key.menuAccessKeyFocuses" = false;
|
|
|
|
};
|
|
|
|
|
2021-08-25 04:27:20 +00:00
|
|
|
};
|
|
|
|
})
|
|
|
|
|
2022-08-27 04:35:36 +00:00
|
|
|
] ++
|
|
|
|
optionals config.sconfig.xmonad.enable [
|
|
|
|
haskell-language-server
|
2021-08-25 04:27:20 +00:00
|
|
|
];
|
|
|
|
|
2021-10-27 15:36:44 +00:00
|
|
|
sconfig.user-settings = ''
|
2022-07-18 19:02:59 +00:00
|
|
|
mkdir -p ~/.config/VSCodium/User
|
2021-10-27 15:36:44 +00:00
|
|
|
ln -sf /etc/vscode-settings.json ~/.config/VSCodium/User/settings.json
|
|
|
|
ln -sf /etc/vscode-keybindings.json ~/.config/VSCodium/User/keybindings.json
|
|
|
|
'';
|
|
|
|
|
2021-10-27 15:17:34 +00:00
|
|
|
environment.etc."vscode-settings.json".text = builtins.toJSON {
|
2022-07-21 03:59:17 +00:00
|
|
|
"editor.cursorSurroundingLines" = 9;
|
2021-10-27 15:17:34 +00:00
|
|
|
"editor.renderFinalNewline" = false;
|
2022-07-19 01:36:02 +00:00
|
|
|
"editor.scrollBeyondLastLine" = false;
|
2021-10-27 15:17:34 +00:00
|
|
|
"extensions.autoCheckUpdates" = false;
|
|
|
|
"extensions.autoUpdate" = false;
|
|
|
|
"files.insertFinalNewline" = true;
|
|
|
|
"files.trimFinalNewlines" = true;
|
2021-10-28 05:28:55 +00:00
|
|
|
"files.watcherExclude"."**/result/**" = true;
|
2022-06-29 17:28:45 +00:00
|
|
|
"git.autofetch" = true;
|
2021-10-27 15:17:34 +00:00
|
|
|
"git.confirmSync" = false;
|
|
|
|
"python.formatting.autopep8Args" = [ "--max-line-length=999" ];
|
|
|
|
"security.workspace.trust.banner" = "never";
|
|
|
|
"security.workspace.trust.startupPrompt" = "never";
|
|
|
|
"security.workspace.trust.untrustedFiles" = "newWindow";
|
|
|
|
"terminal.external.linuxExec" = "x-terminal-emulator";
|
2021-12-27 18:51:19 +00:00
|
|
|
"terminal.integrated.fontFamily" = "DejaVuSansMono Nerd Font";
|
2021-10-27 15:17:34 +00:00
|
|
|
"terminal.integrated.fontSize" = 16;
|
2022-07-19 17:33:59 +00:00
|
|
|
"terminal.integrated.minimumContrastRatio" = 1;
|
2021-10-27 15:17:34 +00:00
|
|
|
"terminal.integrated.showExitAlert" = false;
|
2021-12-03 17:06:28 +00:00
|
|
|
"trailing-spaces.highlightCurrentLine" = false;
|
2021-10-27 15:17:34 +00:00
|
|
|
"update.mode" = "none";
|
|
|
|
"update.showReleaseNotes" = false;
|
|
|
|
"window.menuBarVisibility" = "hidden";
|
|
|
|
"workbench.startupEditor" = "none";
|
|
|
|
"terminal.integrated.profiles.linux"."bash" = {
|
|
|
|
"path" = "bash";
|
|
|
|
"args" = [ "-c" "unset SHLVL; bash" ];
|
2021-08-25 04:27:20 +00:00
|
|
|
};
|
2021-10-27 15:17:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
environment.etc."vscode-keybindings.json".text = builtins.toJSON [
|
|
|
|
{ key = "ctrl+w"; command = "-workbench.action.terminal.killEditor"; }
|
|
|
|
{ key = "ctrl+e"; command = "-workbench.action.quickOpen"; }
|
|
|
|
{ key = "ctrl+e"; command = "workbench.action.quickOpen"; when = "!terminalFocus"; }
|
|
|
|
];
|
2021-08-25 04:27:20 +00:00
|
|
|
|
2022-07-17 13:29:57 +00:00
|
|
|
virtualisation.podman.enable = true;
|
2021-08-25 04:27:20 +00:00
|
|
|
|
2022-01-02 21:37:05 +00:00
|
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
2022-06-10 14:26:24 +00:00
|
|
|
boot.loader.timeout = 1;
|
2021-08-25 04:27:20 +00:00
|
|
|
};
|
|
|
|
}
|