refactor(nixos:tailcale): move options --> ooknet.host.networking.tailscale
This commit is contained in:
parent
fa926b9453
commit
dd6271f7d6
7 changed files with 195 additions and 224 deletions
|
|
@ -1,38 +1,68 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkDefault;
|
||||
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBn3ff3HaZHIyH4K13k8Mwqu/o7jIABJ8rANK+r2PfJk";
|
||||
in
|
||||
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
../../profiles
|
||||
];
|
||||
];
|
||||
|
||||
activeProfiles = ["base" "laptop"];
|
||||
|
||||
ooknet.user = {
|
||||
ooks.enable = true;
|
||||
shell.fish.enable = true;
|
||||
ooknet.host = {
|
||||
name = "ooksmicro";
|
||||
type = "micro";
|
||||
role = "workstation";
|
||||
profiles = [ "console-tools" ];
|
||||
admin = {
|
||||
name = "ooks";
|
||||
shell = "fish";
|
||||
sshKey = key;
|
||||
homeManager = true;
|
||||
};
|
||||
|
||||
ooknet.laptop.power = {
|
||||
powersave = {
|
||||
minFreq = 800;
|
||||
maxFreq = 1600;
|
||||
};
|
||||
performance = {
|
||||
minFreq = 1100;
|
||||
maxFreq = 2600;
|
||||
};
|
||||
};
|
||||
|
||||
networking = {
|
||||
hostName = "ooksmicro";
|
||||
tailscale = {
|
||||
enable = true;
|
||||
client = true;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
# need this due to
|
||||
kernelParams = [ "fbcon=rotate:1" ];
|
||||
# required for keyboard to work during boot
|
||||
initrd.availableKernelModules = [ "battery" ];
|
||||
};
|
||||
hardware = {
|
||||
cpu.type = "intel";
|
||||
gpu.type = "intel";
|
||||
features = [
|
||||
"bluetooth"
|
||||
"backlight"
|
||||
"battery"
|
||||
"ssd"
|
||||
"audio"
|
||||
"video"
|
||||
];
|
||||
battery = {
|
||||
powersave = {
|
||||
minFreq = 500;
|
||||
maxFreq = 800;
|
||||
};
|
||||
performance = {
|
||||
minFreq = 1200;
|
||||
maxFreq = 2400;
|
||||
};
|
||||
};
|
||||
};
|
||||
monitors = [{
|
||||
name = "DSI-1";
|
||||
width = 720;
|
||||
height = 1280;
|
||||
workspace = "1";
|
||||
primary = true;
|
||||
transform = 3;
|
||||
}];
|
||||
};
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||
};
|
||||
|
||||
system.stateVersion = mkDefault "23.11";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue