parent
39f98b657b
commit
a0014161ce
108 changed files with 123 additions and 4164 deletions
modules/ags
|
@ -4,7 +4,7 @@
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (config.vars) configDir mainUser;
|
||||
inherit (config.vars) mainUser hostName;
|
||||
isTouchscreen = config.hardware.sensor.iio.enable;
|
||||
in {
|
||||
services.upower.enable = true;
|
||||
|
@ -22,45 +22,56 @@ in {
|
|||
in {
|
||||
programs.ags = {
|
||||
enable = true;
|
||||
configDir = symlink "${configDir}/ags";
|
||||
configDir = symlink /home/${mainUser}/.nix/modules/ags/config;
|
||||
package = ags.packages.${pkgs.system}.default;
|
||||
extraPackages = with pkgs; [
|
||||
libgudev
|
||||
];
|
||||
};
|
||||
|
||||
home.packages =
|
||||
[config.customPkgs.coloryou]
|
||||
++ (with pkgs; [
|
||||
# ags
|
||||
sassc
|
||||
bun
|
||||
playerctl
|
||||
home = {
|
||||
file = {
|
||||
".config/ags/config.js".text =
|
||||
/*
|
||||
javascript
|
||||
*/
|
||||
''
|
||||
import { transpileTypeScript } from './js/utils.js';
|
||||
|
||||
## gui
|
||||
pavucontrol # TODO: replace with ags widget
|
||||
|
||||
(writeShellApplication {
|
||||
name = "updateTypes";
|
||||
runtimeInputs = [nodejs_18 typescript git];
|
||||
text = ''
|
||||
if [[ -d /tmp/ags-types ]]; then
|
||||
rm -r /tmp/ags-types
|
||||
fi
|
||||
rm -r ~/.config/ags/types
|
||||
|
||||
git clone https://github.com/Aylur/ags.git /tmp/ags-types
|
||||
/tmp/ags-types/example/starter-config/setup.sh
|
||||
|
||||
rm -r /tmp/ags-types
|
||||
export default (await transpileTypeScript("${hostName}")).default;
|
||||
'';
|
||||
})
|
||||
])
|
||||
++ (optionals isTouchscreen (with pkgs; [
|
||||
lisgd
|
||||
squeekboard
|
||||
ydotool
|
||||
]));
|
||||
};
|
||||
|
||||
packages =
|
||||
[config.customPkgs.coloryou]
|
||||
++ (with pkgs; [
|
||||
# ags
|
||||
sassc
|
||||
bun
|
||||
playerctl
|
||||
|
||||
## gui
|
||||
pavucontrol # TODO: replace with ags widget
|
||||
|
||||
(writeShellApplication {
|
||||
name = "updateTypes";
|
||||
runtimeInputs = [nodejs_18 typescript git];
|
||||
text = ''
|
||||
if [[ -d /tmp/ags-types ]]; then
|
||||
rm -r /tmp/ags-types
|
||||
fi
|
||||
rm -r ~/.config/ags/types
|
||||
|
||||
git clone https://github.com/Aylur/ags.git /tmp/ags-types
|
||||
/tmp/ags-types/example/starter-config/setup.sh
|
||||
|
||||
rm -r /tmp/ags-types
|
||||
'';
|
||||
})
|
||||
])
|
||||
++ (optionals isTouchscreen (with pkgs; [
|
||||
lisgd
|
||||
squeekboard
|
||||
ydotool
|
||||
]));
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue