refactor(ookst480s): change to new host structure

This commit is contained in:
ooks-io 2024-05-14 21:07:37 +12:00
parent 8f67be9e68
commit e896aa25f5
2 changed files with 23 additions and 13 deletions

View file

@ -121,8 +121,11 @@
nixosConfigurations = {
# T480s
ookst480s = lib.nixosSystem {
modules = [ ./system/hosts/ookst480s ];
specialArgs = { inherit inputs outputs; };
modules = [
./system/hosts/ookst480s
hm
];
specialArgs = { inherit inputs outputs self; };
};
# Main Desktop
ooksdesk = lib.nixosSystem {

View file

@ -1,23 +1,31 @@
{ config, inputs, pkgs, ... }:
{ inputs, pkgs, lib, ... }:
let
inherit (lib) mkDefault;
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
in
{
imports = [
inputs.hardware.nixosModules.lenovo-thinkpad-t480s
./hardware-configuration.nix
../../profiles
../../modules
];
activeProfiles = ["base"];
systemModules = {
user = {
ooks.enable = true;
systemModules.host = {
name = "ookst480s";
type = "laptop";
function = [ "workstation" ];
admin = {
name = "ooks";
shell = "fish";
sshKey = key;
homeManager = true;
};
hardware = {
cpu.type = "intel";
gpu.type = "intel";
features = [ "bluetooth" "backlight" "battery" ];
features = [ "bluetooth" "backlight" "battery" "ssd" ];
battery = {
powersave = {
minFreq = 800;
@ -31,10 +39,9 @@
};
};
networking = {
hostName = "ookst480s";
};
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
system.stateVersion = mkDefault "23.11";
}