mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
style: nix fmt
This commit is contained in:
parent
a72a61f475
commit
f63d899a25
13 changed files with 25 additions and 38 deletions
|
|
@ -1,8 +1,4 @@
|
||||||
{
|
_: {
|
||||||
inputs,
|
|
||||||
system,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
nixpkgs = {
|
nixpkgs = {
|
||||||
overlays = [
|
overlays = [
|
||||||
];
|
];
|
||||||
|
|
|
||||||
12
flake.nix
12
flake.nix
|
|
@ -137,12 +137,12 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
snowfall-lib = {
|
snowfall-lib = {
|
||||||
url = "github:snowfallorg/lib";
|
url = "github:snowfallorg/lib";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.follows = "nixpkgs";
|
nixpkgs.follows = "nixpkgs";
|
||||||
flake-utils-plus.follows = "flake-utils-plus";
|
flake-utils-plus.follows = "flake-utils-plus";
|
||||||
flake-compat.follows = "flake-compat";
|
flake-compat.follows = "flake-compat";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
nh = {
|
nh = {
|
||||||
url = "github:nix-community/nh";
|
url = "github:nix-community/nh";
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{inputs, ...}:
|
||||||
inputs,
|
|
||||||
...
|
|
||||||
}:
|
|
||||||
inputs.flake-utils.lib.eachDefaultSystem (system: let
|
inputs.flake-utils.lib.eachDefaultSystem (system: let
|
||||||
treefmtEval = inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} ./treefmt.nix;
|
treefmtEval = inputs.treefmt-nix.lib.evalModule inputs.nixpkgs.legacyPackages.${system} ./treefmt.nix;
|
||||||
in {
|
in {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
programs.niri.settings.spawn-at-startup = let
|
programs.niri.settings.spawn-at-startup = let
|
||||||
import-gsettings = pkgs.writeShellScriptBin "import-gsettings" ''
|
import-gsettings = pkgs.writeShellScriptBin "import-gsettings" ''
|
||||||
# usage: import-gsettings
|
# usage: import-gsettings
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{config, ...}: {
|
||||||
config,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
catppuccin.cursors.enable = true;
|
catppuccin.cursors.enable = true;
|
||||||
home.pointerCursor = {
|
home.pointerCursor = {
|
||||||
dotIcons.enable = true;
|
dotIcons.enable = true;
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,8 @@ with lib; rec {
|
||||||
level ? 1,
|
level ? 1,
|
||||||
}: let
|
}: let
|
||||||
prefix = concatStringsSep "" (lib.genList (_x: " ") (level * 2));
|
prefix = concatStringsSep "" (lib.genList (_x: " ") (level * 2));
|
||||||
in lib.imap1 (i: v: "${
|
in
|
||||||
|
lib.imap1 (i: v: "${
|
||||||
if includesWrapper && (i == 1 || i == (lib.length list))
|
if includesWrapper && (i == 1 || i == (lib.length list))
|
||||||
then v
|
then v
|
||||||
else "${prefix}${v}"
|
else "${prefix}${v}"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{lib, ...}: let
|
||||||
lib,
|
|
||||||
...
|
|
||||||
}: let
|
|
||||||
inherit (lib.types) submodule loaOf;
|
inherit (lib.types) submodule loaOf;
|
||||||
inherit (lib.modules) mkDefault mkAfter;
|
inherit (lib.modules) mkDefault mkAfter;
|
||||||
inherit (lib.options) mkOption;
|
inherit (lib.options) mkOption;
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,4 @@
|
||||||
{
|
{pkgs, ...}: {
|
||||||
pkgs,
|
|
||||||
...
|
|
||||||
}: {
|
|
||||||
hardware.graphics = {
|
hardware.graphics = {
|
||||||
enable32Bit = true;
|
enable32Bit = true;
|
||||||
extraPackages32 = with pkgs; [
|
extraPackages32 = with pkgs; [
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ config, ... }: {
|
{config, ...}: {
|
||||||
security.acme = {
|
security.acme = {
|
||||||
defaults = {
|
defaults = {
|
||||||
dnsProvider = "cloudflare";
|
dnsProvider = "cloudflare";
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,16 @@
|
||||||
{pkgs, inputs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
inputs,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
home-manager.users.kat.programs.weechat = {
|
home-manager.users.kat.programs.weechat = {
|
||||||
plugins = {
|
plugins = {
|
||||||
perl = {
|
perl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts; with pkgs.weechatScripts; [
|
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts;
|
||||||
|
with pkgs.weechatScripts; [
|
||||||
highmon
|
highmon
|
||||||
parse_relayed_msg
|
parse_relayed_msg
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,8 @@ in {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts; with pkgs.weechatScripts; [
|
scripts = with inputs.arcexprs.legacyPackages.${pkgs.system}.weechatScripts;
|
||||||
|
with pkgs.weechatScripts; [
|
||||||
colorize_nicks
|
colorize_nicks
|
||||||
title
|
title
|
||||||
weechat-go
|
weechat-go
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@
|
||||||
shells = import ./shells {inherit inputs tree lib std pkgs;};
|
shells = import ./shells {inherit inputs tree lib std pkgs;};
|
||||||
inherit (import ./pkgs.nix {inherit inputs tree overlay;}) pkgs;
|
inherit (import ./pkgs.nix {inherit inputs tree overlay;}) pkgs;
|
||||||
formatting = import ./formatting.nix {inherit inputs pkgs;};
|
formatting = import ./formatting.nix {inherit inputs pkgs;};
|
||||||
wrappers = import ./wrappers {inherit inputs;};
|
|
||||||
inherit (std) set;
|
inherit (std) set;
|
||||||
checks = set.map (_: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
|
checks = set.map (_: deployLib: deployLib.deployChecks inputs.self.deploy) inputs.deploy-rs.lib;
|
||||||
in
|
in
|
||||||
|
|
|
||||||
2
std.nix
2
std.nix
|
|
@ -1,6 +1,6 @@
|
||||||
{inputs, ...}: let
|
{inputs, ...}: let
|
||||||
std = let
|
std = let
|
||||||
baseStd = inputs.std.lib.Std.compat // { inherit (inputs.std.lib.Std.std) tuple; };
|
baseStd = inputs.std.lib.Std.compat // {inherit (inputs.std.lib.Std.std) tuple;};
|
||||||
inherit (baseStd) set function list bool types optional tuple;
|
inherit (baseStd) set function list bool types optional tuple;
|
||||||
mergeWith = let
|
mergeWith = let
|
||||||
append = {
|
append = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue