wip mbp hw config
This commit is contained in:
parent
161d78902e
commit
aee35ecfa3
7 changed files with 86 additions and 31 deletions
|
@ -2,36 +2,45 @@
|
|||
nixpkgs,
|
||||
common-modules,
|
||||
desktop-modules,
|
||||
nixos-hardware,
|
||||
home-manager,
|
||||
...
|
||||
}:
|
||||
nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules =
|
||||
common-modules
|
||||
++ desktop-modules
|
||||
++ [
|
||||
./hardware.nix
|
||||
../../home/gnome.nix
|
||||
../../users/ronja.nix
|
||||
../../modules/gnome.nix
|
||||
modules = common-modules ++ [
|
||||
home-manager.nixosModules.home-manager
|
||||
../../home
|
||||
../../modules/desktop-environment.nix
|
||||
|
||||
{
|
||||
networking.hostName = "ona-book";
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
options = "eurosign:e,caps:escape";
|
||||
};
|
||||
}
|
||||
nixos-hardware.nixosModules.apple-macbook-pro-14-1
|
||||
{ allowedUnfreePackages = [ "b43-firmware" ]; }
|
||||
|
||||
{
|
||||
home-manager.users.ronja = import ../../home/ronja;
|
||||
./hardware.nix
|
||||
../../home/gnome.nix
|
||||
../../users/ronja.nix
|
||||
../../modules/gnome.nix
|
||||
|
||||
users.users.ronja.openssh.authorizedKeys.keys = [
|
||||
];
|
||||
}
|
||||
{
|
||||
networking = {
|
||||
hostName = "ona-book";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
options = "eurosign:e,caps:escape";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
{
|
||||
home-manager.users.ronja = import ../../home/ronja;
|
||||
|
||||
}
|
||||
];
|
||||
users.users.ronja.openssh.authorizedKeys.keys = [
|
||||
];
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -20,8 +20,24 @@
|
|||
"sd_mod"
|
||||
];
|
||||
initrd.kernelModules = [ ];
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
kernelModules = [
|
||||
"kvm-intel"
|
||||
"snd_hda_codec_cs8409"
|
||||
"hci_uart"
|
||||
"bluetooth"
|
||||
"btbcm"
|
||||
];
|
||||
extraModulePackages = [ ];
|
||||
blacklistedKernelModules = [ ];
|
||||
kernelParams = [];
|
||||
loader = {
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot = {
|
||||
enable = true;
|
||||
editor = false; # do not allow changing kernel parameters
|
||||
consoleMode = "max";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fileSystems = {
|
||||
|
@ -53,5 +69,11 @@
|
|||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
|
||||
hardware.enableAllFirmware = true;
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
hardware.enableRedistributableFirmware = true;
|
||||
|
||||
hardware.facetimehd.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,7 +21,10 @@ nixpkgs.lib.nixosSystem {
|
|||
../../modules/podman.nix
|
||||
|
||||
{
|
||||
networking.hostName = "vinzenz-lpt2";
|
||||
networking = {
|
||||
hostName = "vinzenz-lpt2";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
nix.settings.extra-platforms = [
|
||||
"aarch64-linux"
|
||||
"i686-linux"
|
||||
|
|
|
@ -20,7 +20,10 @@ nixpkgs.lib.nixosSystem {
|
|||
../../modules/printing.nix
|
||||
../../modules/podman.nix
|
||||
{
|
||||
networking.hostName = "vinzenz-pc2";
|
||||
networking = {
|
||||
hostName = "vinzenz-pc2";
|
||||
networkmanager.enable = true;
|
||||
};
|
||||
nix.settings.extra-platforms = [
|
||||
"aarch64-linux"
|
||||
"i686-linux"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue