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