Add gitwatch

This commit is contained in:
2026-01-05 06:38:17 +01:00
parent 9d5b8eff9c
commit e48e85efca
8 changed files with 100 additions and 23 deletions

View File

@@ -53,27 +53,21 @@
nixosConfigurations.lillypc = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = {
inherit inputs;
inherit host;
inherit username;
inherit prettyUsername;
inherit inputs host username prettyUsername;
};
modules = [
./configuration.nix
nix-flatpak.nixosModules.nix-flatpak
catppuccin.nixosModules.catppuccin
home-manager.nixosModules.home-manager
{
({ config, ... }:{
home-manager = {
useUserPackages = true;
useGlobalPkgs = false;
backupFileExtension = "backup";
extraSpecialArgs = {
inherit inputs;
inherit host;
inherit username;
inherit prettyUsername;
inherit email;
inherit inputs host username prettyUsername email;
nixosConfig = config;
};
users.${username} = {
imports = [
@@ -87,7 +81,7 @@
};
};
};
}
})
];
};
};

View File

@@ -15,6 +15,6 @@ let
b.map (f: ./${f});
in
{
imports = module_files ++ [./hyprland];
imports = module_files;
nixpkgs.config.allowUnfree = true;
}

View File

@@ -1,5 +0,0 @@
{
services.easyeffects = {
enable = true;
};
}

View File

@@ -1,5 +1,8 @@
{ pkgs, ...}:
{
services.gnome-keyring.enable = true;
services.easyeffects = {
enable = true;
};
home.packages = [ pkgs.gcr ]; # Provides org.gnome.keyring.SystemPrompter
}

View File

@@ -1,10 +1,10 @@
{ inputs, pkgs, lib, config, ... }:
{ inputs, pkgs, lib, nixosConfig, ... }:
let
cfg = config.my.desktop.hyprland;
cfg = nixosConfig.my.desktop;
in
{
programs.kitty.enable = config.my.desktop.enable; # required for the default Hyprland config
wayland.windowManager.hyprland = lib.mkIf cfg.enable {
programs.kitty.enable = cfg.enable; # required for the default Hyprland config
wayland.windowManager.hyprland = lib.mkIf cfg.hyprland.enable {
enable = true;
# set the flake package
package = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system}.hyprland;

View File

@@ -5,7 +5,7 @@
"sleep 2; uwsm-app -- vesktop-portable"
# todo openrgb
"sleep 5; uwsm-app -- spotify"
"uwsm-app -- dms run"
# "uwsm-app -- dms run"
"sleep 5; uwsm-app -- Artemis.UI.Linux --minimized"
"sleep 10; bash /home/lilly/Scripts/rgb-on.sh"
# todo sunshine

View File

@@ -0,0 +1,85 @@
# Auto-generated by compose2nix.
{ pkgs, lib, ... }:
{
# Runtime
virtualisation.docker = {
enable = true;
autoPrune.enable = true;
};
virtualisation.oci-containers.backend = "docker";
# Containers
virtualisation.oci-containers.containers."gitwatch-LillyOS" = {
image = "ghcr.io/gitwatch/gitwatch:latest";
environment = {
"COMMIT_MSG" = "Auto-commit: %d";
"COMMIT_ON_START" = "false";
"DATE_FMT" = "+%Y-%m-%d %H:%M:%S";
"EXCLUDE_PATTERN" = "";
"GIT_BRANCH" = "main";
"GIT_REMOTE" = "origin";
"GIT_WATCH_DIR" = "/app/LillyOS";
"PULL_BEFORE_PUSH" = "true";
"SKIP_IF_MERGING" = "false";
"SLEEP_TIME" = "10";
"VERBOSE" = "false";
};
volumes = [
"${/home/lilly/.config/git/config}:/root/.gitconfig:ro"
"/home/lilly/.ssh/id_ed25519:/root/.ssh/id_ed25519:ro"
"/home/lilly/LillyOS:/app/LillyOS:rw"
];
log-driver = "journald";
extraOptions = [
"--network-alias=gitwatch"
"--network=gitwatch_default"
];
};
systemd.services."docker-gitwatch-LillyOS" = {
serviceConfig = {
Restart = lib.mkOverride 90 "always";
RestartMaxDelaySec = lib.mkOverride 90 "1m";
RestartSec = lib.mkOverride 90 "100ms";
RestartSteps = lib.mkOverride 90 9;
};
after = [
"docker-network-gitwatch_default.service"
];
requires = [
"docker-network-gitwatch_default.service"
];
partOf = [
"docker-compose-gitwatch-root.target"
];
wantedBy = [
"docker-compose-gitwatch-root.target"
];
};
# Networks
systemd.services."docker-network-gitwatch_default" = {
path = [ pkgs.docker ];
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStop = "docker network rm -f gitwatch_default";
};
script = ''
docker network inspect gitwatch_default || docker network create gitwatch_default
'';
partOf = [ "docker-compose-gitwatch-root.target" ];
wantedBy = [ "docker-compose-gitwatch-root.target" ];
};
# Root service
# When started, this will automatically create all resources and start
# the containers. When stopped, this will teardown all resources.
systemd.targets."docker-compose-gitwatch-root" = {
unitConfig = {
Description = "Root target generated by compose2nix.";
};
wantedBy = [ "multi-user.target" ];
};
}

View File

@@ -11,7 +11,7 @@ in
enable = true;
systemd = {
enable = false; # Systemd service for auto-start
enable = true; # Systemd service for auto-start
restartIfChanged = false; # Auto-restart dms.service when dankMaterialShell changes
};