add: gpd micro-pc module
This commit is contained in:
parent
3cef192a23
commit
23578dd66b
1 changed files with 119 additions and 0 deletions
119
system/ooksmicro/ooksmicro.nix
Normal file
119
system/ooksmicro/ooksmicro.nix
Normal file
|
|
@ -0,0 +1,119 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{ config, inputs, pkgs, ... }:
|
||||||
|
|
||||||
|
# Imports
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
inputs.hardware.nixosModules.gpd-micropc
|
||||||
|
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
../common/user/ooks
|
||||||
|
../common/base
|
||||||
|
../common/features/bluetooth.nix
|
||||||
|
../common/features/vm.nix
|
||||||
|
../common/features/greetd.nix
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
# Hostname and networking
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
networking = {
|
||||||
|
hostName = "ookst480s";
|
||||||
|
networkmanager.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# Printing
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
services.printing.enable = true;
|
||||||
|
|
||||||
|
# Kernel
|
||||||
|
# ------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
boot = {
|
||||||
|
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
|
kernalPerams = [ "fbcon=rotate:1" ]
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# Laptop Programs
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
powerManagement.powertop.enable = true;
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
light.enable = true;
|
||||||
|
dconf.enable = true;
|
||||||
|
kdeconnect.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# XDG Portal
|
||||||
|
# ------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
xdg.portal = {
|
||||||
|
enable = true;
|
||||||
|
wlr.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hardware = {
|
||||||
|
opengl = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# gnupg
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
programs.gnupg.agent = {
|
||||||
|
enable = true;
|
||||||
|
enableSSHSupport = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Services
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
services = {
|
||||||
|
thermald = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
tlp = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
logind = {
|
||||||
|
lidSwitch = "suspend";
|
||||||
|
};
|
||||||
|
dbus = {
|
||||||
|
enable = true;
|
||||||
|
packages = [ pkgs.gcr ];
|
||||||
|
};
|
||||||
|
auto-cpufreq = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
battery = {
|
||||||
|
governor = "powersave";
|
||||||
|
turbo = "never";
|
||||||
|
};
|
||||||
|
charger = {
|
||||||
|
governor = "performance";
|
||||||
|
turbo = "auto";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
# System Version
|
||||||
|
# -------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
system = {
|
||||||
|
stateVersion = "22.05";
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue