2021-08-27 19:03:50 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
2020-11-26 04:17:41 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
imports = [
|
2020-12-04 23:35:51 +00:00
|
|
|
./boot-config.nix
|
|
|
|
./hardware-configuration.nix
|
2020-11-26 04:17:41 +00:00
|
|
|
../../externals/wip-pinebook-pro/pinebook_pro.nix
|
2021-08-27 19:03:50 +00:00
|
|
|
../../sets/laptop.nix
|
2021-01-10 06:27:22 +00:00
|
|
|
../../sets/workstation.nix
|
2020-12-04 23:35:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
networking.hostName = "mistmane";
|
2021-08-26 18:06:46 +00:00
|
|
|
|
2021-08-27 19:03:50 +00:00
|
|
|
home-manager.users.artemis = {
|
|
|
|
programs.foot = {
|
|
|
|
enable = true;
|
|
|
|
settings.main = {
|
|
|
|
shell = "/run/current-system/sw/bin/fish";
|
|
|
|
font = "Fira Code:size=6";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
wayland.windowManager.sway.config = {
|
|
|
|
terminal = lib.mkForce "foot";
|
|
|
|
input."9610:30:HAILUCK_CO.,LTD_USB_KEYBOARD_Touchpad" = {
|
|
|
|
middle_emulation = "enabled";
|
|
|
|
click_method = "clickfinger";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
xdg.configFile."rustybar/config.toml".text = ''
|
|
|
|
[[tile]]
|
|
|
|
type = "iwd"
|
|
|
|
interface = "wlan0"
|
|
|
|
[[tile]]
|
|
|
|
type = "load"
|
|
|
|
[[tile]]
|
|
|
|
type = "memory"
|
|
|
|
[[tile]]
|
|
|
|
type = "hostname"
|
|
|
|
[[tile]]
|
|
|
|
type = "battery"
|
|
|
|
battery = "cw2015-battery"
|
|
|
|
[[tile]]
|
|
|
|
type = "time"
|
|
|
|
format = "%Y-%m-%dT%H:%M:%S"
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
services.logind = {
|
|
|
|
lidSwitch = lib.mkForce "lock";
|
|
|
|
extraConfig = lib.mkForce "HandlePowerKey=lock";
|
|
|
|
};
|
|
|
|
|
2021-08-29 01:37:48 +00:00
|
|
|
# rockchip/dptx.bin isn't in the initrd. Instead of fix nixpkgs let's do something incredibly cursed
|
|
|
|
boot.extraModulePackages = [ (pkgs.callPackage ../../externals/packages/dptx-dummy { kernel = config.boot.kernelPackages.kernel; }) ];
|
|
|
|
boot.initrd.availableKernelModules = [ "dptx-dummy" ];
|
|
|
|
|
2021-08-27 19:03:50 +00:00
|
|
|
system.stateVersion = "21.11";
|
2020-11-26 04:17:41 +00:00
|
|
|
}
|