Created
October 10, 2025 02:48
-
-
Save JamesIslan/dcfa6610aa5aa2d9c4f45de8e5cc99c0 to your computer and use it in GitHub Desktop.
configuration.nix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page | |
| # and in the NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, ... }: | |
| { | |
| imports = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix | |
| <home-manager/nixos> | |
| ]; | |
| # Bootloader. | |
| boot.loader.systemd-boot.enable = true; | |
| boot.loader.efi.canTouchEfiVariables = true; | |
| networking.hostName = "nixos"; # Define your hostname. | |
| # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant. | |
| # Configure network proxy if necessary | |
| # networking.proxy.default = "http://user:password@proxy:port/"; | |
| # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; | |
| # Enable networking | |
| networking.networkmanager.enable = true; | |
| # Set your time zone. | |
| time.timeZone = "America/Recife"; | |
| # Select internationalisation properties. | |
| i18n.defaultLocale = "en_US.UTF-8"; | |
| i18n.extraLocaleSettings = { | |
| LC_ADDRESS = "pt_BR.UTF-8"; | |
| LC_IDENTIFICATION = "pt_BR.UTF-8"; | |
| LC_MEASUREMENT = "pt_BR.UTF-8"; | |
| LC_MONETARY = "pt_BR.UTF-8"; | |
| LC_NAME = "pt_BR.UTF-8"; | |
| LC_NUMERIC = "pt_BR.UTF-8"; | |
| LC_PAPER = "pt_BR.UTF-8"; | |
| LC_TELEPHONE = "pt_BR.UTF-8"; | |
| LC_TIME = "pt_BR.UTF-8"; | |
| }; | |
| services.flatpak.enable = true; | |
| # Enable the X11 windowing system. | |
| services.xserver.enable = true; | |
| # Enable the GNOME Desktop Environment. | |
| services.xserver.displayManager.gdm.enable = true; | |
| services.xserver.desktopManager.gnome.enable = true; | |
| # Configure keymap in X11 | |
| services.xserver.xkb = { | |
| layout = "br"; | |
| variant = ""; | |
| }; | |
| # Configure console keymap | |
| console.keyMap = "br-abnt2"; | |
| # Enable CUPS to print documents. | |
| services.printing.enable = true; | |
| # Enable sound with pipewire. | |
| hardware = { | |
| graphics.enable = true; | |
| }; | |
| security.rtkit.enable = true; | |
| services.pipewire = { | |
| enable = true; | |
| alsa.enable = true; | |
| alsa.support32Bit = true; | |
| pulse.enable = true; | |
| # If you want to use JACK applications, uncomment this | |
| #jack.enable = true; | |
| # use the example session manager (no others are packaged yet so this is enabled by default, | |
| # no need to redefine it in your config for now) | |
| #media-session.enable = true; | |
| }; | |
| services.pulseaudio.enable = false; | |
| # Enable touchpad support (enabled default in most desktopManager). | |
| # services.xserver.libinput.enable = true; | |
| # Define a user account. Don't forget to set a password with ‘passwd’. | |
| users.users.jamesislan = { | |
| isNormalUser = true; | |
| description = "Joamerson Islan"; | |
| extraGroups = [ "networkmanager" "wheel" "video" "vboxusers"]; | |
| packages = with pkgs; [ | |
| # thunderbird | |
| ]; | |
| }; | |
| home-manager.users.jamesislan = { | |
| home.packages = [ | |
| pkgs.atool | |
| pkgs.httpie | |
| ]; | |
| programs.bash.enable = true; | |
| programs.vscode = { | |
| enable = true; | |
| package = pkgs.vscode.fhsWithPackages (ps: with ps; [ pico-sdk picotool libusb1 ]); | |
| #package = pkgs.vscode; | |
| }; | |
| nixpkgs.config.allowUnfree = true; | |
| # nixpkgs.config.allowBroken = true; | |
| # This value determines the Home Manager release that your configuration is | |
| # compatible with. This helps avoid breakage when a new Home Manager release | |
| # introduces backwards incompatible changes. | |
| # | |
| # You should not change this value, even if you update Home Manager. If you do | |
| # want to update the value, then make sure to first check the Home Manager | |
| # release notes. | |
| home.stateVersion = "25.05"; # Please read the comment before changing. | |
| }; | |
| programs.firefox.enable = true; | |
| # Allow unfree packages | |
| nixpkgs.config.allowUnfree = true; | |
| virtualisation.virtualbox.host = { | |
| enable = false; | |
| enableExtensionPack = true; # Optional (for USB 2.0/3.0 support) | |
| }; | |
| programs.virt-manager.enable = true; | |
| users.groups.libvirtd.members = ["jamesislan"]; | |
| virtualisation.libvirtd.enable = true; | |
| virtualisation.spiceUSBRedirection.enable = true; | |
| # List packages installed in system profile. To search, run: | |
| # $ nix search wget | |
| environment.systemPackages = with pkgs; [ | |
| # vscode.fhs | |
| gedit | |
| anki | |
| discord | |
| obsidian | |
| spotify | |
| xournalpp | |
| bottles | |
| #warp-terminal | |
| #postman | |
| qbittorrent | |
| shotwell | |
| micro | |
| #sublime | |
| #wpsoffice | |
| pdfgrep | |
| gparted | |
| #darktable | |
| #rawtherapee | |
| #digikam | |
| nufraw | |
| nufraw-thumbnailer | |
| # oh-my-zsh | |
| ghostty | |
| git | |
| nodejs_24 | |
| #spacedrive | |
| #drawing | |
| # helix | |
| kakoune | |
| pinta | |
| libreoffice-qt6-fresh | |
| pavucontrol | |
| xflux | |
| vlc | |
| stremio | |
| mkvtoolnix | |
| kooha | |
| chromium | |
| wineWowPackages.stable | |
| winetricks | |
| gnome-tweaks | |
| #guvcview | |
| #obs-studio | |
| #ocrmypdf | |
| github-desktop | |
| texstudio | |
| gnome-boxes | |
| elan | |
| lean4 | |
| haskellPackages.ghc | |
| gcc | |
| gnumeric | |
| #haskellPackages.cabal-install | |
| # haskellPackages.hls | |
| haskellPackages.stack # If you prefer Stack | |
| haskellPackages.haskell-language-server | |
| # haskellPackages.ghcup | |
| wineWowPackages.stable | |
| python313Packages.pip | |
| python313Packages.pygments | |
| # vmware-workstation | |
| # virtualbox | |
| # kdePackages.plasma-pa | |
| # texliveMedium | |
| # texliveGUST | |
| texliveFull | |
| python313 | |
| minicom | |
| #pico-sdk | |
| #picotool | |
| #libusb1 | |
| #ninja | |
| # Hyprland | |
| kitty | |
| waybar | |
| wallust | |
| hyprcursor | |
| swaynotificationcenter | |
| # hyprpaper | |
| rofi-wayland | |
| hyprlock | |
| hyprsome | |
| pyprland | |
| hypridle | |
| brightnessctl | |
| pamixer | |
| libnotify | |
| xfce.thunar | |
| hyprshot | |
| cliphist | |
| wl-clipboard | |
| xdg-desktop-portal | |
| xdg-desktop-portal-gtk | |
| ]; | |
| environment.gnome.excludePackages = with pkgs; [ | |
| gnome-console | |
| gnome-weather | |
| gnome-maps | |
| ]; | |
| programs.hyprland = { | |
| enable = true; | |
| xwayland.enable = true; | |
| }; | |
| # programs.micro = { | |
| # enable = true; | |
| # settings = { | |
| # colorscheme = "catppuccin-mocha"; | |
| # tabsize = 4; | |
| # cursorstyle = "bar"; | |
| # }; | |
| # }; | |
| #programs.vscode.package = pkgs.vscode.fhsWithPackages (ps: with ps; [ pico-sdk ]); | |
| # programs.vscode.package = pkgs.vscode.fhsWithPackages (ps: with ps; [ pico-sdk ]); | |
| environment.sessionVariables = { | |
| WLR_NO_HARDWARE_CURSORS = "1"; | |
| NIXOS_OZONE_WL = "1"; | |
| }; | |
| # Dev partition configuration | |
| fileSystems."/mnt/dev" = { | |
| device = "/dev/disk/by-uuid/2c353cef-0699-4a32-978f-8266402ba69b"; | |
| fsType = "ext4"; | |
| options = ["nosuid" "nodev" "nofail" "x-gvfs-show"]; # Prevents privilege escalation via SUID binaries | |
| }; | |
| # Files partition configuration | |
| fileSystems."/mnt/files" = { | |
| device = "/dev/disk/by-uuid/1194E68A2D9ED306"; | |
| fsType = "ntfs"; | |
| options = ["nosuid" "nodev" "nofail" "x-gvfs-show"]; # Prevents privilege escalation via SUID binaries | |
| }; | |
| # Configure Raspberry RP2040 | |
| services.udev.extraRules = '' | |
| SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", MODE="0666" | |
| ''; | |
| # Some programs need SUID wrappers, can be configured further or are | |
| # started in user sessions. | |
| # programs.mtr.enable = true; | |
| # programs.gnupg.agent = { | |
| # enable = true; | |
| # enableSSHSupport = true; | |
| # }; | |
| # List services that you want to enable: | |
| # Enable the OpenSSH daemon. | |
| # services.openssh.enable = true; | |
| # Open ports in the firewall. | |
| # networking.firewall.allowedTCPPorts = [ ... ]; | |
| # networking.firewall.allowedUDPPorts = [ ... ]; | |
| # Or disable the firewall altogether. | |
| # networking.firewall.enable = false; | |
| # This value determines the NixOS release from which the default | |
| # settings for stateful data, like file locations and database versions | |
| # on your system were taken. It‘s perfectly fine and recommended to leave | |
| # this value at the release version of the first install of this system. | |
| # Before changing this value read the documentation for this option | |
| # (e.g. man configuration.nix or on https://nixos.org/nixos/options.html). | |
| system.stateVersion = "25.05"; # Did you read the comment? | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment