me like nix
0

Configure Feed

Select the types of activity you want to include in your feed.

1{ pkgs, ... }: 2 3let 4 berkeley-mono-typeface = pkgs.callPackage ../../berkely-mono/berkeley.nix { }; 5in 6{ 7 8 nix.settings.experimental-features = [ 9 "nix-command" 10 "flakes" 11 ]; 12 nix.settings.download-buffer-size = 268435456; 13 14 hardware.bluetooth.enable = true; 15 hardware.bluetooth.powerOnBoot = true; 16 services.blueman.enable = true; 17 18 # Bootloader. 19 boot.loader.systemd-boot.enable = true; 20 boot.loader.efi.canTouchEfiVariables = true; 21 22 services.fwupd.enable = true; 23 # Use latest kernel. 24 boot.kernelPackages = pkgs.linuxPackages_latest; 25 26 # Fix USB disconnection issues with Dell U4025QW Thunderbolt dock 27 # Disables autosuspend and LPM for Dell hub (vendor ID: 1d5c, product ID: 5801) 28 # boot.kernelParams = [ "usbcore.quirks=1d5c:5801:gk" ]; 29 # If USB disconnects persist, try disabling UCSI ACPI instead: 30 # boot.kernelParams = [ "module_blacklist=ucsi_acpi" ]; 31 32 # Enable networking 33 networking.networkmanager.enable = true; 34 35 # Set your time zone. 36 # time.timeZone = "America/New_York"; 37 time.timeZone = "America/Toronto"; 38 39 # Select internationalisation properties. 40 i18n.defaultLocale = "en_US.UTF-8"; 41 42 i18n.extraLocaleSettings = { 43 LC_ADDRESS = "en_US.UTF-8"; 44 LC_IDENTIFICATION = "en_US.UTF-8"; 45 LC_MEASUREMENT = "en_US.UTF-8"; 46 LC_MONETARY = "en_US.UTF-8"; 47 LC_NAME = "en_US.UTF-8"; 48 LC_NUMERIC = "en_US.UTF-8"; 49 LC_PAPER = "en_US.UTF-8"; 50 LC_TELEPHONE = "en_US.UTF-8"; 51 LC_TIME = "en_US.UTF-8"; 52 }; 53 54 # Font configuration 55 fonts = { 56 fontDir.enable = true; 57 fontconfig = { 58 enable = true; 59 defaultFonts = { 60 monospace = [ 61 "BerkeleyMono Nerd Font" 62 "BerkeleyMono" 63 ]; 64 }; 65 }; 66 packages = with pkgs; [ 67 berkeley-mono-typeface 68 ]; 69 }; 70 71 programs.niri = { 72 enable = true; 73 }; 74 75 services.greetd = { 76 enable = true; 77 settings = { 78 default_session = { 79 command = "${pkgs.tuigreet}/bin/tuigreet --time --cmd niri-session"; 80 user = "greeter"; 81 }; 82 }; 83 }; 84 85 # Enable CUPS to print documents. 86 services.printing.enable = true; 87 88 security.polkit.enable = true; 89 security.rtkit.enable = true; 90 services.pipewire = { 91 enable = true; 92 alsa.enable = true; 93 alsa.support32Bit = true; 94 pulse.enable = true; 95 # If you want to use JACK applications, uncomment this 96 #jack.enable = true; 97 98 # use the example session manager (no others are packaged yet so this is enabled by default, 99 # no need to redefine it in your config for now) 100 #media-session.enable = true; 101 }; 102 103 services.udisks2.enable = true; 104 services.tailscale.enable = true; 105 106 # ZSA Keyboard udev rules for Oryx web flashing and live training 107 services.udev.extraRules = '' 108 # Rules for Oryx web flashing and live training 109 KERNEL=="hidraw*", ATTRS{idVendor}=="16c0", MODE="0664", GROUP="plugdev" 110 KERNEL=="hidraw*", ATTRS{idVendor}=="3297", MODE="0664", GROUP="plugdev" 111 112 # Legacy rules for live training over webusb (Not needed for firmware v21+) 113 # Rule for all ZSA keyboards 114 SUBSYSTEM=="usb", ATTR{idVendor}=="3297", GROUP="plugdev" 115 # Rule for the Moonlander 116 SUBSYSTEM=="usb", ATTR{idVendor}=="3297", ATTR{idProduct}=="1969", GROUP="plugdev" 117 # Rule for the Ergodox EZ 118 SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="1307", GROUP="plugdev" 119 # Rule for the Planck EZ 120 SUBSYSTEM=="usb", ATTR{idVendor}=="feed", ATTR{idProduct}=="6060", GROUP="plugdev" 121 122 # Wally Flashing rules for the Ergodox EZ 123 ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1" 124 ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" 125 SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" 126 KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" 127 128 # Keymapp / Wally Flashing rules for the Moonlander and Planck EZ 129 SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu" 130 # Keymapp Flashing rules for the Voyager 131 SUBSYSTEMS=="usb", ATTRS{idVendor}=="3297", MODE:="0666", SYMLINK+="ignition_dfu" 132 # USB serial device access via Chrome/Chromium 133 KERNEL=="ttyUSB[0-9]*", MODE:="0666", GROUP="dialout" 134 KERNEL=="ttyACM[0-9]*", MODE:="0666", GROUP="dialout" 135 ''; 136 137 # Define a user account. Don't forget to set a password with ‘passwd’. 138 users.groups.storage = { }; 139 users.groups.plugdev = { }; 140 users.users.sean = { 141 isNormalUser = true; 142 description = "Sean Aye"; 143 extraGroups = [ 144 "docker" 145 "networkmanager" 146 "wheel" 147 "video" 148 "disk" 149 "storage" 150 "input" 151 "plugdev" 152 "dialout" 153 ]; 154 shell = pkgs.fish; 155 }; 156 157 programs.steam = { 158 enable = true; 159 remotePlay.openFirewall = true; 160 gamescopeSession.enable = true; 161 extraCompatPackages = with pkgs; [ 162 proton-ge-bin 163 ]; 164 }; 165 166 programs.gamemode.enable = true; 167 168 programs.gamescope = { 169 enable = true; 170 capSysNice = true; 171 }; 172 173 programs.fish.enable = true; 174 programs._1password.enable = true; 175 programs._1password-gui = { 176 enable = true; 177 polkitPolicyOwners = [ "sean" ]; 178 }; 179 180 virtualisation.docker.enable = true; 181 182 # Allow unfree packages 183 nixpkgs.config.allowUnfree = true; 184 185 # List packages installed in system profile. To search, run: 186 # $ nix search wget 187 environment.systemPackages = with pkgs; [ 188 wl-clipboard 189 ]; 190 environment.variables = { 191 EDITOR = "hx"; 192 VISUAL = "hx"; 193 SUDO_EDITOR = "hx"; 194 }; 195}