Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
This commit is contained in:
parent
ebd178b0a5
commit
7606f9e051
66 changed files with 9465 additions and 73 deletions
70
users/pedro/home-configuration/scripts/default.nix
Normal file
70
users/pedro/home-configuration/scripts/default.nix
Normal file
|
@ -0,0 +1,70 @@
|
|||
{pkgs, ...}: {
|
||||
home.packages =
|
||||
[
|
||||
(pkgs.writeShellApplication {
|
||||
name = "ddcmonitorctl";
|
||||
runtimeInputs = with pkgs; [ddcutil];
|
||||
text = builtins.readFile ./scripts/ddcmonitorctl.sh;
|
||||
})
|
||||
]
|
||||
++ (let
|
||||
wall-change = pkgs.writeShellApplication {
|
||||
name = "wall-change";
|
||||
runtimeInputs = with pkgs; [swaybg imagemagick];
|
||||
text = builtins.readFile ./scripts/wall-change.sh;
|
||||
};
|
||||
setbg-apotd = pkgs.writeShellApplication {
|
||||
name = "setbg-apotd";
|
||||
runtimeInputs = [pkgs.curl pkgs.gnugrep pkgs.gnused wall-change];
|
||||
text = builtins.readFile ./scripts/setbg-apotd.sh;
|
||||
};
|
||||
setbg-bpotd = pkgs.writeShellApplication {
|
||||
name = "setbg-bpotd";
|
||||
runtimeInputs = with pkgs; [pkgs.curl pkgs.jq wall-change];
|
||||
text = builtins.readFile ./scripts/setbg-bpotd.sh;
|
||||
};
|
||||
wallpaper-picker = pkgs.writeShellApplication {
|
||||
name = "wallpaper-picker";
|
||||
runtimeInputs = [pkgs.fuzzel setbg-apotd setbg-bpotd wall-change];
|
||||
text = builtins.readFile ./scripts/wallpaper-picker.sh;
|
||||
};
|
||||
in [
|
||||
wall-change
|
||||
setbg-apotd
|
||||
setbg-bpotd
|
||||
wallpaper-picker
|
||||
])
|
||||
++ [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "runbg";
|
||||
text = builtins.readFile ./scripts/runbg.sh;
|
||||
})
|
||||
|
||||
(pkgs.writeShellApplication {
|
||||
name = "toggle_blur";
|
||||
text = builtins.readFile ./scripts/toggle_blur.sh;
|
||||
})
|
||||
(pkgs.writeShellApplication {
|
||||
name = "toggle_oppacity";
|
||||
text = builtins.readFile ./scripts/toggle_oppacity.sh;
|
||||
})
|
||||
|
||||
(pkgs.writeShellApplication {
|
||||
name = "shutdown-script";
|
||||
runtimeInputs = with pkgs; [fuzzel];
|
||||
text = builtins.readFile ./scripts/shutdown-script.sh;
|
||||
})
|
||||
|
||||
(pkgs.writeShellApplication {
|
||||
name = "show-keybinds";
|
||||
runtimeInputs = with pkgs; [fuzzel gnugrep];
|
||||
text = builtins.readFile ./scripts/show-keybinds.sh;
|
||||
})
|
||||
|
||||
(pkgs.writeShellApplication {
|
||||
name = "screenshot-menu";
|
||||
runtimeInputs = with pkgs; [fuzzel grimblast swappy];
|
||||
text = builtins.readFile ./scripts/screenshot-menu.sh;
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue