mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
improvement: use builtins.toJSON wherever possible
This commit is contained in:
@@ -7,65 +7,79 @@ let
|
||||
wilde = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDyTnGhFq0Q+vghNhrqNrAyY+CsN7nNz8bPfiwIwNpjk kfm@wilde";
|
||||
};
|
||||
unstable = import <nixos-unstable> {};
|
||||
wtf-config = pkgs.writeText "config.yml" ''
|
||||
wtf:
|
||||
colors:
|
||||
background: black
|
||||
border:
|
||||
focusable: darkslateblue
|
||||
focused: orange
|
||||
normal: gray
|
||||
grid:
|
||||
columns: [40, 54]
|
||||
rows: [10, 20]
|
||||
refreshInterval: 1
|
||||
mods:
|
||||
clocks:
|
||||
colors:
|
||||
rows:
|
||||
even: "lightblue"
|
||||
odd: "white"
|
||||
enabled: true
|
||||
locations:
|
||||
Berlin: Europe/Berlin
|
||||
London: Europe/London
|
||||
Moscow: Europe/Moscow
|
||||
New York: America/New York
|
||||
position:
|
||||
top: 0
|
||||
left: 0
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 15
|
||||
sort: "alphabetical"
|
||||
security:
|
||||
enabled: true
|
||||
position:
|
||||
top: 1
|
||||
left: 0
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 300
|
||||
prettyweather:
|
||||
enabled: true
|
||||
city: Berlin
|
||||
position:
|
||||
top: 0
|
||||
left: 1
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 3600
|
||||
cmdrunner:
|
||||
enabled: true
|
||||
args: ["status"]
|
||||
cmd: traadfri
|
||||
position:
|
||||
top: 1
|
||||
left: 1
|
||||
height: 1
|
||||
width: 1
|
||||
refreshInterval: 2
|
||||
'';
|
||||
wtf-config = pkgs.writeText "config.yml" (builtins.toJSON {
|
||||
wtf = {
|
||||
colors = {
|
||||
background = "black";
|
||||
border = {
|
||||
focusable = "darkslateblue";
|
||||
focused = "orange";
|
||||
normal = "gray";
|
||||
};
|
||||
};
|
||||
grid = {
|
||||
columns = [40 54];
|
||||
rows = [10 20];
|
||||
};
|
||||
refreshInterval = 1;
|
||||
mods = {
|
||||
clocks = {
|
||||
colors.rows = {
|
||||
even = "lightblue";
|
||||
odd = "white";
|
||||
};
|
||||
enabled = true;
|
||||
locations = {
|
||||
"Berlin" = "Europe/Berlin";
|
||||
"London" = "Europe/London";
|
||||
"Moscow" = "Europe/Moscow";
|
||||
"New York" = "America/New York";
|
||||
};
|
||||
position = {
|
||||
top = 0;
|
||||
left = 0;
|
||||
height = 1;
|
||||
width = 1;
|
||||
};
|
||||
refreshInterval = 15;
|
||||
sort = "alphabetical";
|
||||
};
|
||||
security = {
|
||||
enabled = true;
|
||||
position = {
|
||||
top = 1;
|
||||
left = 0;
|
||||
height = 1;
|
||||
width = 1;
|
||||
};
|
||||
refreshInterval = 300;
|
||||
};
|
||||
prettyweather = {
|
||||
enabled = true;
|
||||
city = "Berlin";
|
||||
position = {
|
||||
top = 0;
|
||||
left = 1;
|
||||
height = 1;
|
||||
width = 1;
|
||||
};
|
||||
refreshInterval = 300;
|
||||
};
|
||||
cmdrunner = {
|
||||
enabled = true;
|
||||
args = [ "status" ];
|
||||
cmd = "traadfri";
|
||||
position = {
|
||||
top = 1;
|
||||
left = 1;
|
||||
height = 1;
|
||||
width = 1;
|
||||
};
|
||||
refreshInterval = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
});
|
||||
in {
|
||||
imports = [
|
||||
./hardware-configuration.nix
|
||||
|
||||
Reference in New Issue
Block a user