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";
|
||||
};
|
||||
};
|
||||
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, ... }: {
|
||||
home.packages = with pkgs.deploy-rs; [ deploy-rs ];
|
||||
}
|
||||
{ pkgs, inputs, ... }: { home.packages = with pkgs.deploy-rs; [ deploy-rs ]; }
|
||||
|
|
|
@ -1,6 +1 @@
|
|||
{tree, ...}: {
|
||||
imports = with tree; [
|
||||
home.apps.kitty
|
||||
home.apps.rofi
|
||||
];
|
||||
}
|
||||
{ tree, ... }: { imports = with tree; [ home.apps.kitty home.apps.rofi ]; }
|
||||
|
|
|
@ -26,7 +26,6 @@ in {
|
|||
];
|
||||
kernelModules = [ "kvm-intel" ];
|
||||
|
||||
|
||||
initrd.postDeviceCommands = pkgs.lib.mkBefore ''
|
||||
mkdir -m 0755 -p ${usb_data.mountpoint}
|
||||
|
||||
|
|
|
@ -17,7 +17,6 @@
|
|||
unencrypted_path = "/dev/disk/by-label/${unencrypted_label}";
|
||||
mapper_path = "/dev/mapper/${mapper_name}";
|
||||
|
||||
|
||||
# Paths to some important files
|
||||
lappy_encryption_key_path = "${mountpoint}/encryption-keys/lappy.key";
|
||||
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ lib, inputs, ... }: {
|
||||
imports = [
|
||||
"${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix"
|
||||
];
|
||||
imports = [ "${inputs.nixpkgs}/nixos/modules/virtualisation/qemu-vm.nix" ];
|
||||
users.users.root.password = "password";
|
||||
users.users.chaos.password = "password";
|
||||
home-manager.users.chaos.home.sessionVariables = {
|
||||
|
|
|
@ -1,9 +1,4 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, alsa-topology-conf
|
||||
, alsa-ucm-conf
|
||||
}:
|
||||
{ lib, stdenv, fetchurl, alsa-topology-conf, alsa-ucm-conf }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "alsa-lib";
|
||||
|
|
|
@ -12,7 +12,6 @@ final: prev: {
|
|||
};
|
||||
roc-toolkit-patched = final.callPackage ./roc-toolkit-patched { };
|
||||
roc-send-pcm = final.callPackage ./roc-send-pcm { };
|
||||
vivaldi = prev.vivaldi.override {
|
||||
alsa-lib = final.callPackage ./alsa-lib {};
|
||||
};
|
||||
vivaldi =
|
||||
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;
|
||||
nixFiles = filterAttrs isNixFile dirContents;
|
||||
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;
|
||||
dirPaths = getPaths directories;
|
||||
recursedPaths = mapAttrs (_: fullPath:
|
||||
|
@ -100,8 +101,7 @@ let
|
|||
let
|
||||
processFunctor = prev:
|
||||
prev // {
|
||||
__functor = self:
|
||||
_: {
|
||||
__functor = self: _: {
|
||||
imports =
|
||||
attrValues (removeAttrs prev leafConfig.functor.excludes)
|
||||
++ leafConfig.functor.external;
|
||||
|
|
Loading…
Reference in a new issue