add laptop2
All checks were successful
nixos config pipeline / show-flake (push) Successful in 40s
nixos config pipeline / deploy (push) Successful in 1m13s

This commit is contained in:
smayzy 2026-04-04 10:26:03 +02:00
parent f929dd3e20
commit b73a6f488b
6 changed files with 71 additions and 1 deletions

View File

@ -52,6 +52,7 @@
desktop1 = mkHost ./hosts/desktop1/configuration.nix;
server1 = mkHost ./hosts/server1/configuration.nix;
laptop1 = mkHost ./hosts/laptop1/configuration.nix;
laptop2 = mkHost ./hosts/laptop2/configuration.nix;
};
};

View File

@ -10,6 +10,7 @@
laptop.enable = true;
hyprland.enable = true;
kde.enable = true;
grub-on-lap.enable = true;
};
home-manager = {

View File

@ -0,0 +1,29 @@
{ inputs, config, ... }:
{
imports = [
../common/common.nix
./hardware-configuration.nix
];
smayzy = {
laptop.enable = true;
hyprland.enable = true;
kde.enable = true;
};
home-manager = {
extraSpecialArgs = {
inherit inputs;
smayzy = config.smayzy;
};
users = {
smayzy = import ./home.nix;
};
backupFileExtension = "backup";
};
system.stateVersion = "24.11";
networking.hostName = "laptop2";
}

View File

@ -0,0 +1,33 @@
# 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" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/ceed0ac4-72b3-4050-b8a3-0b91aa845da0";
fsType = "ext4";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/65F0-BF7E";
fsType = "vfat";
options = [ "fmask=0077" "dmask=0077" ];
};
swapDevices =
[ { device = "/dev/disk/by-uuid/3567a75d-12cc-4c3e-a37d-9b99708cbfea"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

7
hosts/laptop2/home.nix Normal file
View File

@ -0,0 +1,7 @@
{ ... }:
{
imports = [
../common/home.nix
];
}

View File

@ -18,7 +18,6 @@ in
smayzy = {
base = true;
power = "laptop";
grub-on-lap.enable = true;
audio.enable = true;
office.enable = true;
sddm.enable = true;