Add multihardware support

This commit is contained in:
langedev 2023-11-19 20:48:22 -08:00
parent 0cc3e1fc29
commit d1e5130d3f
6 changed files with 30 additions and 11 deletions

View file

@ -4,12 +4,15 @@
{ config, pkgs, ... }:
{
let
systemType = "laptop";
#systemType = "desktop";
in {
nix.package = pkgs.nixUnstable;
imports =
[
# Hardware Settings (hardware scan)
./hardware-configuration.nix
# Hardware Specific Configuration
./${systemType}.nix
# System essentials (boot, lang, hostname, ...)
./modules/system
@ -21,15 +24,10 @@
./modules/audio/pipewire
./modules/shell/fish # This enables fish as the default shell
./modules/network/browsers/librewolf
./modules/network/networking
./modules/network/syncthing
./modules/network/bluetooth
./modules/login/greetd
# ./modules/graphics/nvidia
];
nixpkgs.config.allowUnfree = true;

10
desktop.nix Normal file
View file

@ -0,0 +1,10 @@
{ config, pkgs, lib, ... }:
{
networking.hostName = "onizuka";
imports = [
./hardware/desktop.nix
# ./modules/graphics/nvidia
];
}

11
laptop.nix Normal file
View file

@ -0,0 +1,11 @@
{ config, pkgs, lib, ... }:
{
networking.hostName = "jibril";
imports = [
./hardware/laptop.nix
./modules/network/networking
./modules/network/bluetooth
];
}

View file

@ -4,4 +4,7 @@
hardware.bluetooth.enable = true;
hardware.bluetooth.powerOnBoot = true;
services.blueman.enable = true;
environment.systemPackages = with pkgs; [
blueman
];
}

View file

@ -5,8 +5,6 @@
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
networking.hostName = "jibril";
time.timeZone = "America/Los_Angeles";
i18n.defaultLocale = "en_US.UTF-8";
@ -17,7 +15,6 @@
neovim
nnn
xdg-user-dirs
blueman
];
# XDG Compliance