add features.applications.shellScripts option

uses a custom function from my helper flake to convert a basic attrset of strings into a format `home.file` will accept
This commit is contained in:
greyweather committed 2026-08-30 02:54:08 +01:00
1 parent 06e958ae71
commit 023fc0c424
7 files changed
+69 -34

No files matched your search

+13 -7
View File
@@ -3,6 +3,7 @@
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
modules = with self.homeModules; [
takamaki
inputs.stylix.homeModules.stylix
];
extraSpecialArgs = { inherit inputs; };
};
@@ -41,17 +42,22 @@
vscode.enable = true;
};
extraPackages = with pkgs; [
(writeShellScriptBin "switch-os" ''
shellScripts = {
switch-os = ''
sudo efibootmgr --bootnext 0000
sudo reboot
'')
(writeShellScriptBin "universal-reboot" ''
'';
universal-reboot = ''
sudo reboot
'')
(writeShellScriptBin "universal-shutdown" ''
'';
universal-shutdown = ''
sudo systemctl poweroff
'')
'';
};
extraPackages = with pkgs; [
(writeShellScriptBin "increase-brightness" ''
LOOP_COUNTER=0
DEVICE=$1