Add multihardware support
This commit is contained in:
parent
0cc3e1fc29
commit
d1e5130d3f
6 changed files with 30 additions and 11 deletions
|
|
@ -4,12 +4,15 @@
|
||||||
|
|
||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
|
|
||||||
{
|
let
|
||||||
|
systemType = "laptop";
|
||||||
|
#systemType = "desktop";
|
||||||
|
in {
|
||||||
nix.package = pkgs.nixUnstable;
|
nix.package = pkgs.nixUnstable;
|
||||||
imports =
|
imports =
|
||||||
[
|
[
|
||||||
# Hardware Settings (hardware scan)
|
# Hardware Specific Configuration
|
||||||
./hardware-configuration.nix
|
./${systemType}.nix
|
||||||
|
|
||||||
# System essentials (boot, lang, hostname, ...)
|
# System essentials (boot, lang, hostname, ...)
|
||||||
./modules/system
|
./modules/system
|
||||||
|
|
@ -21,15 +24,10 @@
|
||||||
./modules/audio/pipewire
|
./modules/audio/pipewire
|
||||||
|
|
||||||
./modules/shell/fish # This enables fish as the default shell
|
./modules/shell/fish # This enables fish as the default shell
|
||||||
|
|
||||||
./modules/network/browsers/librewolf
|
./modules/network/browsers/librewolf
|
||||||
./modules/network/networking
|
|
||||||
./modules/network/syncthing
|
./modules/network/syncthing
|
||||||
./modules/network/bluetooth
|
|
||||||
|
|
||||||
./modules/login/greetd
|
./modules/login/greetd
|
||||||
|
|
||||||
# ./modules/graphics/nvidia
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
|
||||||
10
desktop.nix
Normal file
10
desktop.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.hostName = "onizuka";
|
||||||
|
imports = [
|
||||||
|
./hardware/desktop.nix
|
||||||
|
|
||||||
|
# ./modules/graphics/nvidia
|
||||||
|
];
|
||||||
|
}
|
||||||
11
laptop.nix
Normal file
11
laptop.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
networking.hostName = "jibril";
|
||||||
|
imports = [
|
||||||
|
./hardware/laptop.nix
|
||||||
|
|
||||||
|
./modules/network/networking
|
||||||
|
./modules/network/bluetooth
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
@ -4,4 +4,7 @@
|
||||||
hardware.bluetooth.enable = true;
|
hardware.bluetooth.enable = true;
|
||||||
hardware.bluetooth.powerOnBoot = true;
|
hardware.bluetooth.powerOnBoot = true;
|
||||||
services.blueman.enable = true;
|
services.blueman.enable = true;
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
blueman
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,6 @@
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
networking.hostName = "jibril";
|
|
||||||
|
|
||||||
time.timeZone = "America/Los_Angeles";
|
time.timeZone = "America/Los_Angeles";
|
||||||
|
|
||||||
i18n.defaultLocale = "en_US.UTF-8";
|
i18n.defaultLocale = "en_US.UTF-8";
|
||||||
|
|
@ -17,7 +15,6 @@
|
||||||
neovim
|
neovim
|
||||||
nnn
|
nnn
|
||||||
xdg-user-dirs
|
xdg-user-dirs
|
||||||
blueman
|
|
||||||
];
|
];
|
||||||
|
|
||||||
# XDG Compliance
|
# XDG Compliance
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue