All my system configs and packages in one repo
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

roles: add lanzaboote, remove bluetooth & dolphin

the whole reason the latter two exists is because of hyprland anyway

+26 -67
-5
roles/bluetooth/default.nix
··· 1 - {lib, ...}: let 2 - inherit (lib) mkEnableOption; 3 - in { 4 - options.roles.bluetooth.enable = mkEnableOption "Bluetooth"; 5 - }
-14
roles/bluetooth/nixos.nix
··· 1 - { 2 - config, 3 - lib, 4 - pkgs, 5 - ... 6 - }: let 7 - inherit (lib) mkIf getExe'; 8 - cfg = config.roles.bluetooth; 9 - in { 10 - config = mkIf cfg.enable { 11 - hardware.bluetooth.enable = true; 12 - # services.blueman.enable = true; 13 - }; 14 - }
+2
roles/boot/default.nix
··· 1 1 {lib, ...}: let 2 2 inherit (lib) mkEnableOption; 3 3 in { 4 + imports = [./lanzaboote]; 5 + 4 6 options.roles.boot = { 5 7 enable = mkEnableOption "boot settings" // {default = true;}; 6 8
+19
roles/boot/lanzaboote/default.nix
··· 1 + { 2 + config, 3 + lib, 4 + lanzaboote, 5 + ... 6 + }: { 7 + imports = [lanzaboote.nixosModules.lanzaboote]; 8 + 9 + options.roles.boot.lanzaboote.enable = lib.mkEnableOption "Lanzaboote, a secure boot implementation for NixOS"; 10 + 11 + config = lib.mkIf config.roles.boot.lanzaboote.enable { 12 + boot.lanzaboote = { 13 + enable = true; 14 + pkiBundle = "/etc/secureboot"; 15 + }; 16 + 17 + boot.loader.systemd-boot.enable = lib.mkForce false; 18 + }; 19 + }
-5
roles/dolphin/default.nix
··· 1 - {lib, ...}: { 2 - options.roles.dolphin = { 3 - enable = lib.mkEnableOption "Dolphin file manager"; 4 - }; 5 - }
-19
roles/dolphin/nixos.nix
··· 1 - { 2 - config, 3 - lib, 4 - pkgs, 5 - ... 6 - }: let 7 - inherit (lib) mkIf getExe'; 8 - cfg = config.roles.dolphin; 9 - in { 10 - config = mkIf cfg.enable { 11 - hm.home.packages = [pkgs.dolphin]; 12 - 13 - # TODO: annoy maintainers to add meta.mainProgram 14 - roles.hyprland.settings.bind = ["$mod, E, exec, ${getExe' pkgs.dolphin "dolphin"}"]; 15 - 16 - # Required for detecting storage devices 17 - services.udisks2.enable = true; 18 - }; 19 - }
+5 -24
systems/machines/fettuccine/default.nix
··· 1 - { 2 - nixos-hardware, 3 - lanzaboote, 4 - lib, 5 - ... 6 - }: { 1 + {nixos-hardware, ...}: { 7 2 imports = with nixos-hardware.nixosModules; [ 8 3 ./hardware-configuration.nix 9 4 10 5 common-hidpi 11 6 asus-zephyrus-gu603h 12 - 13 - lanzaboote.nixosModules.lanzaboote 14 7 ]; 15 8 16 9 roles = { 17 - bluetooth.enable = true; 10 + boot.lanzaboote.enable = true; 18 11 nvidia.enable = true; 19 12 }; 20 13 21 - boot.lanzaboote = { 22 - enable = true; 23 - pkiBundle = "/etc/secureboot"; 24 - }; 25 - boot.loader.systemd-boot.enable = lib.mkForce false; 14 + hardware.bluetooth.enable = true; 26 15 27 - hardware.nvidia = { 28 - dynamicBoost.enable = true; 29 - 30 - prime = { 31 - offload = { 32 - enable = true; 33 - enableOffloadCmd = true; 34 - }; 35 - }; 36 - }; 16 + # Other Nvidia settings are set via nixos-hardware 17 + hardware.nvidia.dynamicBoost.enable = true; 37 18 38 19 specialisation.china.configuration = { 39 20 roles.mirrors.chinese.enable = true;