refactor: complete rewrite

This commit is contained in:
ooks-io 2024-10-23 23:46:25 +13:00
parent 19a4bbda3c
commit 8e81943cf9
399 changed files with 3396 additions and 8042 deletions

View file

@ -2,30 +2,24 @@
pkgs,
lib,
...
}: let
inherit (lib) mkDefault;
in {
imports = [
./hardware-configuration.nix
];
ooknet.host = {
name = "ookst480s";
type = "laptop";
role = "workstation";
profiles = ["console-tools" "media"];
admin = {
name = "ooks";
shell = "fish";
homeManager = true;
};
networking = {
tailscale = {
enable = true;
client = true;
autoconnect = true;
}: {
imports = [./file-system.nix];
ooknet = {
host = {
admin = {
name = "ooks";
shell = "fish";
homeManager = true;
};
};
workstation = {
profiles = ["media" "gaming" "communication"];
environment = "hyprland";
theme = "minimal";
};
console = {
profile = "standard";
};
hardware = {
cpu.type = "intel";
gpu.type = "intel";
@ -39,29 +33,15 @@ in {
];
monitors = [
{
primary = true;
name = "eDP-1";
width = 1920;
height = 1080;
workspace = "1";
primary = true;
}
];
battery = {
powersave = {
minFreq = 800;
maxFreq = 1800;
};
performance = {
minFreq = 1800;
maxFreq = 3600;
};
};
};
};
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
};
system.stateVersion = mkDefault "23.11";
boot.kernelPackages = pkgs.linuxKernel.packages.linux_zen;
system.stateVersion = lib.mkDefault "23.11";
}

View file

@ -58,7 +58,6 @@
# networking.interfaces.wlp61s0.useDHCP = lib.mkDefault true;
# networking.interfaces.wwan0.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
}

0
hosts/ookst480s/host.nix Normal file
View file

View file

@ -0,0 +1,12 @@
{
config = {
ooknet.workstation = {
appearance = {
theme = "minimal";
};
desktop = {
environment = "hyprland";
};
};
};
}