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:
7 files changed
+69
-34
No files matched your search
@@ -2,6 +2,7 @@
|
||||
flake.homeModules.takamaki = { config, pkgs, ... }: {
|
||||
programs.zsh.shellAliases = {
|
||||
apply-config = "zsh -c 'cd ${config.info.rootPath}; git add .; home-manager switch --flake .#takamaki -b bak'";
|
||||
apply-config-trace = "zsh -c 'cd ${config.info.rootPath}; git add .; home-manager switch --flake .#takamaki -b bak --show-trace'";
|
||||
update-config = "zsh -c 'cd ${config.info.rootPath}; git add .; nix flake update; home-manager switch --flake .#takamaki -b bak'";
|
||||
};
|
||||
};
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user