Format nix files

This commit is contained in:
2024-08-06 14:58:30 -06:00
parent 57049fe511
commit 0992eba4dc
5 changed files with 30 additions and 29 deletions

View File

@@ -8,7 +8,8 @@
outputs = { self, nixpkgs, ... }@inputs: outputs = { self, nixpkgs, ... }@inputs:
let let
secrets = builtins.fromJSON (builtins.readFile ./secrets.json); secrets = builtins.fromJSON (builtins.readFile ./secrets.json);
in { in
{
nixosModules = { nixosModules = {
common = import ./modules/common.nix; common = import ./modules/common.nix;
prompt = import ./modules/prompt.nix; prompt = import ./modules/prompt.nix;

View File

@@ -3,7 +3,8 @@ let
ffcheck = pkgs.writeShellScriptBin "ffcheck" '' ffcheck = pkgs.writeShellScriptBin "ffcheck" ''
${pkgs.ffmpeg}/bin/ffmpeg -v error -stats -hide_banner -i "$1" -c copy -f null - ${pkgs.ffmpeg}/bin/ffmpeg -v error -stats -hide_banner -i "$1" -c copy -f null -
''; '';
in { in
{
imports = [ imports = [
self.nixosModules.common self.nixosModules.common
self.nixosModules.prompt self.nixosModules.prompt
@@ -132,4 +133,3 @@ in {
system.stateVersion = "24.05"; system.stateVersion = "24.05";
} }

View File

@@ -1,4 +1,4 @@
{ self, pkgs, secrets, ... }: { self, ... }:
{ {
imports = [ imports = [
self.nixosModules.common self.nixosModules.common

View File

@@ -1,4 +1,4 @@
{ options, lib, config, ... }: { lib, config, ... }:
{ {
options.promptEmoji = lib.mkOption { options.promptEmoji = lib.mkOption {
type = lib.types.str; type = lib.types.str;