refactor(ookst480s): change to new host structure
This commit is contained in:
parent
8f67be9e68
commit
e896aa25f5
2 changed files with 23 additions and 13 deletions
|
|
@ -121,8 +121,11 @@
|
||||||
nixosConfigurations = {
|
nixosConfigurations = {
|
||||||
# T480s
|
# T480s
|
||||||
ookst480s = lib.nixosSystem {
|
ookst480s = lib.nixosSystem {
|
||||||
modules = [ ./system/hosts/ookst480s ];
|
modules = [
|
||||||
specialArgs = { inherit inputs outputs; };
|
./system/hosts/ookst480s
|
||||||
|
hm
|
||||||
|
];
|
||||||
|
specialArgs = { inherit inputs outputs self; };
|
||||||
};
|
};
|
||||||
# Main Desktop
|
# Main Desktop
|
||||||
ooksdesk = lib.nixosSystem {
|
ooksdesk = lib.nixosSystem {
|
||||||
|
|
|
||||||
|
|
@ -1,23 +1,31 @@
|
||||||
{ config, inputs, pkgs, ... }:
|
{ inputs, pkgs, lib, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) mkDefault;
|
||||||
|
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||||
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
inputs.hardware.nixosModules.lenovo-thinkpad-t480s
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
../../profiles
|
../../modules
|
||||||
];
|
];
|
||||||
|
|
||||||
activeProfiles = ["base"];
|
|
||||||
|
|
||||||
systemModules = {
|
systemModules.host = {
|
||||||
user = {
|
name = "ookst480s";
|
||||||
ooks.enable = true;
|
type = "laptop";
|
||||||
|
function = [ "workstation" ];
|
||||||
|
admin = {
|
||||||
|
name = "ooks";
|
||||||
shell = "fish";
|
shell = "fish";
|
||||||
|
sshKey = key;
|
||||||
|
homeManager = true;
|
||||||
};
|
};
|
||||||
hardware = {
|
hardware = {
|
||||||
cpu.type = "intel";
|
cpu.type = "intel";
|
||||||
gpu.type = "intel";
|
gpu.type = "intel";
|
||||||
features = [ "bluetooth" "backlight" "battery" ];
|
features = [ "bluetooth" "backlight" "battery" "ssd" ];
|
||||||
battery = {
|
battery = {
|
||||||
powersave = {
|
powersave = {
|
||||||
minFreq = 800;
|
minFreq = 800;
|
||||||
|
|
@ -31,10 +39,9 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
|
||||||
hostName = "ookst480s";
|
|
||||||
};
|
|
||||||
boot = {
|
boot = {
|
||||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
system.stateVersion = mkDefault "23.11";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue