massive refactor
This commit is contained in:
@@ -59,6 +59,8 @@ def get_ongoing_or_next_event(url, username, password):
|
||||
|
||||
for calendar in calendars:
|
||||
for event in calendar.search(start=now):
|
||||
if "VEVENT" not in event.data:
|
||||
continue
|
||||
calendar_parsed = Calendar(event.data)
|
||||
for ics_event in calendar_parsed.events:
|
||||
event_dict = {}
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{ pkgs, ... }@all: with all;
|
||||
{
|
||||
{ pkgs, ... }@all: with all; {
|
||||
home.packages = with pkgs; [
|
||||
# (gimp-with-plugins.override {
|
||||
# plugins = with gimpPlugins; [ bimp ];
|
||||
# })
|
||||
unstable.gimp
|
||||
gimp
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
{ pkgs, ... }@all: with all;
|
||||
{
|
||||
{ pkgs, ... }@all: with all; {
|
||||
home.packages = [
|
||||
(pkgs.writeShellApplication {
|
||||
name = "nx_backup";
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{ pkgs, ... }@all: with all;
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(writers.writePython3Bin "change_colors_json" {
|
||||
libraries = with python3Packages; [ numpy pillow scikit-learn ];
|
||||
home.packages = [
|
||||
(pkgs.writers.writePython3Bin "change_colors_json" {
|
||||
libraries = with pkgs.python3Packages; [ numpy pillow scikit-learn ];
|
||||
flakeIgnore = [ "E302" "E305" "E226" "E501" ];
|
||||
} /*python */ ''
|
||||
from colorsys import hls_to_rgb, rgb_to_hls
|
||||
@@ -141,7 +141,10 @@
|
||||
foreground = alter_l(accent, 0.9)
|
||||
background = alter_l(accent, 0.05)
|
||||
|
||||
d = {
|
||||
with open("${hyper.home}/nix-dots/flake-modules/colors.json", "r") as f:
|
||||
full_d = json.load(f)
|
||||
|
||||
full_d['${hyper.host}'] = {
|
||||
"base": {
|
||||
"foreground": list_to_hex(foreground),
|
||||
"background": list_to_hex(background)
|
||||
@@ -155,8 +158,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
with open("/home/nx2/nix-dots/flake-modules/colors.json", "w") as f:
|
||||
f.write(json.dumps(d, indent=4))
|
||||
with open("${hyper.home}/nix-dots/flake-modules/colors.json", "w") as f:
|
||||
f.write(json.dumps(full_d, indent=4))
|
||||
'')
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user