Skip to content

Commit

Permalink
AAAAAAAAAAAAAAAAAAAAAAAAA
Browse files Browse the repository at this point in the history
  • Loading branch information
asciimoth committed Apr 1, 2024
1 parent 9fd11bd commit 71ce894
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 10 deletions.
3 changes: 3 additions & 0 deletions machines/pcLexell/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ in {
#zig
#master.yazi

wireshark
wireguard-tools

# Drawing
krita
xournal
Expand Down
16 changes: 14 additions & 2 deletions machines/pcLexell/dev.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ in {
package = pkgs.vscodium;
enableExtensionUpdateCheck = false;
enableUpdateCheck = false;
#extensions = [];
#extensions = extensions;
extensions = with pkgs.vscode-extensions;
[
catppuccin.catppuccin-vsc-icons
ms-ceintl.vscode-language-pack-ru
# https://github.com/ChristianKohler/PathIntellisense
#stephlin.vscode-tmux-keybinding
#jamesyang999.vscode-emacs-minimum
#github.vscode-pull-request-github
Expand All @@ -53,7 +56,7 @@ in {
#ms-vscode-remote.remote-ssh
#redhat.vscode-yaml
#bungcip.better-toml
#tamasfe.even-better-toml
tamasfe.even-better-toml
#usernamehw.errorlens
#bbenoist.nix
#arrterian.nix-env-selector
Expand All @@ -68,7 +71,7 @@ in {
#skyapps.fish-vscode
#bmalehorn.vscode-fish
#mads-hartmann.bash-ide-vscode
#sumneko.lua
sumneko.lua
#skellock.just
#ziglang.vscode-zig
#tiehuis.zig
Expand All @@ -91,6 +94,8 @@ in {
#graphql.vscode-graphql-syntax
#asciidoctor.asciidoctor-vscode
#theangryepicbanana.language-pascal
ms-python.python
ms-python.vscode-pylance
]
++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
#https://marketplace.visualstudio.com/items?itemName=yoshi389111.markdown-table-rainbow
Expand Down Expand Up @@ -192,6 +197,9 @@ in {
};
};
# [Etc]
"terminal.integrated.tabs.enabled" = true;
"graphviz-interactive-preview.renderLockAdditionalTimeout" = -1;
"explorer.confirmDelete" = false;
"workbench.startupEditor" = "none";
"telemetry.telemetryLevel" = "off";
"telemetry.enableCrashReporter" = false;
Expand All @@ -206,6 +214,9 @@ in {
"color" = "#997777";
}
];
"editor.unicodeHighlight.allowedCharacters" = {
"у" = true;
};
};
};
};
Expand All @@ -219,6 +230,7 @@ in {
ide-desktop
nixpkgs-fmt
nixd
vimgolf
];
shellAliases = {
code = "codium";
Expand Down
2 changes: 2 additions & 0 deletions machines/pcLexell/email.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ in {
environment.systemPackages = with pkgs; [
new-emails-count
new-emails-notify
thunderbird
#kmail
];
environment.shellAliases."email" = ''fish -C "source /etc/email-shell.fish"'';
environment.etc."email-shell.fish".text = ''
Expand Down
4 changes: 0 additions & 4 deletions machines/pcLexell/ide.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ def dedup(arr):
return ret


def paths_validate(paths):
return paths


def read_history():
try:
history = []
Expand Down
5 changes: 3 additions & 2 deletions machines/pcLexell/network.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ in {
trustedInterfaces = lib.mkForce ["lo"]; #open all ports on localhost
#extraCommands = "ip6tables -A INPUT -s fe80::/10 -j ACCEPT";
};
#nameservers = [ "8.8.8.8"];
nameservers = ["127.0.0.1" "::1"];
nameservers = ["8.8.8.8"];
#nameservers = ["127.0.0.1" "::1"];
};

services.dnscrypt-proxy2 = {
Expand Down Expand Up @@ -110,6 +110,7 @@ in {
forwarding_rules = "/etc/forwarding-rules";
};
};
services.tailscale.enable = true;

systemd.services.dnscrypt-proxy2.serviceConfig = {
StateDirectory = "dnscrypt-proxy";
Expand Down
4 changes: 2 additions & 2 deletions machines/pcLexell/power.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# idle audio card after one second
"options snd_hda_intel power_save=1"
# enable wifi power saving (keep uapsd off to maintain low latencies)
"options iwlwifi power_save=1 uapsd_disable=1"
#"options iwlwifi power_save=1 uapsd_disable=1"
];

environment.systemPackages = with pkgs; [
Expand All @@ -45,7 +45,7 @@
powerManagement = {
enable = true;
powertop.enable = true;
cpuFreqGovernor = lib.mkForce "powersave"; # or performance
cpuFreqGovernor = lib.mkForce "ondemand"; # ondemand or performance or powersave
resumeCommands = ''
${pkgs.autorandr}/bin/autorandr -c
'';
Expand Down
5 changes: 5 additions & 0 deletions machines/pcLexell/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ in {
ncollect = "nix-collect-garbage -d && sudo nix-collect-garbage -d";
noptimise = "sudo nix-store --optimise";
nfmt = "alejandra";
shell = "nix shell --impure";
unfree-shell = "unfree nix shell --impure";
ushell = "unfree-shell";

#"${config.options.ABC}" = "echo ABC";

Expand All @@ -207,6 +210,8 @@ in {
# Pings
p1 = "ping 1.1.1.1";
p8 = "ping 8.8.8.8";
gp1 = "gping 1.1.1.1";
gp8 = "gping 8.8.8.8";

# Abbreviations
e = "exit";
Expand Down

0 comments on commit 71ce894

Please sign in to comment.