chyrysalis: customizations
This commit is contained in:
parent
32af15d25e
commit
6b09e9451f
8 changed files with 440 additions and 381 deletions
|
@ -284,8 +284,8 @@
|
|||
|
||||
modules = linuxOfflineGuiModules [
|
||||
./nixos/hosts/chrysalis
|
||||
./nixos/configs/virtualbox.nix
|
||||
./nixos/configs/power-saving-amd.nix
|
||||
#./nixos/configs/vmware.nix
|
||||
];
|
||||
};
|
||||
|
||||
|
|
|
@ -5,15 +5,26 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
niri,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
niri-flake = niri;
|
||||
sysConfig = config;
|
||||
cfg = config.deprekated.niri;
|
||||
in
|
||||
{
|
||||
options.deprekated.niri = {
|
||||
extraStartupCommands = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = "";
|
||||
example = ''
|
||||
niri msg action spawn -- xmessage hi
|
||||
'';
|
||||
description = "Any extra commands to be added to Niri's startup.";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# Add in some basic control utilities to our system config.
|
||||
environment.systemPackages = [
|
||||
pkgs.wlrctl
|
||||
|
@ -188,10 +199,12 @@ in
|
|||
|
||||
# Make anki flashcard windows modal floats.
|
||||
{
|
||||
matches = [{
|
||||
matches = [
|
||||
{
|
||||
app-id = "^anki$";
|
||||
title = "Add";
|
||||
}];
|
||||
}
|
||||
];
|
||||
|
||||
open-floating = true;
|
||||
default-floating-position = {
|
||||
|
@ -370,9 +383,13 @@ in
|
|||
|
||||
niri msg action spawn -- ${xwayland-satellite-loop}/bin/xwayland-satellite-loop
|
||||
niri msg action spawn -- home-assistant-desktop
|
||||
${if (sysConfig.networking.hostName != "trailblazer") then "#" else ""}niri msg action spawn -- ${pkgs.mission-center}/bin/missioncenter
|
||||
${
|
||||
if (sysConfig.networking.hostName != "trailblazer") then "#" else ""
|
||||
}niri msg action spawn -- ${pkgs.mission-center}/bin/missioncenter
|
||||
niri msg action spawn -- ${pkgs.pcloud}/bin/pcloud
|
||||
|
||||
${cfg.extraStartupCommands}
|
||||
|
||||
sleep 10
|
||||
|
||||
niri msg action spawn -- kdeconnect-cli -l
|
||||
|
@ -381,4 +398,5 @@ in
|
|||
[ { command = [ "${niri-init}/bin/niri-init" ]; } ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
|
||||
# For non-trailblazer machines, allow building on Trailblazer.
|
||||
distributedBuilds =
|
||||
!(config.networking.hostName == "trailblazer");
|
||||
!(config.networking.hostName == "trailblazer") &&
|
||||
!(config.networking.hostName == "chrysalis");
|
||||
buildMachines =
|
||||
if config.nix.distributedBuilds then
|
||||
[
|
||||
|
|
|
@ -4,7 +4,12 @@
|
|||
#
|
||||
# vim: et:ts=2:sw=2:
|
||||
#
|
||||
{ pkgs, deprekages, talon, ... }:
|
||||
{
|
||||
pkgs,
|
||||
deprekages,
|
||||
talon,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
# Ensures the system state isn't changed breakingly (e.g. by updating
|
||||
|
@ -40,9 +45,6 @@
|
|||
# General tweaks and fixes.
|
||||
#
|
||||
|
||||
# Make systemd not hang here forever.
|
||||
systemd.extraConfig = "DefaultTimeoutStopSec=20";
|
||||
|
||||
#
|
||||
# Users.
|
||||
#
|
||||
|
@ -99,11 +101,18 @@
|
|||
services.mullvad-vpn.enable = true;
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
services.udev.packages = [
|
||||
services.udev.packages =
|
||||
[
|
||||
pkgs.minipro
|
||||
] ++ (if pkgs.stdenv.isAarch64 then [] else [
|
||||
]
|
||||
++ (
|
||||
if pkgs.stdenv.isAarch64 then
|
||||
[ ]
|
||||
else
|
||||
[
|
||||
#talon.default
|
||||
]);
|
||||
]
|
||||
);
|
||||
|
||||
services.fwupd.enable = true;
|
||||
|
||||
|
@ -117,4 +126,12 @@
|
|||
userServices = true;
|
||||
};
|
||||
};
|
||||
|
||||
# No, you haven't doxed us.
|
||||
# This is just the location of Amsterdam =P.
|
||||
location = {
|
||||
provider = "geoclue2";
|
||||
latitude = 52.377956;
|
||||
longitude = 4.897070;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
pkgs,
|
||||
deprekages,
|
||||
modulesPath,
|
||||
normalizeModule,
|
||||
...
|
||||
}:
|
||||
{
|
||||
|
@ -16,6 +17,7 @@
|
|||
(modulesPath + "/installer/scan/not-detected.nix")
|
||||
./audio.nix
|
||||
./ec_kmod.nix
|
||||
(normalizeModule ./wluma.hm.nix)
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
@ -56,6 +58,9 @@
|
|||
# Override stylix font sizes.
|
||||
stylix.fonts.sizes.desktop = lib.mkForce 16;
|
||||
|
||||
# Use wluma to manage backlight with the ALS and screen content.
|
||||
deprekated.niri.extraStartupCommands = "niri msg action spawn -- ${lib.getExe pkgs.wluma}";
|
||||
|
||||
# Accomodate the curved screen top by moving things in just a little.
|
||||
deprekated.waybar.hostSpecificCss = ''
|
||||
.modules-left > :first-child > * {
|
||||
|
@ -73,8 +78,8 @@
|
|||
#
|
||||
# Hardware config.
|
||||
#
|
||||
# Use the latest kernel, and our patches, until the Dell+Alienware stuff makes it into
|
||||
# more mainline kernels. We'll include ccache so we can iterate sanely.
|
||||
|
||||
# Use the latest kernel to try and ward off WiFi issues.
|
||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
|
|
5
nixos/hosts/chrysalis/wluma.hm.nix
Normal file
5
nixos/hosts/chrysalis/wluma.hm.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{ ... }:
|
||||
{
|
||||
# Set up wluma.
|
||||
xdg.configFile."wluma/config.toml".source = ../../../wluma/chrysalis.toml;
|
||||
}
|
|
@ -30,7 +30,7 @@ with pkgs;
|
|||
|
||||
# Comms.
|
||||
dino
|
||||
gajim
|
||||
#gajim
|
||||
vesktop
|
||||
nheko
|
||||
|
||||
|
|
13
wluma/chrysalis.toml
Normal file
13
wluma/chrysalis.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
[als.iio]
|
||||
path = "/sys/bus/iio/devices"
|
||||
thresholds = { 0 = "night", 20 = "dark", 80 = "dim", 250 = "normal", 500 = "bright", 800 = "outdoors" }
|
||||
|
||||
[[output.backlight]]
|
||||
name = "eDP-1"
|
||||
path = "/sys/class/backlight/amdgpu_bl1"
|
||||
capturer = "wayland"
|
||||
|
||||
[[keyboard]]
|
||||
name = "keyboard-framework"
|
||||
path = "/sys/bus/platform/devices/framework_laptop/leds/framework_laptop::kbd_backlight"
|
||||
|
Loading…
Add table
Reference in a new issue