From d9a3d31b5b469fb30e8085c1d0238fb12a920741 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Wed, 4 Dec 2024 18:56:39 -0500 Subject: [PATCH] artemsion: samba, flakpak, palatine-hill: act-runner, samba, nextcloud - adds happy 17th AO3 skin - removes zen kernel from artemision - adds flatpak to artemision - adds samba client to artemision - add samba import for palatine-hill - fix formatting on act-runner - fix nextcloud pre-generation script to use new image scheme Signed-off-by: ahuston-0 --- systems/artemision/ao3_skins/happy_17th.css | 438 ++++++++++++++++++++ systems/artemision/configuration.nix | 3 +- systems/artemision/programs.nix | 1 + systems/palatine-hill/configuration.nix | 1 + systems/palatine-hill/docker/act-runner.nix | 43 +- systems/palatine-hill/nextcloud.nix | 10 +- 6 files changed, 466 insertions(+), 30 deletions(-) create mode 100644 systems/artemision/ao3_skins/happy_17th.css diff --git a/systems/artemision/ao3_skins/happy_17th.css b/systems/artemision/ao3_skins/happy_17th.css new file mode 100644 index 0000000..f0068d4 --- /dev/null +++ b/systems/artemision/ao3_skins/happy_17th.css @@ -0,0 +1,438 @@ +#footer .group, +.post fieldset fieldset, +fieldset fieldset { + background: none; +} + +#header { + background: #000 url('https://media.archiveofourown.org/news/milestones/2024-08-seventeen-years-otw/2024-08-seventeen-years-otw-pattern.jpg'); + background-size: 350px; +} + +#header .heading a, +#header .primary .dropdown a:focus, +#header .heading a:visited, +#main .pagination .current, +h2 { + color: #ffe8b4; +} + +#header .clear, +#footer { + border-color: #191919; +} + +#header .actions a[href="/menu/fandoms"], +#header .actions a[href="/menu/browse"], +#header .actions a[href="/menu/search"], +#header .actions a[href="/menu/about"] { + color: #fff; +} + +#footer ul { + background: url('https://live.staticflickr.com/7284/9616997915_4194b6c6f7_h.jpg'); + background-size: 350px; +} + +#footer ul li:nth-child(1) ul, +#footer ul li:nth-child(2) ul, +#footer ul li:nth-child(3) ul, +#footer ul li:nth-child(4) ul { + background: rgba(0, 0, 0, 0.0); +} + +#header .primary { + background: #8a1a10; +} + +#footer { + background: #8a1a10; +} + +input[type="text"], +textarea, +select { + background: #222; + color: #fff; +} + +select:focus { + background: #2a2a2a; +} + +option { + background: #555; + color: #fff; +} + +#work form fieldset.work.meta dl dd.warning.required fieldset, +#main form fieldset.work.meta dl dd.warning.required fieldset { + color: #fff; +} + +#bookmark-form form { + background: #2a2a2a; + color: #fff; +} + +#error { + color: #191919; +} + +fieldset, +.verbose fieldset { + border-color: #404040; + background: #191919; + border: 1px solid #595959; +} + +.search [role=tooltip] { + background: #333; + border: 1px solid #666; +} + +#main a:visited { + color: #ccc; +} + +#main a.tag:visited:hover { + color: #111; +} + +body, +.group, +.group .group, +.region, +.flash, +form dl, +#main .verbose legend, +.notice, +ul.notes, +table, +th, +td:hover, +tr:hover, +.symbol .question:hover, +#modal, +.ui-sortable li, +.required .autocomplete, +.autocomplete .notice, +.system .intro, +.comment_error, +.kudos_error, +div.dynamic, +.dynamic form, +#ui-datepicker-div, +.ui-datepicker table { + background: #191919; + color: #eee; + border-color: #222; + outline: #111; + box-shadow: none; +} + +#header .actions a:hover, +#header .actions a:focus, +#header .dropdown:hover a, +#header .open a, +#header .menu, +#small_login, +.group.listbox, +fieldset fieldset.listbox, +.listbox, +form blockquote.userstuff, +input:focus, +textarea:focus, +li.relationships a, +.group.listbox .index, +.dashboard fieldset fieldset.listbox .index, +#dashboard a:hover, +th, +#dashboard .secondary, +.secondary, +.thread .even, +.system .tweet_list li, +.ui-datepicker tr:hover { + background: #2A2A2A; +} + +a, +a.tag, +a:link, +#header a:visited, +#header .primary .open a, +#header .primary .dropdown:hover a, +#header #search input:focus, +#header #search input:hover, +.userstuff h2, +#dashboard a, +#dashboard span, +#dashboard .current, +.group .heading, +.filters dt a:hover { + color: #fff; +} + +#header .dropdown .menu a:hover, +#header .dropdown .menu a:focus, +.splash .favorite li:nth-of-type(odd) a, +.ui-datepicker td:hover, +#tos_prompt .heading, +#tos_prompt [disabled] { + background: #111; + color: #ffe8b4; +} + +#outer, +.javascript, +.statistics .index li:nth-of-type(even), +#tos_prompt, +.announcement input[type="submit"] { + background: #191919; +} + +#dashboard ul, +dl.meta, +.group.listbox, +fieldset fieldset.listbox, +#main li.blurb, +form blockquote.userstuff, +div.comment, +li.comment, +.toggled form, +form dl dt, +form.single fieldset, +#inner .module .heading, +.bookmark .status span, +.splash .news li, +.filters .group dt.bookmarker { + border-color: #555; +} + +.group.listbox, +fieldset fieldset.listbox, +#main li.blurb, +.wrapper, +#dashboard .secondary, +.secondary, +form blockquote.userstuff, +.thread .comment, +.toggled form { + box-shadow: 1px 1px 3px #000; +} + +#dashboard .current, +.actions a:active, +a.current, +.current a:visited, +span.unread, +.replied, +span.claimed, +dl.index dd, +.own, +.draft, +.draft .unread, +.child, +.unwrangled, +.unreviewed, +.ui-sortable li:hover { + background: #000; + border-color: #555; + box-shadow: -1px -1px 3px #000; +} + +input, +textarea { + box-shadow: inset 0 1px 2px #000; +} + +li.blurb, +.blurb .blurb, +.listbox .index, +fieldset fieldset.listbox, +.dashboard .listbox .index { + box-shadow: inset 1px 1px 3px #000; +} + +#footer a:hover, +#footer a:focus, +.autocomplete .dropdown ul li:hover, +.autocomplete .dropdown li.selected, +a.tag:hover, +.listbox .heading a.tag:visited:hover, +.symbol .question { + background: #ffedc5; + border-color: #988352; + color: #111; +} + +#header #greeting img, +#header .user a:hover, +#header .user a:focus, +#header fieldset, +#header form, +#header p, +#dashboard a:hover, +.actions a:hover, +.actions input:hover, +.delete a, +span.delete, +span.unread, +.replied, +span.claimed, +.draggable, +.droppable, +span.requested, +a.work, +.blurb h4 a:link, +.blurb h4 img, +.splash .module h3, +.splash .browse li a:before, +.required, +.error, +.comment_error, +.kudos_error, +a.cloud7, +a.cloud8, +#tos_prompt .heading { + color: #ffe8b4; +} + +#greeting .icon, +#dashboard, +#dashboard.own, +.error, +.comment_error, +.kudos_error, +.LV_invalid, +.LV_invalid_field, +input.LV_invalid_field:hover, +input.LV_invalid_field:active, +textarea.LV_invalid_field:hover, +textarea.LV_invalid_field:active, +.qtip-content { + border-color: #8a1a10; +} + +.splash .favorite li:nth-of-type(odd) a:hover, +.splash .favorite li:nth-of-type(odd) a:focus .splash .favorite li:nth-of-type(odd) a:visited:hover, +.splash .favorite li:nth-of-type(odd) a:visited:focus { + background: #ffe8b4; + color: #111; +} + +a:visited, +.actions a:visited, +.action a:link, +.action a:visited, +.listbox .heading a:visited, +span.series .divider { + color: #999; +} + +.actions a, +.actions a:link, +.action, +.action:link, +.actions input, +input[type="submit"], +button, +.current, +.actions label, +#header .actions a, +#outer .current { + background: #555; + border-color: #222; + color: #eee; + box-shadow: inset 0 -8px 4px #232323, inset 0 8px 7px #555; + text-shadow: none; +} + +.actions a:hover, +.actions input:hover, +#dashboard a:hover, +.actions a:focus, +.actions input:focus, +#dashboard a:focus, +.actions .disabled select { + color: #999; + border-color: #000; + box-shadow: inset 2px 2px 2px #000; +} + +.actions a:active, +.current, +a.current, +.current a:visited { + color: #fff; + background: #555; + border-color: #fff; + box-shadow: inset 1px 1px 3px #191919; +} + +.delete a, +span.delete { + box-shadow: -1px -1px 2px rgba(255,255,255.25); +} + +.actions label.disabled { + background: #222; + box-shadow: none; +} + +ul.required-tags, +.bookmark .status span, +.blurb .icon { + opacity: 0.9; + border: 0; +} + +#outer .group .heading, +#header .actions a, +fieldset.listbox .heading, +.userstuff .heading { + text-shadow: none; + color: #fff; + background: none; +} + +#header .actions a, +fieldset fieldset, +.mce-container button, +.filters .expander, +.actions .disabled select { + box-shadow: none; +} + +fieldset fieldset.listbox { + outline: none; +} + +form dd.required { + color: #eee; +} + +.mce-container input:focus { + background: #F3EFEC; +} + +.announcement .userstuff a, +.announcement .userstuff a:link, +.announcement .userstuff a:visited:hover { + color: #111; +} + +.announcement .userstuff a:visited { + color: #666; +} + +.announcement .userstuff a:hover, +.announcement .userstuff a:focus { + color: #999; +} + +.event.announcement .userstuff a, +.filters .expander { + color: #eee; +} + diff --git a/systems/artemision/configuration.nix b/systems/artemision/configuration.nix index abbc58c..4149319 100644 --- a/systems/artemision/configuration.nix +++ b/systems/artemision/configuration.nix @@ -31,7 +31,7 @@ }; boot = { - kernelPackages = lib.mkForce pkgs.linuxPackages_zen; + #kernelPackages = lib.mkForce pkgs.linuxPackages_zen; useSystemdBoot = true; default = true; }; @@ -44,6 +44,7 @@ sops.age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ]; services = { + flatpak.enable = true; calibre-web = { enable = true; listen = { diff --git a/systems/artemision/programs.nix b/systems/artemision/programs.nix index 4705ddd..8c3f4ac 100644 --- a/systems/artemision/programs.nix +++ b/systems/artemision/programs.nix @@ -71,6 +71,7 @@ ripgrep rpi-imager rofi-wayland + samba signal-desktop # signal in tray? siji diff --git a/systems/palatine-hill/configuration.nix b/systems/palatine-hill/configuration.nix index d3f0d2f..729d58b 100644 --- a/systems/palatine-hill/configuration.nix +++ b/systems/palatine-hill/configuration.nix @@ -17,6 +17,7 @@ ./minio.nix ./networking.nix ./nextcloud.nix + ./samba.nix ./postgresql.nix ./zfs.nix ]; diff --git a/systems/palatine-hill/docker/act-runner.nix b/systems/palatine-hill/docker/act-runner.nix index 7867a50..7cea883 100644 --- a/systems/palatine-hill/docker/act-runner.nix +++ b/systems/palatine-hill/docker/act-runner.nix @@ -8,30 +8,27 @@ let act_path = vars.primary_act; in { - virtualisation.oci-containers.containers.act-stable-latest-1 = - - { - image = "gitea/act_runner:latest"; - extraOptions = [ - "--stop-signal=SIGINT" - ]; - labels = { - "com.centurylinklabs.watchtower.enable" = "true"; - "com.centurylinklabs.watchtower.scope" = "act-runner"; - }; - volumes = [ - "${act_path}/stable-latest-1/config.yaml:/config.yaml" - "${act_path}/stable-latest-1/data:/data" - "/var/run/docker.sock:/var/run/docker.sock" - ]; - environment = { - CONFIG_FILE = "/config.yaml"; - GITEA_RUNNER_NAME = "stable-latest-1"; - }; - environmentFiles = [ config.sops.secrets."docker/act-runner".path ]; - log-driver = "local"; - + virtualisation.oci-containers.containers.act-stable-latest-1 = { + image = "gitea/act_runner:latest"; + extraOptions = [ + "--stop-signal=SIGINT" + ]; + labels = { + "com.centurylinklabs.watchtower.enable" = "true"; + "com.centurylinklabs.watchtower.scope" = "act-runner"; }; + volumes = [ + "${act_path}/stable-latest-1/config.yaml:/config.yaml" + "${act_path}/stable-latest-1/data:/data" + "/var/run/docker.sock:/var/run/docker.sock" + ]; + environment = { + CONFIG_FILE = "/config.yaml"; + GITEA_RUNNER_NAME = "stable-latest-1"; + }; + environmentFiles = [ config.sops.secrets."docker/act-runner".path ]; + log-driver = "local"; + }; systemd = { timers."custom-watchtower@act-runner" = { diff --git a/systems/palatine-hill/nextcloud.nix b/systems/palatine-hill/nextcloud.nix index 4fc826e..1325526 100644 --- a/systems/palatine-hill/nextcloud.nix +++ b/systems/palatine-hill/nextcloud.nix @@ -17,12 +17,10 @@ systemd.services."nextcloud-pre-generate" = { requires = [ - "docker.service" - "multi-user.target" + "docker-nextcloud.service" ]; after = [ - "docker.service" - "multi-user.target" + "docker-nextcloud.service" ]; description = "incremental pre-generation of previews on nextcloud"; serviceConfig = { @@ -31,10 +29,10 @@ Group = "docker"; ExecStart = [ '' - ${pkgs.bash}/bin/bash -c '${pkgs.docker}/bin/docker ps --format "{{.Names}}" | ${pkgs.gnugrep}/bin/grep -q "^nextcloud-nextcloud-1$"' + ${pkgs.bash}/bin/bash -c '${pkgs.docker}/bin/docker ps --format "{{.Names}}" | ${pkgs.gnugrep}/bin/grep -q "^nextcloud$"' '' '' - ${pkgs.docker}/bin/docker exec --user www-data nextcloud-nextcloud-1 php occ preview:pre-generate + ${pkgs.docker}/bin/docker exec --user www-data nextcloud php occ preview:pre-generate '' ]; };