From 9d147a0918825ec6039447f7a247b142a5cea82b Mon Sep 17 00:00:00 2001 From: winter <149337190+WinterEkisha@users.noreply.github.com> Date: Wed, 24 Jun 2026 19:29:55 -0700 Subject: [PATCH] feat: added host laptop --- flake.nix | 8 +++ home/Winter/Reconix.nix | 81 ++++++++++++++++++++++++ hosts/Reconix/hardware-configuration.nix | 31 +++++++++ 3 files changed, 120 insertions(+) create mode 100644 home/Winter/Reconix.nix create mode 100644 hosts/Reconix/hardware-configuration.nix diff --git a/flake.nix b/flake.nix index a4451db..7979cf3 100644 --- a/flake.nix +++ b/flake.nix @@ -70,6 +70,14 @@ ./hosts/WarNyx/configuration.nix ]; }; + Reconix = nixpkgs.lib.nixosSystem { + specialArgs = {inherit inputs;}; + modules = [ + nix-flatpak.nixosModules.nix-flatpak + skwd-wall.nixosModules.default + ./hosts/Reconix/configuration.nix + ]; + }; }; # Standalone home-manager configuration entrypoint diff --git a/home/Winter/Reconix.nix b/home/Winter/Reconix.nix new file mode 100644 index 0000000..7efbf6e --- /dev/null +++ b/home/Winter/Reconix.nix @@ -0,0 +1,81 @@ +# This is your home-manager configuration file +# Use this to configure your home environment (it replaces ~/.config/nixpkgs/home.nix) +{ + inputs, + lib, + config, + pkgs, + ... +}: +let + username = "Winter"; +in +{ + # You can import other home-manager modules here + imports = [ + # If you want to use modules your own flake exports (from modules/home-manager): + # inputs.self.homeManagerModules.example + + # Or modules exported from other flakes (such as nix-colors): + # inputs.nix-colors.homeManagerModules.default + + # You can also split up your configuration and import pieces of it here: + # ./nvim.nix + + ./features/niri/niri.nix + ./features/spicetify.nix + ./features/yazi/yazi.nix + ./features/nvimConf.nix + ./features/cli.nix + ./features/shell.nix + ]; + + nixpkgs = { + # You can add overlays here + overlays = [ + # Add overlays your own flake exports (from overlays and pkgs dir): + inputs.self.overlays.additions + inputs.self.overlays.modifications + inputs.self.overlays.unstable-packages + + # You can also add 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; + }; + }; + + home.packages = with pkgs; [ + # --- General utils --- + libreoffice + libresprite + hunspell + hunspellDicts.en_US + rose-pine-cursor # TODO: ensure change cursor + ]; + + home = { + username = username; + homeDirectory = "/home/${username}"; + }; + programs.home-manager.enable = true; + + # --- General utils --- + programs.quickshell.enable = true; + programs.obsidian = { + enable = true; + }; + + # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion + home.stateVersion = "25.11"; +} diff --git a/hosts/Reconix/hardware-configuration.nix b/hosts/Reconix/hardware-configuration.nix new file mode 100644 index 0000000..c81fde8 --- /dev/null +++ b/hosts/Reconix/hardware-configuration.nix @@ -0,0 +1,31 @@ +# 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") + ]; + + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/5bcc5c81-4c0e-4820-b48f-9ba8ab0f8912"; + fsType = "ext4"; + }; + + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/DE03-B78A"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; +}