From 2f8a45c405862c51809f0356bd07eb32b9a625dd Mon Sep 17 00:00:00 2001 From: phartman Date: Sun, 13 Oct 2024 01:07:47 -0500 Subject: [PATCH] Cleanup and moving active config --- hosts/latitude/configuration.nix | 47 ++++++++------------------------ 1 file changed, 12 insertions(+), 35 deletions(-) diff --git a/hosts/latitude/configuration.nix b/hosts/latitude/configuration.nix index 87db098..ecfef2f 100644 --- a/hosts/latitude/configuration.nix +++ b/hosts/latitude/configuration.nix @@ -8,16 +8,13 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - #../../../common/cpu/intel - #../../../common/pc/laptop -# ./packages.nix ]; -{ + nix = { nixPath = [ "nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos" - "nixos-config=/home/paul/.nixos/hosts/latitude/configuration.nix" + "nixos-config=/home/paul/NixOS/hosts/latitude/configuration.nix" "/nix/var/nix/profiles/per-user/root/channels" ]; }; @@ -47,11 +44,6 @@ boot.loader.efi.canTouchEfiVariables = true; boot.loader.systemd-boot.configurationLimit = 10; # Keep only the last 10 Generations. networking.hostName = "latitude"; # 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; @@ -75,23 +67,17 @@ }; # Experimental Features Enabled - # {pkgs, ...}: { nix.settings.experimental-features = ["nix-command"]; - # } # Enable the X11 windowing system. services.xserver.enable = true; - - # Enable Sway (wayland) Window Manager - #programs.sway.enable = true; - + # Enable the KDE Plasma Desktop Environment. - #services.xserver.displayManager.sddm.enable = true; - services.displayManager.sddm.wayland.enable = true; + services.displayManager.sddm.wayland.enable = true; # Launch KDE in Wayland session services.displayManager.defaultSession = "plasma"; services.desktopManager.plasma6.enable = true; - # Launch KDE in Wayland session + # Configure keymap in X11 services.xserver.xkb = { layout = "us"; @@ -101,17 +87,9 @@ # Enable CUPS to print documents. services.printing.enable = true; - # Bluetooth - hardware.bluetooth = { - enable =true; - powerOnBoot = true; - - }; - #services.blueman.enable = true; + # Enable sound with pipewire. - # sound.enable = true; - security.rtkit.enable = true; services.pipewire = { enable = true; @@ -120,12 +98,14 @@ 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; }; + # Bluetooth + hardware.bluetooth = { + enable =true; + powerOnBoot = true; + + }; ## Allow Bluetooth buttons to control media player systemd.user.services.mpris-proxy = { description = "Mpris proxy"; @@ -147,9 +127,6 @@ }; }; - # 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.paul = { isNormalUser = true;