From eb74b94f026bca264ed69db9983d971fe3300238 Mon Sep 17 00:00:00 2001 From: _cry64 Date: Mon, 23 Feb 2026 12:15:31 +1000 Subject: [PATCH] nixfmt --- configuration.nix | 124 +++++++++++++++++++------------------ flake.nix | 18 +++--- hardware-configuration.nix | 42 +++++++------ home.nix | 8 ++- 4 files changed, 102 insertions(+), 90 deletions(-) diff --git a/configuration.nix b/configuration.nix index 3780044..fa38077 100644 --- a/configuration.nix +++ b/configuration.nix @@ -1,38 +1,40 @@ -{ config, inputs, lib, pkgs, ... }: - -let - nvidiaPackage = config.hardware.nvidia.package; -in - { - imports = - [ # Include the results of the hardware scan. - ./hardware-configuration.nix - ]; + config, + inputs, + lib, + pkgs, + ... +}: let + nvidiaPackage = config.hardware.nvidia.package; +in { + imports = [ + # Include the results of the hardware scan. + ./hardware-configuration.nix + ]; - # Allow unfree packages + # Allow unfree packages nixpkgs.config.allowUnfree = true; # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; programs.silentSDDM = { - enable = true; - theme = "rei"; - settings = { - "LoginScreen.LoginArea.Avatar" = { - shape = "circle"; - active-border-color = "#ffcfce"; - }; - "LoginScreen" = { + enable = true; + theme = "rei"; + settings = { + "LoginScreen.LoginArea.Avatar" = { + shape = "circle"; + active-border-color = "#ffcfce"; + }; + "LoginScreen" = { background = "hana.jpg"; - }; - "LockScreen" = { + }; + "LockScreen" = { background = "kokomi96024.png"; - }; - }; + }; + }; }; - networking.hostName = "girlCore"; # Define your hostname. + networking.hostName = "girlCore"; # Define your hostname. # Configure network connections interactively with nmcli or nmtui. networking.networkmanager.enable = true; # Set your time zone. @@ -41,31 +43,31 @@ in # networking.proxy.default = "http://user:password@proxy:port/"; # networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain"; # Select internationalisation properties. - i18n.defaultLocale = "en_US.UTF-8"; - console = { - font = "Lat2-Terminus16"; - keyMap = "us"; - }; + i18n.defaultLocale = "en_US.UTF-8"; + console = { + font = "Lat2-Terminus16"; + keyMap = "us"; + }; services.displayManager.sddm = { - enable = true; + enable = true; wayland.enable = true; -}; + }; services.displayManager.defaultSession = "hyprland"; programs.hyprland.enable = true; programs.hyprland.package = inputs.hyprland-git.packages."x86_64-linux".hyprland; - programs.steam = { - enable = true; - remotePlay.openFirewall = true; # optional - dedicatedServer.openFirewall = true; # optional - localNetworkGameTransfers.openFirewall = true; # optional - gamescopeSession.enable = true; # optional - }; + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # optional + dedicatedServer.openFirewall = true; # optional + localNetworkGameTransfers.openFirewall = true; # optional + gamescopeSession.enable = true; # optional + }; - # nvidia drivers + # nvidia drivers hardware.graphics.enable = true; hardware.graphics.enable32Bit = true; - services.xserver.videoDrivers = lib.mkDefault [ "nvidia" ]; + services.xserver.videoDrivers = lib.mkDefault ["nvidia"]; hardware.nvidia = { modesetting.enable = true; # Nvidia power management. Experimental, and can cause sleep/suspend to fail. @@ -82,38 +84,38 @@ in nvidiaSettings = true; package = config.boot.kernelPackages.nvidiaPackages.stable; }; - services.pipewire = { - enable = true; - pulse.enable = true; - }; + services.pipewire = { + enable = true; + pulse.enable = true; + }; # Enable touchpad support (enabled default in most desktopManager). - services.libinput.enable = true; + services.libinput.enable = true; # Define a user account. Don't forget to set a password with ‘passwd’. - users.users.ashley = { - isNormalUser = true; - extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. - packages = with pkgs; [ - tree - ]; - }; + users.users.ashley = { + isNormalUser = true; + extraGroups = ["wheel"]; # Enable ‘sudo’ for the user. + packages = with pkgs; [ + tree + ]; + }; # List packages installed in system profile. # You can use https://search.nixos.org/ to find more packages (and options). - nix.settings.experimental-features = [ "nix-command" "flakes" ]; - environment.systemPackages = with pkgs; [ - git - neovim - wget + nix.settings.experimental-features = ["nix-command" "flakes"]; + environment.systemPackages = with pkgs; [ + git + neovim + wget ]; - environment.variables.EDITOR = "nvim"; + environment.variables.EDITOR = "nvim"; # Some programs need SUID wrappers, can be configured further or are # started in user sessions. # List services that you want to enable: # Enable the OpenSSH daemon. # Open ports in the firewall. - networking.firewall.allowedTCPPorts = [ ]; - networking.firewall.allowedUDPPorts = [ ]; - networking.firewall.enable = true; + networking.firewall.allowedTCPPorts = []; + networking.firewall.allowedUDPPorts = []; + networking.firewall.enable = true; # This option defines the first version of NixOS you have installed on this particular machine, # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions. # diff --git a/flake.nix b/flake.nix index 1bb731b..a5c86b2 100644 --- a/flake.nix +++ b/flake.nix @@ -1,5 +1,5 @@ { -description = "NixOS configuration"; + description = "NixOS configuration"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; @@ -15,17 +15,21 @@ description = "NixOS configuration"; silentSDDM = { url = "github:uiriansan/SilentSDDM"; inputs.nixpkgs.follows = "nixpkgs"; - }; + }; nixcats.url = "github:BirdeeHub/nixCats-nvim"; - hyprland-git = { + hyprland-git = { url = "github:hyprwm/Hyprland/25250527793eb04bb60f103abe7f06370b9f6e1c"; }; - }; - outputs = inputs@{ nixpkgs, home-manager, nixcats, ... }: { + outputs = inputs @ { + nixpkgs, + home-manager, + nixcats, + ... + }: { nixosConfigurations = { girlCore = nixpkgs.lib.nixosSystem { specialArgs = {inherit inputs;}; @@ -40,8 +44,8 @@ description = "NixOS configuration"; home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; - home-manager.extraSpecialArgs = { inherit inputs; }; - + home-manager.extraSpecialArgs = {inherit inputs;}; + home-manager.users.ashley = import ./home.nix; # Optionally, use home-manager.extraSpecialArgs to pass arguments to home.nix diff --git a/hardware-configuration.nix b/hardware-configuration.nix index 1f129f7..a938f5c 100644 --- a/hardware-configuration.nix +++ b/hardware-configuration.nix @@ -1,30 +1,34 @@ # Do not modify this file! It was generated by ‘nixos-generate-config’ # and may be overwritten by future invocations. Please make changes # to /etc/nixos/configuration.nix instead. -{ config, lib, pkgs, modulesPath, ... }: - { - imports = - [ (modulesPath + "/installer/scan/not-detected.nix") - ]; + config, + lib, + pkgs, + modulesPath, + ... +}: { + imports = [ + (modulesPath + "/installer/scan/not-detected.nix") + ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "ahci" "usbhid" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = ["xhci_pci" "nvme" "ahci" "usbhid"]; + boot.initrd.kernelModules = []; + boot.kernelModules = ["kvm-amd"]; + boot.extraModulePackages = []; - fileSystems."/" = - { device = "/dev/disk/by-uuid/10c61ccc-e175-4cfd-bd6a-08a57dbdb0b5"; - fsType = "btrfs"; - }; + fileSystems."/" = { + device = "/dev/disk/by-uuid/10c61ccc-e175-4cfd-bd6a-08a57dbdb0b5"; + fsType = "btrfs"; + }; - fileSystems."/boot" = - { device = "/dev/disk/by-uuid/24E3-BA29"; - fsType = "vfat"; - options = [ "fmask=0077" "dmask=0077" ]; - }; + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/24E3-BA29"; + fsType = "vfat"; + options = ["fmask=0077" "dmask=0077"]; + }; - swapDevices = [ ]; + swapDevices = []; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; diff --git a/home.nix b/home.nix index 9a9067d..cff5e13 100644 --- a/home.nix +++ b/home.nix @@ -1,5 +1,8 @@ -{ inputs, pkgs, ... }: { + inputs, + pkgs, + ... +}: { imports = [ ./modules/neovim/nixcats.nix ./modules/waybar/default.nix @@ -36,7 +39,6 @@ }; }; }; - + home.stateVersion = "25.11"; } -