dumpyourvms: fix Error switching console mode to 1 unsupported
This commit is contained in:
parent
6c83d67887
commit
f791ceccd0
|
@ -1,10 +1,14 @@
|
|||
{ config, pkgs, lib, self, ... }:
|
||||
with lib;
|
||||
let
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
self,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
psCfg = config.pub-solar;
|
||||
xdg = config.home-manager.users."${psCfg.user.name}".xdg;
|
||||
in
|
||||
{
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
@ -28,11 +32,14 @@ in
|
|||
|
||||
# fix backlight for keyboard and brightness, adjust function key binding,
|
||||
# intel_pstate for cpu schedutil, resume offset for swapfile, disable amdgpu driver
|
||||
boot.kernelParams = [ "acpi_backlight=video" "hid_apple.fnmode=2" "intel_pstate=passive" ];
|
||||
boot.kernelParams = ["acpi_backlight=video" "hid_apple.fnmode=2" "intel_pstate=passive"];
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
#boot.resumeDevice = "/dev/mapper/cryptroot";
|
||||
|
||||
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
||||
# fix for Error switching console mode to 1: unsupported on startup
|
||||
boot.loader.systemd-boot.consoleMode = mkForce "0";
|
||||
|
||||
boot.binfmt.emulatedSystems = ["aarch64-linux"];
|
||||
|
||||
systemd.sleep.extraConfig = ''
|
||||
HibernateMode=shutdown
|
||||
|
@ -58,7 +65,7 @@ in
|
|||
services.mozillavpn.enable = true;
|
||||
networking = import ./networking.nix;
|
||||
|
||||
security.pki.certificateFiles = [ ./consul-agent-ca.pem ];
|
||||
security.pki.certificateFiles = [./consul-agent-ca.pem];
|
||||
|
||||
services.unbound = import ./unbound.nix;
|
||||
|
||||
|
@ -75,7 +82,7 @@ in
|
|||
console = {
|
||||
earlySetup = true;
|
||||
font = lib.mkForce "ter-i32b";
|
||||
packages = [ pkgs.terminus_font ];
|
||||
packages = [pkgs.terminus_font];
|
||||
};
|
||||
|
||||
# Thunderbolt tools
|
||||
|
@ -116,9 +123,9 @@ in
|
|||
''SUBSYSTEM=="pci", KERNEL=="0000:00:14.0", ATTR{power/wakeup}="disabled"'';
|
||||
|
||||
services.printing.enable = true;
|
||||
services.printing.drivers = [ pkgs.brlaser ];
|
||||
services.printing.drivers = [pkgs.brlaser];
|
||||
|
||||
home-manager = pkgs.lib.setAttrByPath [ "users" psCfg.user.name ] {
|
||||
home-manager = pkgs.lib.setAttrByPath ["users" psCfg.user.name] {
|
||||
# Custom device sway configs
|
||||
xdg.configFile = mkIf psCfg.sway.enable {
|
||||
"sway/config.d/10-applications.conf".source = ./.config/sway/config.d/applications.conf;
|
||||
|
@ -130,14 +137,13 @@ in
|
|||
};
|
||||
|
||||
users.users.teutat3s = {
|
||||
extraGroups = [ "unbound" ];
|
||||
extraGroups = ["unbound"];
|
||||
};
|
||||
|
||||
|
||||
# WLAN frequency compliance (e.g. check for radar with DFS)
|
||||
#
|
||||
# Radeon driver seems to work better than amdgpu with Radeon R9 M370X
|
||||
hardware.firmware = with pkgs; [ wireless-regdb ];
|
||||
hardware.firmware = with pkgs; [wireless-regdb];
|
||||
boot.extraModprobeConfig = ''
|
||||
options cfg80211 ieee80211_regdom="DE"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue