summaryrefslogtreecommitdiff
path: root/nixos/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/configuration.nix')
-rw-r--r--nixos/configuration.nix122
1 files changed, 122 insertions, 0 deletions
diff --git a/nixos/configuration.nix b/nixos/configuration.nix
new file mode 100644
index 0000000..f5d1502
--- /dev/null
+++ b/nixos/configuration.nix
@@ -0,0 +1,122 @@
+# This is your system's configuration file.
+# Use this to configure your system environment (it replaces /etc/nixos/configuration.nix)
+{
+ inputs,
+ lib,
+ config,
+ pkgs,
+ ...
+}: {
+ # You can import other NixOS modules here
+ imports = [
+ # If you want to use modules from other flakes (such as nixos-hardware):
+ # inputs.hardware.nixosModules.common-cpu-amd
+ # inputs.hardware.nixosModules.common-ssd
+
+ # You can also split up your configuration and import pieces of it here:
+ # ./users.nix
+
+ # Import your generated (nixos-generate-config) hardware configuration
+ ./hardware-configuration.nix
+ ];
+
+ nixpkgs = {
+ # You can add overlays here
+ overlays = [
+ # If you want to use overlays exported from other flakes:
+ # neovim-nightly-overlay.overlays.default
+
+ # Or define it inline, for example:
+ # (final: prev: {
+ # hi = final.hello.overrideAttrs (oldAttrs: {
+ # patches = [ ./change-hello-to-hi.patch ];
+ # });
+ # })
+ ];
+ # Configure your nixpkgs instance
+ config = {
+ # Disable if you don't want unfree packages
+ allowUnfree = true;
+ };
+ };
+
+ nix = {
+ settings = {
+ # Enable flakes and new 'nix' command
+ experimental-features = "nix-command flakes";
+ # Opinionated: disable global registry
+ flake-registry = "";
+ };
+ # Opinionated: disable channels
+ channel.enable = false;
+ };
+
+ boot.loader.systemd-boot.enable = true;
+ boot.loader.efi.canTouchEfiVariables = true;
+
+ networking.hostName = "phosphophyllite"; # Define your hostname.
+
+ programs.hyprland = {
+ enable = true;
+ xwayland.enable = true;
+ };
+ services.xserver.enable = true;
+ services.displayManager.gdm = {
+ enable = true;
+ };
+ services.desktopManager.gnome.enable = false;
+ # Enable networking
+ networking.networkmanager.enable = true;
+
+ # Set your time zone.
+ time.timeZone = "Europe/Bratislava";
+
+ # Select internationalisation properties.
+ i18n.defaultLocale = "en_US.UTF-8";
+
+ i18n.extraLocaleSettings = {
+ LC_ADDRESS = "sk_SK.UTF-8";
+ LC_IDENTIFICATION = "sk_SK.UTF-8";
+ LC_MEASUREMENT = "sk_SK.UTF-8";
+ LC_MONETARY = "sk_SK.UTF-8";
+ LC_NAME = "sk_SK.UTF-8";
+ LC_NUMERIC = "sk_SK.UTF-8";
+ LC_PAPER = "sk_SK.UTF-8";
+ LC_TELEPHONE = "sk_SK.UTF-8";
+ LC_TIME = "sk_SK.UTF-8";
+ };
+
+ # Configure keymap in X11
+ services.xserver.xkb = {
+ layout = "us";
+ variant = "";
+ };
+
+ # Define a user account. Don't forget to set a password with ‘passwd’.
+ users.users."phos" = {
+ isNormalUser = true;
+ extraGroups = [ "networkmanager" "wheel" ];
+ packages = with pkgs; [];
+ };
+
+ services.pipewire = {
+ enable = true;
+ alsa.enable = true;
+ alsa.support32Bit = true;
+ pulse.enable = true;
+ };
+
+ 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
+ kitty
+ git
+ vim
+ rofi
+ waybar
+ librewolf
+ ];
+
+ # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
+ system.stateVersion = "25.11";
+}