forked from fabian/nix_config
add t14 sys platform
This commit is contained in:
parent
b64c85e314
commit
e6a8a66432
8 changed files with 260 additions and 2 deletions
68
sys/platforms/t14/default.nix
Normal file
68
sys/platforms/t14/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
flakes,
|
||||
...
|
||||
}: {
|
||||
imports = [
|
||||
flakes.home-manager.nixosModules.home-manager
|
||||
flakes.impermanence.nixosModule
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
local.sys = {
|
||||
baseline.enable = true;
|
||||
|
||||
yubikey.enable = true;
|
||||
audio.enable = true;
|
||||
graphics.enable = true;
|
||||
androidSupport.enable = true;
|
||||
bluetooth.enable = true;
|
||||
|
||||
users = {
|
||||
fabian = {
|
||||
enable = true;
|
||||
unixId = 1002;
|
||||
};
|
||||
vanessa.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "t14";
|
||||
networkmanager.enable = true;
|
||||
|
||||
useDHCP = false; # The global useDHCP flag is deprecated, therefore explicitly set to false here.
|
||||
interfaces.enp7s0.useDHCP = true; # Per-interface useDHCP will be mandatory in the future, so this generated config
|
||||
interfaces.wlp6s0.useDHCP = true; # replicates the default behaviour.
|
||||
};
|
||||
|
||||
boot = {
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
tmp.useTmpfs = true;
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
};
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "en_US.UTF-8"; #todo: move to baseline?
|
||||
|
||||
time.timeZone = "America/Costa_Rica"; #todo: move to baseline?
|
||||
|
||||
###### MODULARIZE AFTER THIS
|
||||
|
||||
services = {
|
||||
fwupd.enable = true;
|
||||
thinkfan.enable = true;
|
||||
tlp.enable = true;
|
||||
tp-auto-kbbl.enable = true;
|
||||
pcscd.enable = true;
|
||||
};
|
||||
|
||||
hardware.acpilight.enable = true;
|
||||
|
||||
services.fprintd.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue