Add Bluetui, organize some other things
This commit is contained in:
parent
c2ae238ae3
commit
6ead3afd36
4 changed files with 19 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
{
|
{
|
||||||
config = lib.mkIf config.system.desktop.enable {
|
config = lib.mkIf config.system.desktop.enable {
|
||||||
hardware.bluetooth = {
|
hardware.bluetooth = {
|
||||||
|
@ -8,6 +8,9 @@
|
||||||
Policy.AutoEnable = "true";
|
Policy.AutoEnable = "true";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
environment.persistence."/persist".directories = [ "/var/lib/bluetooth" ];
|
environment = {
|
||||||
|
systemPackages = with pkgs; [ bluetui ];
|
||||||
|
persistence."/persist".directories = [ "/var/lib/bluetooth" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,14 @@
|
||||||
{ pkgs, lanzaboote, ... }:
|
{ config, pkgs, lanzaboote, ... }:
|
||||||
{
|
{
|
||||||
imports = [ lanzaboote.nixosModules.lanzaboote ];
|
imports = [ lanzaboote.nixosModules.lanzaboote ];
|
||||||
|
|
||||||
boot.lanzaboote.pkiBundle = "/etc/secureboot";
|
boot.lanzaboote.pkiBundle = "/etc/secureboot";
|
||||||
environment.systemPackages = with pkgs; [ sbctl ];
|
|
||||||
|
environment = {
|
||||||
|
systemPackages = with pkgs; [ sbctl ];
|
||||||
|
persistence."/persist".directories = [{
|
||||||
|
directory = config.boot.lanzaboote.pkiBundle;
|
||||||
|
mode = "0700";
|
||||||
|
}];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,9 @@
|
||||||
environment.persistence."/persist" = {
|
environment.persistence."/persist" = {
|
||||||
hideMounts = true;
|
hideMounts = true;
|
||||||
directories = [
|
directories = [
|
||||||
"/storage"
|
|
||||||
"/etc/nixos"
|
"/etc/nixos"
|
||||||
|
"/storage"
|
||||||
"/var/lib/nixos"
|
"/var/lib/nixos"
|
||||||
{ directory = "/etc/secureboot"; mode = "0700"; }
|
|
||||||
];
|
];
|
||||||
files = [
|
files = [
|
||||||
"/etc/machine-id"
|
"/etc/machine-id"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ config, lib, ... }:
|
{ config, lib, ... }:
|
||||||
{
|
{
|
||||||
options.system.nvidia.enable = lib.mkEnableOption "Enable the Nvidia graphics stack";
|
options.system.nvidia.enable = lib.mkEnableOption "Enable Nvidia graphic drivers";
|
||||||
|
|
||||||
config = lib.mkIf config.system.nvidia.enable {
|
config = lib.mkIf config.system.nvidia.enable {
|
||||||
hardware.nvidia = {
|
hardware.nvidia = {
|
||||||
|
@ -9,9 +9,11 @@
|
||||||
open = true;
|
open = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # Framebuffer fixes TTY access
|
||||||
|
|
||||||
services.xserver.videoDrivers = [ "nvidia" ];
|
services.xserver.videoDrivers = [ "nvidia" ];
|
||||||
|
|
||||||
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
nixpkgs.allowUnfreePackages = [ "nvidia-x11" ];
|
||||||
boot.kernelParams = [ "nvidia_drm.fbdev=1" ]; # Experimental framebuffer allows tty access
|
|
||||||
|
|
||||||
specialisation.nouveau.configuration.config.system.nvidia.enable = lib.mkForce false;
|
specialisation.nouveau.configuration.config.system.nvidia.enable = lib.mkForce false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue