me like nix
0

Configure Feed

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

add a bunch of stuff

+188 -55
+40 -20
configuration.nix
··· 1 - { config, pkgs, inputs, ... }: 1 + { 2 + config, 3 + pkgs, 4 + inputs, 5 + ... 6 + }: 2 7 3 8 { 4 - imports = 5 - [ # Include the results of the hardware scan. 6 - ./hardware-configuration.nix 7 - ]; 9 + imports = [ 10 + # Include the results of the hardware scan. 11 + ./hardware-configuration.nix 12 + ]; 8 13 9 - nix.settings.experimental-features = [ "nix-command" "flakes" ]; 14 + nix.settings.experimental-features = [ 15 + "nix-command" 16 + "flakes" 17 + ]; 10 18 11 19 # Bootloader. 12 20 boot.loader.systemd-boot.enable = true; ··· 44 52 }; 45 53 46 54 programs.niri = { 47 - enable = true; 48 - package = pkgs.niri; 55 + enable = true; 56 + package = pkgs.niri; 49 57 }; 50 58 51 59 services.greetd = { ··· 60 68 61 69 xdg.portal = { 62 70 enable = true; 63 - 71 + 64 72 # Specify the backends you want to use. 65 73 # The order matters, the first one is the primary. 66 74 extraPortals = with pkgs; [ ··· 70 78 # Set the default portal for common interfaces. 71 79 # "wlr" is for wlroots-based compositors like niri. 72 80 # "gtk" is a fallback for file pickers and other things. 73 - config.common.default = [ "wlr" "gtk" ]; 81 + config.common.default = [ 82 + "wlr" 83 + "gtk" 84 + ]; 74 85 }; 75 - 86 + 76 87 # Enable CUPS to print documents. 77 88 services.printing.enable = true; 78 89 79 90 # Enable sound with pipewire. 80 91 services.pulseaudio.enable = false; 92 + security.polkit.enable = true; 81 93 security.rtkit.enable = true; 82 94 services.pipewire = { 83 95 enable = true; ··· 92 104 #media-session.enable = true; 93 105 }; 94 106 95 - 96 - 97 - # Enable touchpad support (enabled default in most desktopManager). 98 - # services.xserver.libinput.enable = true; 107 + services.udisks2.enable = true; 99 108 100 109 # Define a user account. Don't forget to set a password with ‘passwd’. 101 110 users.users.sean = { 102 111 isNormalUser = true; 103 112 description = "Sean Aye"; 104 - extraGroups = [ "networkmanager" "wheel" "video" ]; 113 + extraGroups = [ 114 + "networkmanager" 115 + "wheel" 116 + "video" 117 + "disk" 118 + "storage" 119 + ]; 105 120 shell = pkgs.fish; 106 121 }; 107 122 ··· 109 124 programs._1password.enable = true; 110 125 programs._1password-gui = { 111 126 enable = true; 112 - polkitPolicyOwners = ["sean"]; 127 + polkitPolicyOwners = [ "sean" ]; 113 128 }; 114 129 115 130 programs.steam = { ··· 130 145 VISUAL = "hx"; 131 146 SUDO_EDITOR = "hx"; 132 147 }; 133 - 134 148 135 149 # List services that you want to enable: 136 150 nixarr = { ··· 222 236 # services.openssh.enable = true; 223 237 224 238 # Open ports in the firewall. 225 - networking.firewall.allowedTCPPorts = [ 8096 5055 ]; 226 - networking.firewall.allowedUDPPorts = [ 8096 5055 ]; 239 + networking.firewall.allowedTCPPorts = [ 240 + 8096 241 + 5055 242 + ]; 243 + networking.firewall.allowedUDPPorts = [ 244 + 8096 245 + 5055 246 + ]; 227 247 # Or disable the firewall altogether. 228 248 # networking.firewall.enable = false; 229 249
+44 -1
flake.lock
··· 39 39 "type": "github" 40 40 } 41 41 }, 42 + "home-manager_2": { 43 + "inputs": { 44 + "nixpkgs": [ 45 + "zen-browser", 46 + "nixpkgs" 47 + ] 48 + }, 49 + "locked": { 50 + "lastModified": 1743604125, 51 + "narHash": "sha256-ZD61DNbsBt1mQbinAaaEqKaJk2RFo9R/j+eYWeGMx7A=", 52 + "owner": "nix-community", 53 + "repo": "home-manager", 54 + "rev": "180fd43eea296e62ae68e079fcf56aba268b9a1a", 55 + "type": "github" 56 + }, 57 + "original": { 58 + "owner": "nix-community", 59 + "repo": "home-manager", 60 + "type": "github" 61 + } 62 + }, 42 63 "niri": { 43 64 "inputs": { 44 65 "niri-stable": "niri-stable", ··· 201 222 "home-manager": "home-manager", 202 223 "niri": "niri", 203 224 "nixarr": "nixarr", 204 - "nixpkgs": "nixpkgs_4" 225 + "nixpkgs": "nixpkgs_4", 226 + "zen-browser": "zen-browser" 205 227 } 206 228 }, 207 229 "vpnconfinement": { ··· 270 292 "original": { 271 293 "owner": "Supreeeme", 272 294 "repo": "xwayland-satellite", 295 + "type": "github" 296 + } 297 + }, 298 + "zen-browser": { 299 + "inputs": { 300 + "home-manager": "home-manager_2", 301 + "nixpkgs": [ 302 + "nixpkgs" 303 + ] 304 + }, 305 + "locked": { 306 + "lastModified": 1751858709, 307 + "narHash": "sha256-xghd1GDPRSa6aD6tEk2JCuQDZWdHITlCA/stwSVoZJQ=", 308 + "owner": "0xc000022070", 309 + "repo": "zen-browser-flake", 310 + "rev": "216dd333fa41aa013bf8aab9322d7c1a2aee5b4a", 311 + "type": "github" 312 + }, 313 + "original": { 314 + "owner": "0xc000022070", 315 + "repo": "zen-browser-flake", 273 316 "type": "github" 274 317 } 275 318 }
+38 -27
flake.nix
··· 3 3 4 4 inputs = { 5 5 # Nixpkgs (stable or unstable) 6 - nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; # Or "nixos-24.05" for stable 6 + nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05"; 7 7 8 8 # Home Manager 9 9 home-manager = { 10 10 url = "github:nix-community/home-manager/release-25.05"; 11 11 inputs.nixpkgs.follows = "nixpkgs"; # Ensures Home Manager uses the same nixpkgs 12 12 }; 13 - 14 13 catppuccin.url = "github:catppuccin/nix"; 15 - 16 14 niri.url = "github:sodiboo/niri-flake"; 17 - 18 - # media server things 19 15 nixarr.url = "github:rasmus-kirk/nixarr"; 16 + zen-browser = { 17 + url = "github:0xc000022070/zen-browser-flake"; 18 + inputs.nixpkgs.follows = "nixpkgs"; 19 + }; 20 20 }; 21 21 22 - outputs = { self, nixpkgs, home-manager, catppuccin, niri, nixarr, ... }@inputs: { 23 - nixosConfigurations = { 24 - # Replace "nixos" with your actual desired hostname if it's different 25 - # This "nixos" must match the `networking.hostName` in your configuration.nix 26 - nixos = nixpkgs.lib.nixosSystem { 27 - system = "x86_64-linux"; # Or your system's architecture 28 - specialArgs = { inherit inputs; }; # Pass inputs to your modules 29 - modules = [ 30 - # Your main configuration file 31 - ./configuration.nix 22 + outputs = 23 + { 24 + self, 25 + nixpkgs, 26 + home-manager, 27 + catppuccin, 28 + niri, 29 + nixarr, 30 + ... 31 + }@inputs: 32 + { 33 + nixosConfigurations = { 34 + # Replace "nixos" with your actual desired hostname if it's different 35 + # This "nixos" must match the `networking.hostName` in your configuration.nix 36 + nixos = nixpkgs.lib.nixosSystem { 37 + system = "x86_64-linux"; # Or your system's architecture 38 + specialArgs = { inherit inputs; }; # Pass inputs to your modules 39 + modules = [ 40 + # Your main configuration file 41 + ./configuration.nix 32 42 33 - ({ 34 - nixpkgs.overlays = [ niri.overlays.niri ]; 35 - }) 43 + ({ 44 + nixpkgs.overlays = [ niri.overlays.niri ]; 45 + }) 36 46 37 - # nixarr module 38 - nixarr.nixosModules.default 47 + # nixarr module 48 + nixarr.nixosModules.default 39 49 40 - # Home Manager module 41 - home-manager.nixosModules.home-manager { 42 - home-manager.extraSpecialArgs = { inherit inputs; }; 43 - home-manager.users.sean = import ./home.nix; 44 - } 45 - ]; 50 + # Home Manager module 51 + home-manager.nixosModules.home-manager 52 + { 53 + home-manager.extraSpecialArgs = { inherit inputs; }; 54 + home-manager.users.sean = import ./home.nix; 55 + } 56 + ]; 57 + }; 46 58 }; 47 59 }; 48 - }; 49 60 }
+66 -7
home.nix
··· 6 6 imports = [ 7 7 inputs.catppuccin.homeModules.catppuccin 8 8 inputs.niri.homeModules.niri 9 + inputs.zen-browser.homeModules.beta 9 10 ]; 10 11 11 12 # Niri window manager settings, now controlled by the imported module ··· 86 87 87 88 # All your user-specific packages 88 89 home.packages = with pkgs; [ 89 - atool 90 - httpie 91 90 helix 92 91 git 93 92 jujutsu ··· 98 97 wofi # Application launcher (or pkgs.rofi-wayland) 99 98 waybar # Status bar (highly recommended) 100 99 mako # Notification daemon 101 - swaybg # For setting wallpapers (or pkgs.hyprpaper, pkgs.swww) 100 + swww # For setting wallpapers 102 101 cliphist # Clipboard history manager 103 102 slurp # For selecting a region for screenshots 104 103 grim # For taking screenshots ··· 106 105 fd 107 106 ripgrep 108 107 yazi 109 - firefox 110 108 gh 111 109 signal-desktop 112 - xwayland-satellite 113 - nixfmt-rfc-style 114 - nil 110 + xwayland-satellite # for running x11 apps 111 + nixfmt-rfc-style # nix formatter 112 + nil # nix language server 113 + atac # postman-like TUI 114 + rsync # file sync utility 115 115 116 116 # --- FONTS ARE IMPORTANT --- 117 117 noto-fonts ··· 123 123 lxqt.lxqt-policykit # Lightweight polkit agent 124 124 ]; 125 125 126 + services.udiskie = { 127 + enable = true; 128 + tray = "auto"; 129 + automount = true; 130 + }; 131 + 132 + programs.zen-browser.enable = true; 133 + # programs.swww.enable = true; 134 + 126 135 # Program configurations 127 136 programs.git = { 128 137 enable = true; ··· 156 165 157 166 programs.helix = { 158 167 enable = true; 168 + settings = { 169 + theme = "catppuccin_frappe"; 170 + editor = { 171 + bufferline = "multiple"; 172 + file-picker = { 173 + hidden = true; 174 + git-ignore = false; 175 + }; 176 + cursor-shape = { 177 + insert = "bar"; 178 + normal = "block"; 179 + select = "underline"; 180 + }; 181 + line-number = "relative"; 182 + cursorline = true; 183 + auto-format = true; 184 + end-of-line-diagnostics = "hint"; 185 + soft-wrap = { 186 + enable = true; 187 + }; 188 + lsp = { 189 + display-inlay-hints = true; 190 + display-messages = true; 191 + display-progress-messages = true; 192 + }; 193 + inline-diagnostics = { 194 + cursor-line = "hint"; 195 + }; 196 + }; 197 + keys = { 198 + normal = { 199 + esc = [ 200 + "keep_primary_selection" 201 + "collapse_selection" 202 + ]; 203 + }; 204 + 205 + }; 206 + }; 159 207 languages = { 160 208 language = [ 161 209 { ··· 163 211 auto-format = true; 164 212 formatter = { 165 213 command = "${pkgs.nixfmt-rfc-style}/bin/nixfmt"; 214 + }; 215 + } 216 + { 217 + name = "rust"; 218 + auto-format = true; 219 + formatter = { 220 + command = "${pkgs.rustfmt}/bin/rustfmt --edition 2024"; 221 + }; 222 + indent = { 223 + tab-width = 4; 224 + unit = "t"; 166 225 }; 167 226 } 168 227 ];