split config between laptop and pc
This commit is contained in:
parent
a6d51197c9
commit
9e6394fb64
4 changed files with 39 additions and 1 deletions
|
|
@ -6,7 +6,6 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
./easyroam.nix
|
||||
./stylix.nix
|
||||
./nixvim/nixvim.nix
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@
|
|||
{
|
||||
nixosConfigurations.seele = nixpkgs.lib.nixosSystem {
|
||||
modules = [
|
||||
|
||||
./configuration.nix
|
||||
./nixvim/nixvim.nix
|
||||
nix-easyroam.nixosModules.nix-easyroam
|
||||
|
|
@ -56,6 +57,10 @@
|
|||
}
|
||||
({ lib, ... }: {
|
||||
networking.hostName = lib.mkForce "seele";
|
||||
imports = [
|
||||
./hardware-configuration-laptop.nix
|
||||
];
|
||||
|
||||
})
|
||||
|
||||
];
|
||||
|
|
@ -78,6 +83,9 @@
|
|||
lanzaboote.nixosModules.lanzaboote
|
||||
|
||||
({ pkgs, lib, ... }: {
|
||||
imports = [
|
||||
./hardware-configuration-desktop.nix
|
||||
];
|
||||
networking.hostName = lib.mkForce "nerv";
|
||||
environment.systemPackages = [
|
||||
# For debugging and troubleshooting Secure Boot.
|
||||
|
|
|
|||
31
hardware-configuration-desktop.nix
Normal file
31
hardware-configuration-desktop.nix
Normal file
|
|
@ -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 = [ "nvme" "ahci" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/64a37727-0c5f-41d4-afac-dc26978916c1";
|
||||
fsType = "xfs";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/F424-0E3E";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
Loading…
Reference in a new issue