mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
feat: make it so only hosts with gui enabled have dbus/gnome-keyring/gvfs :)
This commit is contained in:
parent
09e6a3a302
commit
3b00c85ad1
7 changed files with 58 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -10,5 +10,6 @@
|
|||
"olm-3.2.16"
|
||||
];
|
||||
|
||||
liv.desktop = true;
|
||||
liv.desktop.enable = true;
|
||||
liv.gui.enable = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -31,6 +31,7 @@
|
|||
desktop.enable = false;
|
||||
creative.enable = true;
|
||||
amdgpu.enable = true;
|
||||
gui.enable = true;
|
||||
};
|
||||
|
||||
services.hardware.bolt.enable = true;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, config, ... }:
|
||||
{ pkgs, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -35,12 +35,13 @@
|
|||
device = "/dev/sda";
|
||||
useOSProber = true;
|
||||
};
|
||||
kernelModules = ["acpi_call"];
|
||||
extraModulePackages = with config.boot.kernelPackages;
|
||||
kernelModules = [ "acpi_call" ];
|
||||
extraModulePackages =
|
||||
with config.boot.kernelPackages;
|
||||
[
|
||||
acpi_call
|
||||
cpupower
|
||||
]
|
||||
++ [pkgs.cpupower-gui];
|
||||
++ [ pkgs.cpupower-gui ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
{ inputs, pkgs, config, lib, ... }:
|
||||
{
|
||||
inputs,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -6,7 +12,7 @@
|
|||
# ./../../modules/home/nfs.nix
|
||||
./../../modules/core/virtualization.nix
|
||||
];
|
||||
|
||||
|
||||
powerManagement = {
|
||||
enable = true;
|
||||
# powertop.enable = true;
|
||||
|
|
@ -18,6 +24,7 @@
|
|||
creative.enable = true;
|
||||
amdgpu.enable = true;
|
||||
wine.enable = true;
|
||||
gui.enable = true;
|
||||
};
|
||||
|
||||
networking = {
|
||||
|
|
@ -27,19 +34,20 @@
|
|||
|
||||
boot = {
|
||||
kernelParams = [ ];
|
||||
kernelModules = ["acpi_call"];
|
||||
kernelModules = [ "acpi_call" ];
|
||||
kernelPackages = pkgs.linuxPackages_latest;
|
||||
loader = {
|
||||
systemd-boot.enable = true;
|
||||
efi.canTouchEfiVariables = true;
|
||||
systemd-boot.configurationLimit = 10;
|
||||
};
|
||||
extraModulePackages = with config.boot.kernelPackages;
|
||||
extraModulePackages =
|
||||
with config.boot.kernelPackages;
|
||||
[
|
||||
acpi_call
|
||||
cpupower
|
||||
v4l2loopback
|
||||
]
|
||||
++ [pkgs.cpupower-gui];
|
||||
};
|
||||
++ [ pkgs.cpupower-gui ];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
{ ... }:
|
||||
{ ... }:
|
||||
{
|
||||
services = {
|
||||
gvfs.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
dbus.enable = true;
|
||||
fstrim.enable = true;
|
||||
};
|
||||
services.logind.extraConfig = ''
|
||||
|
|
|
|||
14
roles/gui.nix
Normal file
14
roles/gui.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ lib, ... }:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.liv.gui;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
services = {
|
||||
gvfs.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
dbus.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue