disable mongo, update System Version to 23.11
Change-Id: Iedf8bba405afbc6b5008463e006bdbecb4294707
Reviewed-on: https://git.clicks.codes/c/Coded/nixConfig/+/96
Reviewed-by: Samuel Shuert <coded@clicks.codes>
Tested-by: Samuel Shuert <coded@clicks.codes>
diff --git a/modules/audio.nix b/modules/audio.nix
index 14f2167..4046f2b 100644
--- a/modules/audio.nix
+++ b/modules/audio.nix
@@ -1,16 +1,34 @@
-{ config, pkgs, ... }: {
+{ config, pkgs, lib, inputs, ... }: {
sound.enable = true;
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
+
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
+ jack.enable = true;
};
+ environment.etc."pipewire/pipewire.conf.d/VirtualAudioDevice.conf".text = ''
+ context.objects = [
+ {
+ factory = adapter
+ args = {
+ factory.name = support.null-audio-sink
+ node.name = Microphone-Proxy
+ node.description = Microphone
+ media.class = Audio/Source/Virtual
+ audio.posistion = MONO
+ }
+ }
+ ]
+ '';
+
home-manager.users.coded.home.packages =
with pkgs; [
+ audacity
helvum
lmms
];
diff --git a/modules/mongo.nix b/modules/mongo.nix
index bb17552..e42b184 100644
--- a/modules/mongo.nix
+++ b/modules/mongo.nix
@@ -1,5 +1,5 @@
{ config, pkgs, ... }: {
environment.systemPackages = [ pkgs.mongosh pkgs.mongodb-tools ];
- services.mongodb.enable = true;
+ services.mongodb.enable = false;
services.mongodb.package = pkgs.mongodb-6_0;
}
diff --git a/modules/networking.nix b/modules/networking.nix
index c04cf72..05997db 100644
--- a/modules/networking.nix
+++ b/modules/networking.nix
@@ -4,10 +4,11 @@
networkmanager.enable = true;
hosts = {
+ "192.168.0.1" = [ "a1" ];
+ "192.168.0.2" = [ "a1d1" ];
"192.168.0.4" = [ "CodedPi" ];
- "192.168.0.5" = [ "SamuelDesktop" ];
+ "192.168.0.5" = [ "SamuelDesktop" "codedPC" "me" ];
"192.168.0.6" = [ "a1d2" ];
- "localhost:5000" = [ "ollama" ];
};
firewall = {
diff --git a/modules/printing.nix b/modules/printing.nix
new file mode 100644
index 0000000..2c22100
--- /dev/null
+++ b/modules/printing.nix
@@ -0,0 +1,6 @@
+{ pkgs, ... }: {
+ environment.systemPackages = with pkgs; [
+ cura
+ printrun
+ ];
+}
diff --git a/modules/shell.nix b/modules/shell.nix
index 6d66e7b..2deaa16 100644
--- a/modules/shell.nix
+++ b/modules/shell.nix
@@ -2,6 +2,11 @@
programs.zsh.enable = true;
users.users.coded.shell = pkgs.zsh;
+ environment.systemPackages = with pkgs; [
+ bmon
+ wget
+ ];
+
home-manager.users.coded.programs = {
# ZSH
zsh = {
@@ -16,6 +21,8 @@
"gr!" = "git review";
clr = "clear";
pnpx = "pnpm dlx";
+ print3d = "sudo /run/current-system/sw/bin/pronsole.py";
+ nh = "wget -O ~/Documents/hashCheck $1 | nix hash file ~/Documents/hashCheck";
};
dirHashes = { code = "$HOME/Documents/programming"; };
@@ -28,7 +35,7 @@
plugins = [ "git" ];
};
};
-
+
# Starship
starship = {
enable = true;
@@ -49,38 +56,6 @@
};
};
- # htop
- # htop = {
- # enable = true;
- # settings = {
- # color_scheme = 6;
- # cpu_count_from_one = 0;
- # delay = 15;
- # fields = with home-manager.config.lib.htop.fields; [
- # PID
- # USER
- # PERCENT_CPU
- # PERCENT_MEM
- # M_SIZE
- # M_RESIDENT
- # M_SHARE
- # STATE
- # TIME
- # COMM
- # ];
- # } // (with home-manager.config.lib.htop; leftMeters [
- # (bar "AllCPUs2")
- # (bar "Memory")
- # (bar "Swap")
- # (text "Zram")
- # ]) // (with home-manager.config.lib.htop; rightMeters [
- # (text "Tasks")
- # (text "LoadAverage")
- # (text "Uptime")
- # (text "Systemd")
- # ]);
- # };
-
# Nix-index
nix-index.enable = true;
diff --git a/modules/vscode.nix b/modules/vscode.nix
index 2cb2d3d..7ca0c59 100644
--- a/modules/vscode.nix
+++ b/modules/vscode.nix
@@ -1,6 +1,19 @@
{ pkgs, nix-vscode-extensions, ... }: {
home-manager.users.coded.programs.vscode = {
enable = true;
+ enableUpdateCheck = false;
+ userSettings = {
+ "files.autoSave" = "afterDelay";
+ "explorer.confirmDelete" = false;
+ "workbench.iconTheme" = "helium-icon-theme";
+ "workbench.colorTheme" = "One Dark Pro";
+ "terminal.integrated.defaultProfile.linux" = "zsh";
+ "workbench.startupEditor" = "none";
+ "explorer.confirmDragAndDrop" = false;
+ "typescript.updateImportsOnFileMove.enabled" = "always";
+ "javascript.updateImportsOnFileMove.enabled" = "always";
+ "terminal.integrated.enableMultiLinePasteWarning" = false;
+ };
extensions = with pkgs.vscode-extensions;
[
ms-vsliveshare.vsliveshare