feat: make it so only hosts with gui enabled have dbus/gnome-keyring/gvfs :)

This commit is contained in:
Ahwx 2025-04-24 11:17:44 +02:00
parent 09e6a3a302
commit 3b00c85ad1
7 changed files with 58 additions and 22 deletions

View file

@ -1,4 +1,10 @@
{ lib, inputs, pkgs, config, ... }:
{
lib,
inputs,
pkgs,
config,
...
}:
{
imports = [
./hardware-configuration.nix
@ -7,7 +13,7 @@
# Enable fancy boot animations
boot.plymouth.enable = true;
powerManagement = {
enable = true;
# powertop.enable = true;
@ -15,10 +21,16 @@
};
liv.laptop.enable = true;
liv.gui.enable = true;
# Bootloader stuff
boot = {
kernelParams = [ "quiet" "loglevel=3" "systemd.show_status=false" "splash" ];
kernelParams = [
"quiet"
"loglevel=3"
"systemd.show_status=false"
"splash"
];
loader.grub = {
enable = lib.mkForce true;
device = lib.mkForce "/dev/sda";
@ -28,13 +40,15 @@
initrd.secrets = {
"/crypto_keyfile.bin" = null;
};
initrd.luks.devices."luks-729500c5-557b-45c8-ab3f-5c365db28284".keyFile = lib.mkForce "/crypto_keyfile.bin";
extraModulePackages = with config.boot.kernelPackages;
initrd.luks.devices."luks-729500c5-557b-45c8-ab3f-5c365db28284".keyFile =
lib.mkForce "/crypto_keyfile.bin";
extraModulePackages =
with config.boot.kernelPackages;
[
acpi_call
cpupower
]
++ [pkgs.cpupower-gui];
++ [ pkgs.cpupower-gui ];
};
networking.hostName = "ichiyo";