From 8bd2cb21125677e0f6cd43a170709fb0a9f7b122 Mon Sep 17 00:00:00 2001 From: "thomas g. lopes" Date: Mon, 9 Mar 2026 11:31:37 +0000 Subject: [PATCH] update packages, add browsers module, cleanup backup --- README.md | 2 +- configuration.nix.backup | 150 --------------------------------------- modules/browsers.nix | 5 ++ modules/packages.nix | 4 +- 4 files changed, 8 insertions(+), 153 deletions(-) delete mode 100644 configuration.nix.backup create mode 100644 modules/browsers.nix diff --git a/README.md b/README.md index 5df6d0c..0ae48f1 100644 --- a/README.md +++ b/README.md @@ -18,5 +18,5 @@ NixOS configuration using a dendritic structure — `flake.nix` at the root, wit ## Usage ```bash -sudo nixos-rebuild switch --flake . +sudo nixos-rebuild switch --flake .#nixos ``` diff --git a/configuration.nix.backup b/configuration.nix.backup deleted file mode 100644 index 03d8c43..0000000 --- a/configuration.nix.backup +++ /dev/null @@ -1,150 +0,0 @@ -# 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 - ]; - - # Bootloader. - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; - - # Use latest kernel. - boot.kernelPackages = pkgs.linuxPackages_latest; - - 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 = "Europe/Lisbon"; - - # Select internationalisation properties. - i18n.defaultLocale = "en_GB.UTF-8"; - - i18n.extraLocaleSettings = { - LC_ADDRESS = "pt_PT.UTF-8"; - LC_IDENTIFICATION = "pt_PT.UTF-8"; - LC_MEASUREMENT = "pt_PT.UTF-8"; - LC_MONETARY = "pt_PT.UTF-8"; - LC_NAME = "pt_PT.UTF-8"; - LC_NUMERIC = "pt_PT.UTF-8"; - LC_PAPER = "pt_PT.UTF-8"; - LC_TELEPHONE = "pt_PT.UTF-8"; - LC_TIME = "pt_PT.UTF-8"; - }; - - # 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 = "us"; - variant = ""; - }; - - # Enable CUPS to print documents. - services.printing.enable = true; - - # Enable sound with pipewire. - services.pulseaudio.enable = false; - 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; - }; - - # 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.thomasgl = { - isNormalUser = true; - description = "Thomas Gouveia Lopes"; - extraGroups = [ "networkmanager" "wheel" ]; - packages = with pkgs; [ - neovim - nodejs_24 - pnpm - fd - ripgrep - fish - go - nerdfetch - git - alacritty - zellij - fzf - autojump - # thunderbird - ]; - - }; -fonts.packages = with pkgs; [ -nerd-fonts.iosevka-term-slab -]; - - # Install firefox. - programs.firefox.enable = true; - - # Allow unfree packages - nixpkgs.config.allowUnfree = true; - - # List packages installed in system profile. To search, run: - # $ nix search wget - environment.systemPackages = with pkgs; [ - # vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default. - # wget - ]; - - # 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.11"; # Did you read the comment? - -} diff --git a/modules/browsers.nix b/modules/browsers.nix new file mode 100644 index 0000000..90ffd78 --- /dev/null +++ b/modules/browsers.nix @@ -0,0 +1,5 @@ +{inputs,}: { + flake.nixosModules.browsers = {pkgs,...}: { + programs.firefox.enable = true; + } +} diff --git a/modules/packages.nix b/modules/packages.nix index 728997e..c6358b3 100644 --- a/modules/packages.nix +++ b/modules/packages.nix @@ -19,8 +19,8 @@ pulseaudio legcord quickshell + rofi + slack ]; - - programs.firefox.enable = true; }; }