Compare commits

...

4 commits

Author SHA1 Message Date
f48485cf90
WIP!!!!!!! 2024-11-14 21:59:08 -08:00
5cf26ebf11
feat(snowfall): Setup Snowfall migration 2024-11-14 21:28:56 -08:00
6448b16751
feat(nix): Install helper tools 2024-11-14 21:00:06 -08:00
92f360e2bb
feat(cheat): Install cheat 2024-11-14 21:00:06 -08:00
59 changed files with 115 additions and 3 deletions

View file

@ -2,6 +2,18 @@
description = "marleyOS";
outputs =
inputs:
inputs.snowfall-lib.mkFlake {
inherit inputs;
src = ./.;
snowfall = {
namespace = "marleyos";
title = "marleyOS";
};
};
old =
{ self, ... }@inputs:
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
debug = true;
@ -64,11 +76,13 @@
};
inputs = {
flake-parts.url = "github:hercules-ci/flake-parts";
nixos-unified.url = "github:srid/nixos-unified";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
snowfall-lib = {
url = "github:snowfallorg/lib";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";

View file

@ -0,0 +1,4 @@
{ ... }:
{
home.stateVersion = "24.05";
}

51
lib/module/default.nix Normal file
View file

@ -0,0 +1,51 @@
{ lib, ... }:
with lib;
rec {
## Create a NixOS module option.
##
## ```nix
## lib.mkOpt nixpkgs.lib.types.str "My default" "Description of my option."
## ```
##
#@ Type -> Any -> String
mkOpt =
type: default: description:
mkOption {
inherit
type
default
description
;
};
## Create a boolean NixOS module option.
##
## ```nix
## lib.mkBoolOpt true "Description of my option."
## ```
##
#@ Type -> Any -> String
mkBoolOpt = mkOpt types.bool;
enabled = {
## Quickly enable an option.
##
## ```nix
## services.nginx = enabled;
## ```
##
#@ true
enable = true;
};
disabled = {
## Quickly disable an option.
##
## ```nix
## services.nginx = enabled;
## ```
##
#@ false
enable = false;
};
}

View file

@ -0,0 +1,4 @@
{ namespace, lib, ... }:
{
}

View file

@ -3,5 +3,7 @@
home.packages = with pkgs; [
nixfmt-rfc-style
nil
statix
manix
];
}

View file

@ -0,0 +1,36 @@
{ pkgs, config, ... }:
let
toYaml = (pkgs.formats.yaml { }).generate;
in
{
home.packages = with pkgs; [
cheat
];
xdg.configFile."cheat/conf.yml".source = toYaml "conf.yml" {
colorize = true;
# TODO set based on global color scheme
style = "rose-pine";
formatter = "terminal256";
pager = "less -FRX";
cheatpaths =
let
cheatDir = "${config.xdg.configHome}/cheat/cheatsheets";
in
[
{
name = "community";
path = "${cheatDir}/community";
tags = [ "community" ];
readonly = true;
}
{
name = "personal";
path = "${cheatDir}/personal";
tags = [ "personal" ];
readonly = false;
}
];
};
}

View file

@ -5,6 +5,7 @@
./bat.nix
./btop.nix
./cava.nix
./cheat.nix
./curl.nix
./eza.nix
./figlet.nix