me like nix
0

Configure Feed

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

1{ config, pkgs, ... }: 2 3{ 4 imports = 5 [ # Include the results of the hardware scan. 6 ./hardware-configuration.nix 7 # home-manager is now imported via the flake's modules list 8 ]; 9 10 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 11 12 # Bootloader. 13 boot.loader.systemd-boot.enable = true; 14 boot.loader.efi.canTouchEfiVariables = true; 15 16 # Use latest kernel. 17 boot.kernelPackages = pkgs.linuxPackages_latest; 18 19 networking.hostName = "nixos"; # Define your hostname. 20 # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. 21 22 # Configure network proxy if necessary 23 # networking.proxy.default = "http://user:password@proxy:port/"; 24 # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; 25 26 # Enable networking 27 networking.networkmanager.enable = true; 28 29 # Set your time zone. 30 time.timeZone = "America/New_York"; 31 32 # Select internationalisation properties. 33 i18n.defaultLocale = "en_US.UTF-8"; 34 35 i18n.extraLocaleSettings = { 36 LC_ADDRESS = "en_US.UTF-8"; 37 LC_IDENTIFICATION = "en_US.UTF-8"; 38 LC_MEASUREMENT = "en_US.UTF-8"; 39 LC_MONETARY = "en_US.UTF-8"; 40 LC_NAME = "en_US.UTF-8"; 41 LC_NUMERIC = "en_US.UTF-8"; 42 LC_PAPER = "en_US.UTF-8"; 43 LC_TELEPHONE = "en_US.UTF-8"; 44 LC_TIME = "en_US.UTF-8"; 45 }; 46 47 48 programs.hyprland = { 49 enable = true; 50 xwayland.enable = true; 51 }; 52 53 54 services.greetd = { 55 enable = true; 56 settings = { 57 default_session = { 58 command = "${pkgs.hyprland}/bin/Hyprland"; 59 user = "sean"; # Your username 60 }; 61 }; 62 # Example with regreet (graphical) 63 package = pkgs.greetd.regreet; 64 # Or tuigreet (console) 65 # package = pkgs.greetd.tuigreet; 66 }; 67 68 xdg.portal = { 69 enable = true; 70 wlr.enable = true; 71 extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; 72 }; 73 74 75 76 77 # Enable CUPS to print documents. 78 services.printing.enable = true; 79 80 # Enable sound with pipewire. 81 services.pulseaudio.enable = false; 82 security.rtkit.enable = true; 83 services.pipewire = { 84 enable = true; 85 alsa.enable = true; 86 alsa.support32Bit = true; 87 pulse.enable = true; 88 # If you want to use JACK applications, uncomment this 89 #jack.enable = true; 90 91 # use the example session manager (no others are packaged yet so this is enabled by default, 92 # no need to redefine it in your config for now) 93 #media-session.enable = true; 94 }; 95 96 # Enable touchpad support (enabled default in most desktopManager). 97 # services.xserver.libinput.enable = true; 98 99 # Define a user account. Don't forget to set a password with ‘passwd’. 100 users.users.sean = { 101 isNormalUser = true; 102 description = "Sean Aye"; 103 extraGroups = [ "networkmanager" "wheel" ]; 104 shell = pkgs.fish; 105 }; 106 home-manager.backupFileExtension = "backup"; 107 home-manager.users.sean = { pkgs, ...}: { 108 home.packages = [ 109 pkgs.atool 110 pkgs.httpie 111 pkgs.helix 112 pkgs.jujutsu 113 pkgs.htop 114 # --- ESSENTIAL HYPRLAND ECOSYSTEM TOOLS --- 115 pkgs.alacritty # Terminal emulator (popular choice, or pkgs.alacritty, pkgs.foot) 116 pkgs.wofi # Application launcher (or pkgs.rofi-wayland) 117 pkgs.waybar # Status bar (highly recommended) 118 pkgs.mako # Notification daemon 119 pkgs.swaybg # For setting wallpapers (or pkgs.hyprpaper, pkgs.swww) 120 pkgs.cliphist # Clipboard history manager 121 pkgs.slurp # For selecting a region for screenshots 122 pkgs.grim # For taking screenshots 123 pkgs.pavucontrol # GUI for PulseAudio/PipeWire volume control 124 125 # --- FONTS ARE IMPORTANT --- 126 pkgs.noto-fonts 127 pkgs.noto-fonts-cjk-sans 128 pkgs.noto-fonts-emoji 129 pkgs.font-awesome # For icons in waybar, etc. 130 pkgs.nerd-fonts.jetbrains-mono 131 132 # --- POLKIT AGENT (for 1Password GUI, etc.) --- 133 pkgs.lxqt.lxqt-policykit # Lightweight polkit agent 134 ]; 135 programs.jujutsu = { 136 enable = true; 137 settings = { 138 user = { 139 email = "hello@seanaye.ca"; 140 name = "Sean Aye"; 141 }; 142 }; 143 }; 144 home.sessionVariables = { 145 EDITOR = "hx"; 146 VISUAL = "hx"; 147 SUDO_EDITOR = "hx"; 148 # --- WAYLAND SPECIFIC ENV VARS --- 149 NIXOS_OZONE_WL = "1"; # May help some electron apps use Wayland 150 QT_QPA_PLATFORM = "wayland;xcb"; # Prefer Wayland for Qt, fallback to xcb (XWayland) 151 QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; # If you want Hyprland to draw all decorations 152 SDL_VIDEODRIVER = "wayland"; 153 XDG_CURRENT_DESKTOP = "Hyprland"; 154 XDG_SESSION_TYPE = "wayland"; 155 _JAVA_AWT_WM_NONREPARENTING = "1"; 156 }; 157 programs.home-manager.enable = true; 158 programs.helix.enable = true; 159 programs.fish = { 160 enable = true; 161 interactiveShellInit = '' 162 set fish_greeting 163 ''; 164 }; 165 programs.starship = { 166 enable = true; 167 enableFishIntegration = true; 168 }; 169 170 171 # --- HYPRLAND CONFIGURATION FILES --- 172 # This tells home-manager to place your hyprland.conf in ~/.config/hypr/ 173 # You will need to create the actual file (see step 2 below) 174 xdg.configFile."hypr/hyprland.conf".source = ./hyprland.conf; # Points to a file named hyprland.conf in the same directory as your configuration.nix 175 176 home.stateVersion = "25.05"; 177 }; 178 179 180 # Install firefox. 181 programs.firefox.enable = true; 182 programs.fish.enable = true; 183 184 programs._1password.enable = true; 185 programs._1password-gui = { 186 enable = true; 187 polkitPolicyOwners = ["sean"]; 188 }; 189 190 programs.steam = { 191 enable = true; 192 }; 193 194 195 # Allow unfree packages 196 nixpkgs.config.allowUnfree = true; 197 198 # List packages installed in system profile. To search, run: 199 # $ nix search wget 200 environment.systemPackages = with pkgs; [ 201 git 202 wl-clipboard 203 ]; 204 environment.variables = { 205 EDITOR = "hx"; 206 VISUAL = "hx"; 207 SUDO_EDITOR = "hx"; 208 }; 209 210 211 # Some programs need SUID wrappers, can be configured further or are 212 # started in user sessions. 213 # programs.mtr.enable = true; 214 # programs.gnupg.agent = { 215 # enable = true; 216 # enableSSHSupport = true; 217 # }; 218 219 # List services that you want to enable: 220 nixarr = { 221 enable = true; 222 223 jellyfin = { 224 enable = true; 225 }; 226 227 transmission = { 228 enable = true; 229 }; 230 sabnzbd.enable = true; 231 232 prowlarr.enable = true; 233 radarr.enable = true; 234 sonarr.enable = true; 235 jellyseerr.enable = true; 236 }; 237 238 # Enable the OpenSSH daemon. 239 # services.openssh.enable = true; 240 241 # Open ports in the firewall. 242 # networking.firewall.allowedTCPPorts = [ ... ]; 243 # networking.firewall.allowedUDPPorts = [ ... ]; 244 # Or disable the firewall altogether. 245 # networking.firewall.enable = false; 246 247 # This value determines the NixOS release from which the default 248 # settings for stateful data, like file locations and database versions 249 # on your system were taken. It‘s perfectly fine and recommended to leave 250 # this value at the release version of the first install of this system. 251 # Before changing this value read the documentation for this option 252 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 253 system.stateVersion = "25.05"; # Did you read the comment? 254 255}