Compare commits

...

5 commits

Author SHA1 Message Date
Nick
05b1286220 feat: charon test 2025-03-13 17:52:26 -05:00
Nick
59d0768e7a feat: charon test 2025-03-13 17:35:04 -05:00
Nick
65c8dbea4d feat: charon test 2025-03-13 17:31:11 -05:00
Nick
8f91f646f4 feat: charon test 2025-03-13 17:29:52 -05:00
Nick
cfdf20a39c feat: restructured some stuff for user1 2025-03-13 17:24:51 -05:00
80 changed files with 242 additions and 101 deletions

90
flake.lock generated
View file

@ -59,11 +59,11 @@
}, },
"crane": { "crane": {
"locked": { "locked": {
"lastModified": 1739936662, "lastModified": 1741481578,
"narHash": "sha256-x4syUjNUuRblR07nDPeLDP7DpphaBVbUaSoeZkFbGSk=", "narHash": "sha256-JBTSyJFQdO3V8cgcL08VaBUByEU6P5kXbTJN6R0PFQo=",
"owner": "ipetkov", "owner": "ipetkov",
"repo": "crane", "repo": "crane",
"rev": "19de14aaeb869287647d9461cbd389187d8ecdb7", "rev": "bb1c9567c43e4434f54e9481eb4b8e8e0d50f0b5",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -403,11 +403,11 @@
"zig2nix": "zig2nix" "zig2nix": "zig2nix"
}, },
"locked": { "locked": {
"lastModified": 1741473443, "lastModified": 1741594465,
"narHash": "sha256-H+rS9UDb1Qd0bTUxppNgiIHLzr4sR/LnDox4VhR5Q1w=", "narHash": "sha256-8a/QIgNwV8VGn8JIiACmVVEdue+U3juiMSAO1DEUTC4=",
"owner": "ghostty-org", "owner": "ghostty-org",
"repo": "ghostty", "repo": "ghostty",
"rev": "d3fd2b02e71f3eaecd310b246ee64a26a59b78e3", "rev": "95daca616db5c24d7bb37fd5a3ac2f8762bb4ead",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -490,11 +490,11 @@
"rust-overlay": "rust-overlay" "rust-overlay": "rust-overlay"
}, },
"locked": { "locked": {
"lastModified": 1741370148, "lastModified": 1741815977,
"narHash": "sha256-nzGqv+4teMbOjhylRCfGsqH7XFLt5m+uwJHgGA0YpUQ=", "narHash": "sha256-zRPJMgKBvLBNVlPEMpkjEYtd2jKbHE6AlqT9bL5m/yQ=",
"owner": "helix-editor", "owner": "helix-editor",
"repo": "helix", "repo": "helix",
"rev": "dc4761ad3a09a1cc9a3219d75765ff098fb203af", "rev": "1bd7a3901cf73a9219470dafc65f3c7119e96cc0",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -537,11 +537,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1741461731, "lastModified": 1741791118,
"narHash": "sha256-BBQfGvO3GWOV+5tmqH14gNcZrRaQ7Q3tQx31Frzoip8=", "narHash": "sha256-4Y427uj0eql4yRU5rely3EcOlB9q457UDbG9omPtXiA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "7f4c60a3d6e548dbc13666565c22cb3f8dcdad44", "rev": "18780912345970e5b546b1b085385789b6935a83",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -626,11 +626,11 @@
"xdph": "xdph" "xdph": "xdph"
}, },
"locked": { "locked": {
"lastModified": 1741461862, "lastModified": 1741788549,
"narHash": "sha256-TNTtpDHoNB+wOEfypkGTu2zC0wHUwbabQo4HyU53Yok=", "narHash": "sha256-Ot/AuQGw5KJwHjyTMHWmyaduNkcE58bOCmyitZ4VxEQ=",
"owner": "hyprwm", "owner": "hyprwm",
"repo": "Hyprland", "repo": "Hyprland",
"rev": "d30cc19d253a3db784ad10c3084f58cbb52d325a", "rev": "e86d3a14e46d19d8a47f8ceb6410546715d45f10",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -988,11 +988,11 @@
"yants": "yants" "yants": "yants"
}, },
"locked": { "locked": {
"lastModified": 1741379880, "lastModified": 1741798076,
"narHash": "sha256-DKlMDfJpiqlwb4X4+3BBITNsMa8PvwzxPBexwPdrhCI=", "narHash": "sha256-zQh8FysFtZ0QVGNxDkpO50be9N+8lvkUgwpkMua1kK8=",
"owner": "ngi-nix", "owner": "ngi-nix",
"repo": "ngipkgs", "repo": "ngipkgs",
"rev": "716f0f56604f76aa731b4dd47386028a91a7a0c5", "rev": "ed15bd021f36f9396e4d60664599de187f267b2f",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1008,11 +1008,11 @@
"nixpkgs-stable": "nixpkgs-stable_3" "nixpkgs-stable": "nixpkgs-stable_3"
}, },
"locked": { "locked": {
"lastModified": 1741432127, "lastModified": 1741691385,
"narHash": "sha256-JrN9MWJLVVEjVYINDX0NHI2U91/7qSywm6m6mGKwB0E=", "narHash": "sha256-Zjs3cBTVm4GLjjLgdi9XS/7nEdjjciKPj2EFOLOrNcE=",
"owner": "lilyinstarlight", "owner": "lilyinstarlight",
"repo": "nixos-cosmic", "repo": "nixos-cosmic",
"rev": "bf3d41b9fc89883823ce9fadbec1b44f2cdd1fac", "rev": "5af413f4e97073783ed2dc11fd134ffc7771414d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1071,11 +1071,11 @@
}, },
"nixpkgs-stable_3": { "nixpkgs-stable_3": {
"locked": { "locked": {
"lastModified": 1741332913, "lastModified": 1741600792,
"narHash": "sha256-ri1e8ZliWS3Jnp9yqpKApHaOo7KBN33W8ECAKA4teAQ=", "narHash": "sha256-yfDy6chHcM7pXpMF4wycuuV+ILSTG486Z/vLx/Bdi6Y=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "20755fa05115c84be00b04690630cb38f0a203ad", "rev": "ebe2788eafd539477f83775ef93c3c7e244421d3",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1103,11 +1103,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1741246872, "lastModified": 1741513245,
"narHash": "sha256-Q6pMP4a9ed636qilcYX8XUguvKl/0/LGXhHcRI91p0U=", "narHash": "sha256-7rTAMNTY1xoBwz0h7ZMtEcd8LELk9R5TzBPoHuhNSCk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "10069ef4cf863633f57238f179a0297de84bd8d3", "rev": "e3e32b642a31e6714ec1b712de8c91a3352ce7e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1119,11 +1119,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1741379970, "lastModified": 1741513245,
"narHash": "sha256-Wh7esNh7G24qYleLvgOSY/7HlDUzWaL/n4qzlBePpiw=", "narHash": "sha256-7rTAMNTY1xoBwz0h7ZMtEcd8LELk9R5TzBPoHuhNSCk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "36fd87baa9083f34f7f5027900b62ee6d09b1f2f", "rev": "e3e32b642a31e6714ec1b712de8c91a3352ce7e1",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1158,11 +1158,11 @@
"treefmt-nix": "treefmt-nix_2" "treefmt-nix": "treefmt-nix_2"
}, },
"locked": { "locked": {
"lastModified": 1741473895, "lastModified": 1741827850,
"narHash": "sha256-mWiCOdvGkDVJO6C9OaXDpYuKUJocyeZhtWP7QNqS2Zs=", "narHash": "sha256-wTZexZxoIi8pvEvYaE0xfDfvq1KQgzk0/BipXumYv8M=",
"owner": "nix-community", "owner": "nix-community",
"repo": "NUR", "repo": "NUR",
"rev": "3c1d774501d2300c51ce37ea6d1405d5ea12e740", "rev": "8a38b29f38afb374c33123fd0d0128cab36a1ea4",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1351,11 +1351,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1740882709, "lastModified": 1741573199,
"narHash": "sha256-VC+8GxWK4p08jjIbmsNfeFQajW2lsiOR/XQiOOvqgvs=", "narHash": "sha256-A2sln1GdCf+uZ8yrERSCZUCqZ3JUlOv1WE2VFqqfaLQ=",
"owner": "oxalica", "owner": "oxalica",
"repo": "rust-overlay", "repo": "rust-overlay",
"rev": "f4d5a693c18b389f0d58f55b6f7be6ef85af186f", "rev": "c777dc8a1e35407b0e80ec89817fe69970f4e81a",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1415,11 +1415,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1741043164, "lastModified": 1741644481,
"narHash": "sha256-9lfmSZLz6eq9Ygr6cCmvQiiBEaPb54pUBcjvbEMPORc=", "narHash": "sha256-E0RrMykMtEv15V3QhpsFutgoSKhL1JBhidn+iZajOyg=",
"owner": "Mic92", "owner": "Mic92",
"repo": "sops-nix", "repo": "sops-nix",
"rev": "3f2412536eeece783f0d0ad3861417f347219f4d", "rev": "e653d71e82575a43fe9d228def8eddb73887b866",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1676,11 +1676,11 @@
"rust-overlay": "rust-overlay_2" "rust-overlay": "rust-overlay_2"
}, },
"locked": { "locked": {
"lastModified": 1741418166, "lastModified": 1741760227,
"narHash": "sha256-9/KZCzO2V2DgNp5225dvNjWFUZDSRNc52wV4a/tU95Y=", "narHash": "sha256-5yZ3FQZFG0DSssr8NRa+JWGOojHLDFG2L+icNVnj+tw=",
"owner": "sxyazi", "owner": "sxyazi",
"repo": "yazi", "repo": "yazi",
"rev": "31177fd1fd71500e6a30edee60a122f78e5e7424", "rev": "abfbd1cd9f0dd428d134f257ec89c25dac842b65",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -1699,11 +1699,11 @@
"rust-overlay": "rust-overlay_3" "rust-overlay": "rust-overlay_3"
}, },
"locked": { "locked": {
"lastModified": 1741472240, "lastModified": 1741823056,
"narHash": "sha256-STuoLQxDC9b7j26rNSfVNnX19jxI7P2MzoMYqA0Khfs=", "narHash": "sha256-/NUosorAbmRSwufdk/cY+8h//43gTNxk2W9cSulJ3pc=",
"owner": "zed-industries", "owner": "zed-industries",
"repo": "zed", "repo": "zed",
"rev": "ed6bf7f161c6af6e10354faacb8b643a55c80b27", "rev": "0081b816fecf59ae7351a14eb7249e600389d508",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -98,7 +98,7 @@
deimos = inputs.self.lib.mkLinuxSystem [ deimos = inputs.self.lib.mkLinuxSystem [
./systems/deimos ./systems/deimos
./profiles/user0 ./profiles/user0
./profiles/user1 # ./profiles/user1
config.nixosModules.deimos config.nixosModules.deimos
config.nixosModules.core config.nixosModules.core
config.nixosModules.mantle config.nixosModules.mantle

View file

@ -114,45 +114,69 @@ in
inherit (modules) inherit (modules)
cli cli
brave brave
emulators floorp
firefox
tor tor
code
gaming
media
messaging
sharing
tools
;
};
};
"${deimos.name}-${user1}" = {
imports = builtins.attrValues {
inherit (modules)
cli
brave
ghostty ghostty
prismLauncher
steam
zed zed
gaming feishin
spotify obsidian
docs libreOffice
mpv okular
zathura
kolourPaint kolourPaint
discord imageViewing
obsStudio
daVinci
mpv
freetube
dissent
discordCanary
element
signal signal
scrcpy sharing
bitwarden bitwarden
emote emote
desktop flameshot
gnomeCalculator
scrcpy
systemMonitor
usbImager
virtManager
hypr
wayland
theming
polychromatic
dolphin
; ;
}; };
}; };
# "${deimos.name}-${user1}" = {
# imports = builtins.attrValues {
# inherit (modules)
# cli
# brave
# ghostty
# zed
# gaming
# spotify
# docs
# mpv
# kolourPaint
# discord
# signal
# scrcpy
# bitwarden
# emote
# desktop
# ;
# };
# };
"${charon.name}-${user1}" = { "${charon.name}-${user1}" = {
imports = builtins.attrValues { imports = builtins.attrValues {
inherit (modules) inherit (modules)
cli cli
catppuccin
gtk
brave brave
ghostty ghostty
zed zed

View file

View file

@ -24,8 +24,6 @@ let
"5, workspace, 5" "5, workspace, 5"
# Windows # Windows
"Tab, killactive" "Tab, killactive"
"O, splitratio, 0.33"
"F, splitratio, -0.33"
# Window Focus # Window Focus
"C, movefocus, l" "C, movefocus, l"
"A, movefocus, u" "A, movefocus, u"
@ -45,6 +43,8 @@ let
"A, movewindow, u" "A, movewindow, u"
"E, movewindow, d" "E, movewindow, d"
"I, movewindow, r" "I, movewindow, r"
"equal, splitratio, 0.33"
"minus, splitratio, -0.33"
# Quick Action # Quick Action
"T, exec, ghostty" "T, exec, ghostty"
"S, exec, flameshot gui" "S, exec, flameshot gui"

View file

@ -1,8 +1,13 @@
{ flake, ... }: { flake, config, ... }:
let let
inherit (flake.config.people) inherit (flake.config.people)
user0 user0
user1
user2
; ;
user = config.home.username;
userConfig = flake.config.people.users.${user};
in in
{ {
mainBar = { mainBar = {
@ -30,6 +35,7 @@ in
"disk" "disk"
"pulseaudio" "pulseaudio"
# "network" # "network"
"battery"
"clock" "clock"
]; ];
@ -153,12 +159,29 @@ in
}; };
"custom/weather" = { "custom/weather" = {
exec = "/home/${user0}/Files/Projects/dotfiles/modules/home/gui/desktop/wayland/waybar/config/scripts/get_weather.sh Winnipeg"; exec = "/home/${user}/.config/scripts/get_weather.sh Winnipeg";
return-type = "json"; return-type = "json";
format = "{}"; format = "{}";
tooltip = true; tooltip = true;
interval = 3600; interval = 3600;
}; };
battery = {
format = "{icon} {capacity}%";
format-alt = "{icon} {time}";
format-charging = " {capacity}%";
format-icons = [
""
""
""
""
""
];
format-plugged = " {capacity}%";
states = {
critical = 15;
warning = 30;
};
};
}; };
} }
# https://unicodes.jessetane.com/ # https://unicodes.jessetane.com/

View file

@ -100,6 +100,12 @@ in
#clock { #clock {
} }
#battery {
font-size: ${custom.font_size};
color: #${custom.text_color};
padding-right: 10px;
}
#custom-launcher { #custom-launcher {
font-size: 20px; font-size: 20px;
color: #${custom.text_color}; color: #${custom.text_color};

View file

@ -6,7 +6,7 @@
}: }:
let let
configPath = ./config; configPath = ./config;
settingsPath = import (configPath + /settings.nix) { inherit flake; }; settingsPath = import (configPath + /settings.nix) { inherit config flake; };
stylePath = import (configPath + /style.nix) { inherit config flake; }; stylePath = import (configPath + /style.nix) { inherit config flake; };
in in
{ {

View file

@ -3,7 +3,7 @@
enable = true; enable = true;
settings = { settings = {
"default" = { "default" = {
path = "~/Files/Projects/dotfiles/modules/home/gui/desktop/wayland/wpaperd/wallpaper"; path = "~/.config/wallpaper";
apply-shadow = true; apply-shadow = true;
duration = "1m"; duration = "1m";
sorting = "random"; sorting = "random";

View file

@ -1,4 +1,8 @@
{ flake, config, ... }: {
flake,
config,
...
}:
let let
inherit (flake.config.people) inherit (flake.config.people)
user0 user0
@ -11,8 +15,25 @@ let
hostname = config.networking.hostName; hostname = config.networking.hostName;
mars = devices.mars.name; mars = devices.mars.name;
ceres = devices.ceres.name; ceres = devices.ceres.name;
venus = devices.venus.names; venus = devices.venus.name;
charon = devices.charon.name; charon = devices.charon.name;
deimos = devices.deimos.name;
userLogic =
if
builtins.elem hostname [
mars
deimos
ceres
]
then
user0
else if hostname == charon then
user1
else if hostname == venus then
user2
else
"";
in in
{ {
security = { security = {
@ -23,18 +44,7 @@ in
keepEnv = true; keepEnv = true;
noPass = true; noPass = true;
users = [ users = [
( userLogic
if hostname == mars then
user0
else if hostname == ceres then
user0
else if hostname == charon then
user1
else if hostname == venus then
user2
else
""
)
]; ];
} }
]; ];

View file

@ -17,15 +17,22 @@ let
; ;
hostname = config.networking.hostName; hostname = config.networking.hostName;
mars = devices.mars.name; mars = devices.mars.name;
deimos = devices.deimos.name;
ceres = devices.ceres.name; ceres = devices.ceres.name;
venus = devices.venus.name; venus = devices.venus.name;
charon = devices.charon.name; charon = devices.charon.name;
userLogic = userLogic =
if hostname == mars then if
user0 builtins.elem hostname [
else if hostname == ceres then mars
deimos
ceres
]
then
user0 user0
else if hostname == charon then
user1
else if hostname == venus then else if hostname == venus then
user2 user2
else else

View file

@ -40,6 +40,17 @@ in
}; };
}; };
charon = {
imports = builtins.attrValues {
inherit (modules)
hypr
wayland
flatpak
xserver
;
};
};
ceres = { ceres = {
imports = builtins.attrValues { imports = builtins.attrValues {
inherit (modules) inherit (modules)

View file

@ -7,7 +7,14 @@
let let
inherit (flake.config.people) inherit (flake.config.people)
user0 user0
user1
user2
; ;
inherit (flake.config.machines) devices;
venus = devices.venus.name;
charon = devices.charon.name;
host = config.networking.hostName;
in in
{ {
services = { services = {
@ -18,7 +25,13 @@ in
let let
default_session = { default_session = {
command = "${lib.meta.getExe config.programs.hyprland.package}"; command = "${lib.meta.getExe config.programs.hyprland.package}";
user = user0; user =
if host == charon then
user1
else if host == venus then
user2
else
user0;
}; };
in in
{ {

View file

@ -11,7 +11,7 @@ let
in in
{ {
programs.regreet = { programs.regreet = {
enable = true; enable = false;
package = pkgs.greetd.regreet; package = pkgs.greetd.regreet;
# settings = { # settings = {
# appearance = { # appearance = {

View file

@ -1,7 +1,12 @@
{ flake, config, ... }: {
flake,
config,
...
}:
let let
inherit (flake.config.people) inherit (flake.config.people)
user0 user0
user1
user2 user2
; ;
inherit (flake.config.machines) inherit (flake.config.machines)
@ -12,12 +17,19 @@ let
ceres = devices.ceres.name; ceres = devices.ceres.name;
venus = devices.venus.name; venus = devices.venus.name;
charon = devices.charon.name; charon = devices.charon.name;
deimos = devices.deimos.name;
userLogic = userLogic =
if hostname == mars then if
user0 builtins.elem hostname [
else if hostname == ceres then mars
deimos
ceres
]
then
user0 user0
else if hostname == charon then
user1
else if hostname == venus then else if hostname == venus then
user2 user2
else else

View file

@ -62,6 +62,14 @@ in
"./.config/vesktop/themes/macchiato-theme.css" = { "./.config/vesktop/themes/macchiato-theme.css" = {
source = ./files/themes/vesktop/macchiato-theme.css; source = ./files/themes/vesktop/macchiato-theme.css;
}; };
"./.config/scripts/get_weather.sh" = {
source = ./files/get_weather.sh;
executable = true;
};
".config/wallpaper" = {
source = ./files/wallpaper;
recursive = true;
};
}; };
sessionVariables = { sessionVariables = {
VISUAL = lib.getExe pkgs.zed-editor; VISUAL = lib.getExe pkgs.zed-editor;

View file

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 201 KiB

After

Width:  |  Height:  |  Size: 201 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 808 KiB

After

Width:  |  Height:  |  Size: 808 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 5.1 MiB

After

Width:  |  Height:  |  Size: 5.1 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.5 MiB

After

Width:  |  Height:  |  Size: 3.5 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 632 KiB

After

Width:  |  Height:  |  Size: 632 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 460 KiB

After

Width:  |  Height:  |  Size: 460 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 8.2 MiB

After

Width:  |  Height:  |  Size: 8.2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.1 MiB

After

Width:  |  Height:  |  Size: 1.1 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 833 KiB

After

Width:  |  Height:  |  Size: 833 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 467 KiB

After

Width:  |  Height:  |  Size: 467 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 2 MiB

After

Width:  |  Height:  |  Size: 2 MiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.8 MiB

Before After
Before After

View file

@ -38,6 +38,14 @@ in
"./justfile" = { "./justfile" = {
source = ./files/justfile; source = ./files/justfile;
}; };
"./.config/scripts/get_weather.sh" = {
source = ./files/get_weather.sh;
executable = true;
};
".config/wallpaper" = {
source = ./files/wallpaper;
recursive = true;
};
}; };
sessionVariables = { }; sessionVariables = { };
}; };

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
for i in {1..5}
do
text=$(curl -s "https://wttr.in/$1?format=1")
if [[ $? == 0 ]]
then
text=$(echo "$text" | sed -E "s/\s+/ /g")
tooltip=$(curl -s "https://wttr.in/$1?format=4")
if [[ $? == 0 ]]
then
tooltip=$(echo "$tooltip" | sed -E "s/\s+/ /g")
echo "{\"text\":\"$text\", \"tooltip\":\"$tooltip\"}"
exit
fi
fi
sleep 2
done
echo "{\"text\":\"error\", \"tooltip\":\"error\"}"

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

View file

@ -75,7 +75,7 @@ in
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -" "Z ${config.home-manager.users.${user0}.home.homeDirectory} 0755 ${user0} users -"
"Z ${config.home-manager.users.${user1}.home.homeDirectory} 0755 ${user1} users -" # "Z ${config.home-manager.users.${user1}.home.homeDirectory} 0755 ${user1} users -"
]; ];
services.udisks2.enable = true; services.udisks2.enable = true;