comparison configuration.nix @ 2:a2c891f7b914

Occasional commit 2
author Yasuri <yasuri@charliesmp.net>
date Sat, 03 Oct 2026 18:53:08 -0500
parents f78c8a98f113
children
comparison
equal deleted inserted replaced
1:f78c8a98f113 2:a2c891f7b914
1 { config, lib, pkgs, ... }: 1 { config, lib, pkgs, ... }:
2
3 { 2 {
4 imports = 3 imports =
5 [ 4 [
6 ./hardware-configuration.nix 5 ./hardware-configuration.nix
7 ]; 6 ];
22 services.xserver = { 21 services.xserver = {
23 enable = true; 22 enable = true;
24 autoRepeatDelay = 200; 23 autoRepeatDelay = 200;
25 autoRepeatInterval = 35; 24 autoRepeatInterval = 35;
26 displayManager.sessionCommands = '' 25 displayManager.sessionCommands = ''
27 xwallpaper --zoom /home/ivy/wall.jpg 26 export XCURSOR_THEME=macOS
27 export XCURSOR_SIZE=24
28 xwallpaper --zoom /home/ivy/wall.png
29 ${pkgs.callPackage ./modules/dwmbar.nix { }}/bin/dwmbar &
30 xset r rate 200 35
31 xrdb -merge /home/ivy/.Xresources
28 ''; 32 '';
29 windowManager.dwm = { 33 windowManager.dwm = {
30 enable = true; 34 enable = true;
31 package = pkgs.dwm.overrideAttrs { 35 package = pkgs.dwm.overrideAttrs {
32 src = ./config/dwm; 36 src = ./config/dwm;
33 }; 37 };
34 }; 38 };
35 }; 39 };
36 40
41 virtualisation.libvirtd.enable = true;
42 programs.virt-manager.enable = true;
37 services.picom.enable = true; 43 services.picom.enable = true;
38 44
39 services.pipewire = { 45 services.pipewire = {
40 enable = true; 46 enable = true;
41 pulse.enable = true; 47 pulse.enable = true;
50 56
51 services.libinput.enable = true; 57 services.libinput.enable = true;
52 58
53 users.users.ivy = { 59 users.users.ivy = {
54 isNormalUser = true; 60 isNormalUser = true;
55 extraGroups = [ "wheel" ]; 61 extraGroups = [ "wheel" "libvirtd" ];
56 shell = pkgs.zsh; 62 shell = pkgs.zsh;
57 packages = with pkgs; [ 63 packages = with pkgs; [
58 tree 64 tree
59 ]; 65 ];
60 }; 66 };
69 hyfetch 75 hyfetch
70 xwallpaper 76 xwallpaper
71 maim 77 maim
72 slop 78 slop
73 mercurial 79 mercurial
80 dnsmasq
74 ]; 81 ];
75 82
76 programs.zsh.enable = true; 83 programs.zsh.enable = true;
77 fonts.packages = with pkgs; [ 84 fonts.packages = with pkgs; [
78 nerd-fonts.jetbrains-mono 85 nerd-fonts.jetbrains-mono
86 nerd-fonts.iosevka
79 ]; 87 ];
80 88
81 89
82 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 90 nix.settings.experimental-features = [ "nix-command" "flakes" ];
91 # for linux phone dev
92 systemd.network.enable = true;
93
94 # stable name no matter which USB port you use
95 systemd.network.links."10-phone" = {
96 matchConfig.Driver = "cdc_ether";
97 linkConfig.Name = "phone0";
98 };
99
100 systemd.network.networks."10-phone" = {
101 matchConfig.Name = "phone0";
102 address = [ "172.16.42.2/24" ];
103 linkConfig.RequiredForOnline = "no";
104 # optional: share the laptop's internet with the phone over USB
105 networkConfig.IPMasquerade = "ipv4";
106 };
107
108 # keep NetworkManager's hands off it
109 networking.networkmanager.unmanaged = [ "interface-name:phone0" ];
110
111 # let the phone reach services on the laptop
112 networking.firewall.trustedInterfaces = [ "phone0" ];
113
114 # ssh root@phone
115 networking.hosts."172.16.42.1" = [ "phone" ];
83 116
84 117
85 system.stateVersion = "26.05"; 118 system.stateVersion = "26.05";
86 119
87 } 120 }