diff configuration.nix @ 2:a2c891f7b914

Occasional commit 2
author Yasuri <yasuri@charliesmp.net>
date Sat, 03 Oct 2026 18:53:08 -0500
parents f78c8a98f113
children
line wrap: on
line diff
--- a/configuration.nix	Fri Oct 02 18:58:29 2026 -0500
+++ b/configuration.nix	Sat Oct 03 18:53:08 2026 -0500
@@ -1,5 +1,4 @@
 { config, lib, pkgs, ... }:
-
 {
   imports =
     [ 
@@ -24,7 +23,12 @@
     autoRepeatDelay = 200;
     autoRepeatInterval = 35;
     displayManager.sessionCommands = ''
-	xwallpaper --zoom /home/ivy/wall.jpg
+    export XCURSOR_THEME=macOS
+    export XCURSOR_SIZE=24
+	xwallpaper --zoom /home/ivy/wall.png
+    ${pkgs.callPackage ./modules/dwmbar.nix { }}/bin/dwmbar &
+    xset r rate 200 35
+    xrdb -merge /home/ivy/.Xresources
    '';
     windowManager.dwm = {
 	enable = true;
@@ -34,6 +38,8 @@
    };
 };
 
+virtualisation.libvirtd.enable = true;
+programs.virt-manager.enable = true;
  services.picom.enable = true; 
 
   services.pipewire = {
@@ -52,7 +58,7 @@
 
   users.users.ivy = {
     isNormalUser = true;
-    extraGroups = [ "wheel" ]; 
+    extraGroups = [ "wheel" "libvirtd" ]; 
     shell = pkgs.zsh;
     packages = with pkgs; [
       tree
@@ -71,15 +77,42 @@
     maim
     slop
     mercurial
+    dnsmasq
   ];
 
   programs.zsh.enable = true;
   fonts.packages = with pkgs; [
     nerd-fonts.jetbrains-mono
+    nerd-fonts.iosevka
   ];
 
 
   nix.settings.experimental-features = [ "nix-command" "flakes" ];
+    # for linux phone dev
+  systemd.network.enable = true;
+
+  # stable name no matter which USB port you use
+  systemd.network.links."10-phone" = {
+    matchConfig.Driver = "cdc_ether";
+    linkConfig.Name = "phone0";
+  };
+
+  systemd.network.networks."10-phone" = {
+    matchConfig.Name = "phone0";
+    address = [ "172.16.42.2/24" ];
+    linkConfig.RequiredForOnline = "no";
+    # optional: share the laptop's internet with the phone over USB
+    networkConfig.IPMasquerade = "ipv4";
+  };
+
+  # keep NetworkManager's hands off it
+  networking.networkmanager.unmanaged = [ "interface-name:phone0" ];
+
+  # let the phone reach services on the laptop
+  networking.firewall.trustedInterfaces = [ "phone0" ];
+
+  # ssh root@phone
+  networking.hosts."172.16.42.1" = [ "phone" ];
 
 
  system.stateVersion = "26.05";