imported laptop configs

This commit is contained in:
2026-02-13 19:15:24 -06:00
parent 7d23fc780c
commit 7dd1c8d2d4
9 changed files with 373 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
{self, inputs, ...}: {
flake.nixosModules.laptopConfig = { pkgs, ... }: {
imports =
[ # Include the results of the hardware scan.
#./hardware-configuration.nix
# ../../modules/nixos/localization.nix
# ../../modules/nixos/applications.nix
# ../../modules/nixos/fonts.nix
# ../../modules/nixos/programming.nix
];
# Bootloader.
boot.loader = {
systemd-boot.enable = true;
efi.canTouchEfiVariables = true;
};
networking.hostName = "lily-laptop"; networking.networkmanager.enable = true;
# Enable the X11 windowing system.
# You can disable this if you're only using the Wayland session.
services.xserver.enable = true;
services.displayManager.sddm.enable = true;
#services.displayManager.cosmic-greeter.enable = true;
services.desktopManager.cosmic.enable = true;
services.desktopManager.plasma6.enable = true;
# Enable CUPS to print documents.
services.printing.enable = true;
# 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;
};
programs = {
firefox.enable = true;
niri = {
enable = true;
package = self.packages.${pkgs.stdenv.hostPlatform.system}.niri;
};
};
nixpkgs.config.allowUnfree = true;
environment.systemPackages = [
pkgs.vim
pkgs.noctalia-shell
pkgs.quickshell
pkgs.git
pkgs.gimp
pkgs.home-manager
pkgs.bluez
pkgs.kdePackages.plasma-keyboard
pkgs.kdePackages.bluedevil
pkgs.kdePackages.bluez-qt
pkgs.lf
pkgs.fuzzel
pkgs.alacritty
self.packages.${pkgs.stdenv.hostPlatform.system}.nh
# wget
];
nix.settings.experimental-features = [ "nix-command" "flakes" ];
system.stateVersion = "25.11"; # Did you read the com
};
}

View File

@@ -0,0 +1,45 @@
{
flake.nixosModules.laptopHardware = { config, lib, modulesPath, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
luks.devices."luks-fbc12fd4-a2b8-44b1-a89a-e502662b1fce".device = "/dev/disk/by-uuid/fbc12fd4-a2b8-44b1-a89a-e502662b1fce";
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems = {
"/" = {
device = "/dev/mapper/luks-fbc12fd4-a2b8-44b1-a89a-e502662b1fce";
fsType = "btrfs";
options = [ "subvol=@" ];
};
"/home" = {
device = "/dev/mapper/luks-fbc12fd4-a2b8-44b1-a89a-e502662b1fce";
fsType = "btrfs";
options = [ "subvol=@home" ];
};
"/media/nvme" = {
device = "/dev/mapper/luks-fbc12fd4-a2b8-44b1-a89a-e502662b1fce";
fsType = "btrfs";
};
"/boot" = {
device = "/dev/disk/by-uuid/C51E-CE6C";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
};
}

View File

@@ -0,0 +1,14 @@
{ inputs, self, ... }: {
flake.nixosConfigurations.lily-laptop = inputs.nixpkgs.lib.nixosSystem {
modules = [
self.nixosModules.laptopConfig
self.nixosModules.laptopHardware
self.nixosModules.lily
self.nixosModules.localization
self.nixosModules.applications
self.nixosModules.fonts
];
};
}