add laptop2
This commit is contained in:
parent
f929dd3e20
commit
b73a6f488b
@ -52,6 +52,7 @@
|
|||||||
desktop1 = mkHost ./hosts/desktop1/configuration.nix;
|
desktop1 = mkHost ./hosts/desktop1/configuration.nix;
|
||||||
server1 = mkHost ./hosts/server1/configuration.nix;
|
server1 = mkHost ./hosts/server1/configuration.nix;
|
||||||
laptop1 = mkHost ./hosts/laptop1/configuration.nix;
|
laptop1 = mkHost ./hosts/laptop1/configuration.nix;
|
||||||
|
laptop2 = mkHost ./hosts/laptop2/configuration.nix;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -10,6 +10,7 @@
|
|||||||
laptop.enable = true;
|
laptop.enable = true;
|
||||||
hyprland.enable = true;
|
hyprland.enable = true;
|
||||||
kde.enable = true;
|
kde.enable = true;
|
||||||
|
grub-on-lap.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|||||||
29
hosts/laptop2/configuration.nix
Normal file
29
hosts/laptop2/configuration.nix
Normal 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";
|
||||||
|
}
|
||||||
33
hosts/laptop2/hardware-configuration.nix
Normal file
33
hosts/laptop2/hardware-configuration.nix
Normal 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
7
hosts/laptop2/home.nix
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../common/home.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@ -18,7 +18,6 @@ in
|
|||||||
smayzy = {
|
smayzy = {
|
||||||
base = true;
|
base = true;
|
||||||
power = "laptop";
|
power = "laptop";
|
||||||
grub-on-lap.enable = true;
|
|
||||||
audio.enable = true;
|
audio.enable = true;
|
||||||
office.enable = true;
|
office.enable = true;
|
||||||
sddm.enable = true;
|
sddm.enable = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user