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.users.sean = { pkgs, ...}: { 107 home.packages = [ 108 pkgs.atool 109 pkgs.httpie 110 pkgs.helix 111 pkgs.jujutsu 112 113 # --- ESSENTIAL HYPRLAND ECOSYSTEM TOOLS --- 114 pkgs.alacritty # Terminal emulator (popular choice, or pkgs.alacritty, pkgs.foot) 115 pkgs.wofi # Application launcher (or pkgs.rofi-wayland) 116 pkgs.waybar # Status bar (highly recommended) 117 pkgs.mako # Notification daemon 118 pkgs.swaybg # For setting wallpapers (or pkgs.hyprpaper, pkgs.swww) 119 pkgs.swaylock-effects # Screen locker (or pkgs.hyprlock) 120 # pkgs.swayidle # Idle management daemon (configure later) 121 pkgs.cliphist # Clipboard history manager 122 pkgs.slurp # For selecting a region for screenshots 123 pkgs.grim # For taking screenshots 124 pkgs.pavucontrol # GUI for PulseAudio/PipeWire volume control 125 126 # --- FONTS ARE IMPORTANT --- 127 pkgs.noto-fonts 128 pkgs.noto-fonts-cjk-sans 129 pkgs.noto-fonts-emoji 130 pkgs.font-awesome # For icons in waybar, etc. 131 pkgs.nerd-fonts.jetbrains-mono 132 133 # --- POLKIT AGENT (for 1Password GUI, etc.) --- 134 pkgs.lxqt.lxqt-policykit # Lightweight polkit agent 135 ]; 136 programs.jujutsu = { 137 enable = true; 138 settings = { 139 user = { 140 email = "hello@seanaye.ca"; 141 name = "Sean Aye"; 142 }; 143 }; 144 }; 145 home.sessionVariables = { 146 EDITOR = "hx"; 147 VISUAL = "hx"; 148 SUDO_EDITOR = "hx"; 149 # --- WAYLAND SPECIFIC ENV VARS --- 150 NIXOS_OZONE_WL = "1"; # May help some electron apps use Wayland 151 QT_QPA_PLATFORM = "wayland;xcb"; # Prefer Wayland for Qt, fallback to xcb (XWayland) 152 QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; # If you want Hyprland to draw all decorations 153 SDL_VIDEODRIVER = "wayland"; 154 XDG_CURRENT_DESKTOP = "Hyprland"; 155 XDG_SESSION_TYPE = "wayland"; 156 _JAVA_AWT_WM_NONREPARENTING = "1"; 157 }; 158 programs.home-manager.enable = true; 159 programs.helix.enable = true; 160 programs.fish = { 161 enable = true; 162 interactiveShellInit = '' 163 set fish_greeting 164 ''; 165 }; 166 programs.starship = { 167 enable = true; 168 enableFishIntegration = true; 169 }; 170 171 172 # --- HYPRLAND CONFIGURATION FILES --- 173 # This tells home-manager to place your hyprland.conf in ~/.config/hypr/ 174 # You will need to create the actual file (see step 2 below) 175 xdg.configFile."hypr/hyprland.conf".source = ./hyprland.conf; # Points to a file named hyprland.conf in the same directory as your configuration.nix 176 177 home.stateVersion = "25.05"; 178 }; 179 180 181 # Install firefox. 182 programs.firefox.enable = true; 183 programs.fish.enable = true; 184 185 programs._1password.enable = true; 186 programs._1password-gui = { 187 enable = true; 188 polkitPolicyOwners = ["sean"]; 189 }; 190 191 programs.steam = { 192 enable = true; 193 }; 194 195 196 # Allow unfree packages 197 nixpkgs.config.allowUnfree = true; 198 199 # List packages installed in system profile. To search, run: 200 # $ nix search wget 201 environment.systemPackages = with pkgs; [ 202 git 203 wl-clipboard 204 ]; 205 environment.variables = { 206 EDITOR = "hx"; 207 VISUAL = "hx"; 208 SUDO_EDITOR = "hx"; 209 }; 210 211 212 # Some programs need SUID wrappers, can be configured further or are 213 # started in user sessions. 214 # programs.mtr.enable = true; 215 # programs.gnupg.agent = { 216 # enable = true; 217 # enableSSHSupport = true; 218 # }; 219 220 # List services that you want to enable: 221 222 # Enable the OpenSSH daemon. 223 # services.openssh.enable = true; 224 225 # Open ports in the firewall. 226 # networking.firewall.allowedTCPPorts = [ ... ]; 227 # networking.firewall.allowedUDPPorts = [ ... ]; 228 # Or disable the firewall altogether. 229 # networking.firewall.enable = false; 230 231 # This value determines the NixOS release from which the default 232 # settings for stateful data, like file locations and database versions 233 # on your system were taken. It‘s perfectly fine and recommended to leave 234 # this value at the release version of the first install of this system. 235 # Before changing this value read the documentation for this option 236 # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). 237 system.stateVersion = "25.05"; # Did you read the comment? 238 239}