fix wifi, add apps, update insync, some vscode settings

This commit is contained in:
Vinzenz Schroeter 2023-08-19 20:13:11 +02:00
parent c041ac5f4d
commit 3c616bac52
3 changed files with 36 additions and 10 deletions

View file

@ -21,6 +21,7 @@
networking = {
# wireless.enable = true; # Enables wireless support via wpa_supplicant.
# wireless.userControlled.enable = true;
# Configure network proxy if necessary
# proxy.default = "http://user:password@proxy:port/";
@ -33,15 +34,17 @@
enable = true;
allowedTCPPortRanges = [
{
# KDE Connect
from = 1714;
to = 1764;
} # KDE Connect
}
];
allowedUDPPortRanges = [
{
# KDE Connect
from = 1714;
to = 1764;
} # KDE Connect
}
];
};
};
@ -136,6 +139,13 @@
package = pkgs.gitFull;
};
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
# List packages installed in system profile.
# environment.systemPackages = [];
}

View file

@ -5,7 +5,7 @@
}: {
# override insync build version
nixpkgs.config.packageOverrides = pkgs: {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/db254c650b7f5b6657c6579afba1568f7f997195.tar.gz) {
my = import (builtins.fetchTarball https://github.com/kaesaecracker/nixpkgs/archive/0fa91456d2f6dfb9cd4008e81c89c2fec8512415.tar.gz) {
config = config.nixpkgs.config;
};
};
@ -50,6 +50,11 @@
lutris
amberol
simple-scan
gnome.gpaste
wireguard-tools
# steamlink
chromium
element-desktop
]
# system monitoring
++ [
@ -59,6 +64,7 @@
radeontop
lsof
wirelesstools
#lm-sensors
]
# command line niceness
++ [
@ -76,6 +82,8 @@
arduino
uucp
screen
jetbrains.pycharm-professional
kdiff3
];
file.".nanorc".text = ''
@ -123,12 +131,9 @@
prettylog = "log --pretty=oneline --graph";
};
extraConfig = {
pull = {
ff = "only";
};
init = {
defaultBranch = "main";
};
pull.ff = "only";
init.defaultBranch = "main";
merge.tool = "kdiff3";
};
};
@ -136,12 +141,22 @@
enable = true;
package = pkgs.vscodium;
enableUpdateCheck = false;
extensions = [pkgs.vscode-extensions.bbenoist.nix];
extensions = with pkgs; [
vscode-extensions.bbenoist.nix
vscode-extensions.ms-python.python
];
userSettings = {
"files.insertFinalNewline" = true;
"git.autofetch" = true;
"update.mode" = "none";
"editor.fontFamily" = "'Fira Code', 'Droid Sans Mono', 'monospace', monospace";
"editor.fontLigatures" = true;
"[nix]" = {
"editor.tabSize" = 2;
};
"redhat.telemetry.enabled" = false;
"markdown.extension.tableFormatter.normalizeIndentation" = true;
"markdown.extension.toc.orderedList" = false;
};
};
};

View file

@ -41,5 +41,6 @@
# networking.interfaces.wlp3s0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.enableRedistributableFirmware = true;
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}