format nix files
This commit is contained in:
parent
8ae4ad026a
commit
8454cf382e
|
@ -6,5 +6,6 @@
|
||||||
"script-opts" = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
|
"script-opts" = "ytdl_hook-ytdl_path=${pkgs.yt-dlp}/bin/yt-dlp";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
programs.zsh.shellAliases.listen = "${pkgs.mpv}/bin/mpv \"https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac\" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5";
|
programs.zsh.shellAliases.listen = ''
|
||||||
|
${pkgs.mpv}/bin/mpv "https://music:$(cat /secrets/music-stream-password)@stream.owo.monster/flac" --cache=yes --cache-pause-initial=yes --cache-pause-wait=5'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
{ pkgs, inputs, ... }: {
|
{ pkgs, inputs, ... }: { home.packages = with pkgs.deploy-rs; [ deploy-rs ]; }
|
||||||
home.packages = with pkgs.deploy-rs; [ deploy-rs ];
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,6 +1 @@
|
||||||
{tree, ...}: {
|
{ tree, ... }: { imports = with tree; [ home.apps.kitty home.apps.rofi ]; }
|
||||||
imports = with tree; [
|
|
||||||
home.apps.kitty
|
|
||||||
home.apps.rofi
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
|
@ -26,7 +26,6 @@ in {
|
||||||
];
|
];
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
|
|
||||||
|
|
||||||
initrd.postDeviceCommands = pkgs.lib.mkBefore ''
|
initrd.postDeviceCommands = pkgs.lib.mkBefore ''
|
||||||
mkdir -m 0755 -p ${usb_data.mountpoint}
|
mkdir -m 0755 -p ${usb_data.mountpoint}
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
unencrypted_path = "/dev/disk/by-label/${unencrypted_label}";
|
unencrypted_path = "/dev/disk/by-label/${unencrypted_label}";
|
||||||
mapper_path = "/dev/mapper/${mapper_name}";
|
mapper_path = "/dev/mapper/${mapper_name}";
|
||||||
|
|
||||||
|
|
||||||
# Paths to some important files
|
# Paths to some important files
|
||||||
lappy_encryption_key_path = "${mountpoint}/encryption-keys/lappy.key";
|
lappy_encryption_key_path = "${mountpoint}/encryption-keys/lappy.key";
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
{ lib, inputs, ... }: {
|
{ lib, inputs, ... }: {
|
||||||
imports = [
|
imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ];
|
||||||
"${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
|
||||||
];
|
|
||||||
users.users.root.password = "password";
|
users.users.root.password = "password";
|
||||||
users.users.chaos.password = "password";
|
users.users.chaos.password = "password";
|
||||||
home-manager.users.chaos.home.sessionVariables = {
|
home-manager.users.chaos.home.sessionVariables = {
|
||||||
|
|
|
@ -1,9 +1,4 @@
|
||||||
{ lib
|
{ lib, stdenv, fetchurl, alsa-topology-conf, alsa-ucm-conf }:
|
||||||
, stdenv
|
|
||||||
, fetchurl
|
|
||||||
, alsa-topology-conf
|
|
||||||
, alsa-ucm-conf
|
|
||||||
}:
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "alsa-lib";
|
pname = "alsa-lib";
|
||||||
|
|
|
@ -12,7 +12,6 @@ final: prev: {
|
||||||
};
|
};
|
||||||
roc-toolkit-patched = final.callPackage ./roc-toolkit-patched { };
|
roc-toolkit-patched = final.callPackage ./roc-toolkit-patched { };
|
||||||
roc-send-pcm = final.callPackage ./roc-send-pcm { };
|
roc-send-pcm = final.callPackage ./roc-send-pcm { };
|
||||||
vivaldi = prev.vivaldi.override {
|
vivaldi =
|
||||||
alsa-lib = final.callPackage ./alsa-lib {};
|
prev.vivaldi.override { alsa-lib = final.callPackage ./alsa-lib { }; };
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1 @@
|
||||||
_: {
|
_: { hardware.pulseaudio.daemon.config = { default-sample-rate = "48000"; }; }
|
||||||
hardware.pulseaudio.daemon.config = { default-sample-rate = "48000"; };
|
|
||||||
}
|
|
||||||
|
|
6
tree.nix
6
tree.nix
|
@ -16,7 +16,8 @@ let
|
||||||
in result != null && builtins.length result > 0;
|
in result != null && builtins.length result > 0;
|
||||||
nixFiles = filterAttrs isNixFile dirContents;
|
nixFiles = filterAttrs isNixFile dirContents;
|
||||||
getPath = entry: "${realPath}/${entry}";
|
getPath = entry: "${realPath}/${entry}";
|
||||||
getPaths = mapAttrs' (n: v: nameValuePair (removeSuffix ".nix" n) (getPath n));
|
getPaths =
|
||||||
|
mapAttrs' (n: v: nameValuePair (removeSuffix ".nix" n) (getPath n));
|
||||||
nixFilePaths = getPaths nixFiles;
|
nixFilePaths = getPaths nixFiles;
|
||||||
dirPaths = getPaths directories;
|
dirPaths = getPaths directories;
|
||||||
recursedPaths = mapAttrs (_: fullPath:
|
recursedPaths = mapAttrs (_: fullPath:
|
||||||
|
@ -100,8 +101,7 @@ let
|
||||||
let
|
let
|
||||||
processFunctor = prev:
|
processFunctor = prev:
|
||||||
prev // {
|
prev // {
|
||||||
__functor = self:
|
__functor = self: _: {
|
||||||
_: {
|
|
||||||
imports =
|
imports =
|
||||||
attrValues (removeAttrs prev leafConfig.functor.excludes)
|
attrValues (removeAttrs prev leafConfig.functor.excludes)
|
||||||
++ leafConfig.functor.external;
|
++ leafConfig.functor.external;
|
||||||
|
|
Loading…
Reference in a new issue