From 1693e60f125602b6c24e53b890f861c16d086fef Mon Sep 17 00:00:00 2001 From: ediblerope Date: Wed, 3 Dec 2025 10:07:54 +0000 Subject: [PATCH] Update common.nix --- common.nix | 87 ++++++++++++++++++++++++++++++------------------------ 1 file changed, 48 insertions(+), 39 deletions(-) diff --git a/common.nix b/common.nix index ed3b963..b1bb859 100644 --- a/common.nix +++ b/common.nix @@ -5,31 +5,16 @@ # Use latest kernel boot.kernelPackages = pkgs.linuxPackages_latest; +# Shell aliases +environment.shellAliases = { + update = "sudo nixos-rebuild switch --option tarball-ttl 0"; +}; + # Add packages environment.systemPackages = [ pkgs.git ]; -# Enable networking -networking.networkmanager.enable = true; - -# Set your time zone. -time.timeZone = "Europe/London"; - -# Select internationalisation properties. -i18n.defaultLocale = "en_GB.UTF-8"; -i18n.extraLocaleSettings = { - LC_ADDRESS = "en_GB.UTF-8"; - LC_IDENTIFICATION = "en_GB.UTF-8"; - LC_MEASUREMENT = "en_GB.UTF-8"; - LC_MONETARY = "en_GB.UTF-8"; - LC_NAME = "en_GB.UTF-8"; - LC_NUMERIC = "en_GB.UTF-8"; - LC_PAPER = "en_GB.UTF-8"; - LC_TELEPHONE = "en_GB.UTF-8"; - LC_TIME = "en_GB.UTF-8"; -}; - # GNOME + Keybinds # Enable the X11 windowing system. services.xserver.enable = true; @@ -53,25 +38,6 @@ programs.dconf = { }; }]; }; - -# Configure keymap in X11 -services.xserver.xkb = { - layout = "gb"; - variant = ""; -}; - -# Configure console keymap -console.keyMap = "uk"; - -# 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; -}; # Define a user account. Don't forget to set a password with ‘passwd’. users.users.fred = { @@ -90,4 +56,47 @@ nixpkgs.config.allowUnfree = true; # Services services.flatpak.enable = true; + +###################### +##BORING STUFF BELOW## +###################### +# Enable networking +networking.networkmanager.enable = true; + +# Set your time zone. +time.timeZone = "Europe/London"; + +# Select internationalisation properties. +i18n.defaultLocale = "en_GB.UTF-8"; +i18n.extraLocaleSettings = { + LC_ADDRESS = "en_GB.UTF-8"; + LC_IDENTIFICATION = "en_GB.UTF-8"; + LC_MEASUREMENT = "en_GB.UTF-8"; + LC_MONETARY = "en_GB.UTF-8"; + LC_NAME = "en_GB.UTF-8"; + LC_NUMERIC = "en_GB.UTF-8"; + LC_PAPER = "en_GB.UTF-8"; + LC_TELEPHONE = "en_GB.UTF-8"; + LC_TIME = "en_GB.UTF-8"; +}; + +# 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; +}; + +# Configure keymap in X11 +services.xserver.xkb = { + layout = "gb"; + variant = ""; +}; + +# Configure console keymap +console.keyMap = "uk"; + }