mirror of
https://github.com/kmein/niveum
synced 2026-03-18 19:11:08 +01:00
feat: convert inputs to flakes
This commit is contained in:
@@ -265,7 +265,7 @@ in {
|
||||
./sudo.nix
|
||||
./themes.nix
|
||||
./tmux.nix
|
||||
# ./traadfri.nix
|
||||
./traadfri.nix
|
||||
./unclutter.nix
|
||||
./vscode.nix
|
||||
./watson.nix
|
||||
|
||||
@@ -60,8 +60,6 @@
|
||||
' $out/astrolog/astrolog.as
|
||||
'';
|
||||
});
|
||||
|
||||
recht = pkgs.callPackage inputs.recht.outPath {};
|
||||
in {
|
||||
home-manager.users.me.home.file = {
|
||||
".csl".source = cslDirectory;
|
||||
@@ -168,7 +166,6 @@ in {
|
||||
scripts.betacode # ancient greek betacode to unicode converter
|
||||
scripts.meteo
|
||||
scripts.mahlzeit
|
||||
recht
|
||||
scripts.vimv
|
||||
scripts.swallow # window swallowing
|
||||
scripts.literature-quote
|
||||
@@ -190,7 +187,6 @@ in {
|
||||
scripts.mpv-radio
|
||||
# kmein.slide
|
||||
termdown
|
||||
scripts.alarm
|
||||
scripts.tolino-screensaver
|
||||
scripts.rfc
|
||||
scripts.tag
|
||||
@@ -203,7 +199,8 @@ in {
|
||||
par
|
||||
qrencode
|
||||
|
||||
inputs.menstruation-backend
|
||||
inputs.menstruation-backend.defaultPackage.x86_64-linux
|
||||
inputs.recht.defaultPackage.x86_64-linux
|
||||
|
||||
(pkgs.writers.writeDashBin "worldradio" ''
|
||||
shuf ${worldradio} | ${pkgs.findutils}/bin/xargs ${pkgs.mpv}/bin/mpv --no-video
|
||||
@@ -216,6 +213,23 @@ in {
|
||||
(pkgs.writers.writeDashBin "ncmpcpp-zaatar" ''MPD_HOST=${(import ../lib/local-network.nix).zaatar} exec ${pkgs.ncmpcpp}/bin/ncmpcpp "$@"'')
|
||||
(pkgs.writers.writeDashBin "mpc-zaatar" ''MPD_HOST=${(import ../lib/local-network.nix).zaatar} exec ${pkgs.mpc_cli}/bin/mpc "$@"'')
|
||||
|
||||
(pkgs.writers.writeDashBin "alarm" ''
|
||||
set -efu
|
||||
export PATH=${lib.makeBinPath [pkgs.coreutils pkgs.bc inputs.scripts.packages.x86_64-linux.rusty-jeep]}
|
||||
for i in `seq 8000 1000 10000`; do
|
||||
echo $i 100
|
||||
done | rusty-jeep
|
||||
echo 'if you heard that sound, then goto sleep..^_^'
|
||||
|
||||
echo sleep "$@"
|
||||
sleep "$@"
|
||||
|
||||
echo 'wake up!'
|
||||
while :; do
|
||||
echo $(echo "($(od -tu -An -N 2 /dev/urandom)%1000)+500"|bc) $(echo "($(od -tu -An -N 2 /dev/urandom)%500)+100"|bc)
|
||||
done | rusty-jeep 1
|
||||
'')
|
||||
|
||||
spotify
|
||||
ncspot
|
||||
playerctl
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (import <niveum/lib>) localAddresses;
|
||||
inherit (import ../lib) localAddresses;
|
||||
living-room-id = 131090;
|
||||
in {
|
||||
imports = [<niveum/modules/traadfri.nix>];
|
||||
imports = [../modules/traadfri.nix];
|
||||
|
||||
environment.systemPackages = [
|
||||
(pkgs.writers.writeDashBin "traadfri-party" ''
|
||||
@@ -20,11 +21,13 @@ in {
|
||||
'')
|
||||
];
|
||||
|
||||
age.secrets.traadfri-key.file = ../secrets/traadfri-key.age;
|
||||
|
||||
niveum.traadfri = {
|
||||
enable = true;
|
||||
user = "kmein";
|
||||
host = localAddresses.tradfri;
|
||||
key = lib.strings.fileContents <secrets/traadfri.key>;
|
||||
keyFile = config.age.secrets.traadfri-key.path;
|
||||
rooms = {
|
||||
corridor = 131080;
|
||||
kitchen = 131081;
|
||||
|
||||
Reference in New Issue
Block a user