The comma is a lie.

This commit is contained in:
kat witch 2021-03-07 00:56:51 +00:00
parent e6b215cefd
commit 2c6230dd63
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
14 changed files with 58 additions and 38 deletions

View file

@ -9,7 +9,7 @@
services.nextcloud = {
enable = true;
hostName = "files.kittywit.ch";
package = pkgs.nextcloud20;
package = pkgs.nextcloud21;
https = true;
config = {
dbtype = "pgsql";

View file

@ -7,15 +7,16 @@
nixpkgs.config = { allowUnfree = true; };
nix = {
nixPath = [
"nixpkgs=/nix/var/nix/profiles/per-user/root/channels/nixos"
"nixpkgs=${sources.nixpkgs}"
"nixpkgs-unstable=${sources.nixpkgs-unstable}"
"nixpkgs-mozilla=${sources.nixpkgs-mozilla}"
"NUR=${sources.NUR}"
"arc=${sources.arc-nixexprs}"
];
binaryCaches = [ "https://cache.nixos.org" "https://arc.cachix.org" ];
binaryCaches = [ "https://arc.cachix.org" ];
binaryCachePublicKeys =
[ "arc.cachix.org-1:DZmhclLkB6UO0rc0rBzNpwFbbaeLfyn+fYccuAy7YVY=" ];
};
gc.automatic = lib.mkDefault true;
gc.options = lib.mkDefault "--delete-older-than 1w";
trustedUsers = [ "root" "@wheel" ];

View file

@ -9,7 +9,6 @@
cachix
ripgrep
git
kitty.terminfo
nixfmt
mprime
wget

View file

@ -2,8 +2,6 @@
{
config = lib.mkIf config.deploy.profile.gui {
home.sessionVariables.TERMINFO_DIRS =
"${pkgs.kitty.terminfo.outPath}/share/terminfo";
programs.kitty = {
enable = true;
font.name = witch.style.font.name;

View file

@ -9,6 +9,7 @@
element-desktop
mumble
obs-studio
niv
xfce.ristretto
audacity
avidemux
@ -23,7 +24,7 @@
lm_sensors
baresip
psmisc
unstable.discord
discord
tdesktop
yubikey-manager
pinentry.gtk2

View file

@ -1,5 +1,5 @@
{ ... }:
{
imports = [ ./shell.nix ./git.nix ./tmux.nix ./ssh.nix ./emacs ];
imports = [ ./shell.nix ./git.nix ./tmux.nix ./ssh.nix ./emacs ./packages.nix ];
}

View file

@ -0,0 +1,9 @@
{ config, lib, pkgs, ... }:
{
config = lib.mkIf config.deploy.profile.kat {
home.packages = with pkgs; [
kitty.terminfo
];
};
}

View file

@ -10,7 +10,7 @@
};
settings = [{
modules-left = [ "sway/workspaces" "sway/mode" "sway/window" ];
modules-center = [ "clock" ]; # "custom/weather"
modules-center = [ "clock" "custom/weather" ];
modules-right = [
"pulseaudio"
"network"
@ -29,6 +29,12 @@
# on-click = "xdg-open 'https://google.com/search?q=weather'";
# exec = "nix-shell --command 'python ${../../../../../scripts/weather/weather.py} ${witch.secrets.profiles.sway.city} ${witch.secrets.profiles.sway.api_key}' ${../../../../../scripts/weather}";
#};
"custom/weather" = {
format = "{}";
interval = 3600;
on-click = "xdg-open 'https://google.com/search?q=weather'";
exec = "${pkgs.kat-weather}/bin/kat-weather ${witch.secrets.profiles.sway.city} ${witch.secrets.profiles.sway.api_key}";
};
cpu = { format = " {usage}%"; };
memory = { format = " {percentage}%"; };
temperature = { format = " {temperatureC}°C"; };