Skip to content

Commit

Permalink
First commit.
Browse files Browse the repository at this point in the history
Add new files and configurations.
  • Loading branch information
yousiki committed Feb 8, 2024
0 parents commit 4e10077
Show file tree
Hide file tree
Showing 20 changed files with 956 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/flake-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Check and build flake"

on:
push:
pull_request:
workflow_dispatch:

jobs:
nix-flake-check:
name: nix flake check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@v4
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix flake check --all-systems

flake-checker:
name: flake-checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/flake-checker-action@main
27 changes: 27 additions & 0 deletions .github/workflows/flakehub-publish-tagged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "Publish tags to FlakeHub"
on:
push:
tags:
- "v?[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:
inputs:
tag:
description: "The existing tag to publish to FlakeHub"
type: "string"
required: true
jobs:
flakehub-publish:
runs-on: "ubuntu-latest"
permissions:
id-token: "write"
contents: "read"
steps:
- uses: "actions/checkout@v3"
with:
ref: "${{ (inputs.tag != null) && format('refs/tags/{0}', inputs.tag) || '' }}"
- uses: "DeterminateSystems/nix-installer-action@main"
- uses: "DeterminateSystems/flakehub-push@main"
with:
visibility: "public"
name: "YOUSIKI/nichijou"
tag: "${{ inputs.tag }}"
169 changes: 169 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
### Nix ###
/result
/secrets/**/*.local

### Emacs ###
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

# Org-mode
.org-id-locations
*_archive

# flymake-mode
*_flymake.*

# eshell files
/eshell/history
/eshell/lastdir

# elpa packages
/elpa/

# reftex files
*.rel

# AUCTeX auto folder
/auto/

# cask packages
.cask/
dist/

# Flycheck
flycheck_*.el

# server auth directory
/server/

# projectiles files
.projectile

# directory configuration
.dir-locals.el

# network security
/network-security.data


### Linux ###

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### macOS Patch ###
# iCloud generated files
*.icloud

### Vim ###
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

# Temporary
.netrwhist
# Auto-generated tag files
tags
# Persistent undo
[._]*.un~

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
!.vscode/*.code-snippets

# Local History for Visual Studio Code
.history/

# Built Visual Studio Code Extensions
*.vsix

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

### Windows ###
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/linux,macos,windows,vim,emacs,visualstudiocode

21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 YouSiki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
57 changes: 57 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!-- nichijou: nix configurations for daily life -->

<h1 align="center"><i>nichijou</i> &ensp;|&ensp; 日常 &ensp;|&ensp; にちじょう </h1>
<p align="center" style="font-size:large;"><i>nix configurations for daily life</i></p>

<p align="center" style="font-size:large;">
🚧 STILL UNDER CONSTRUCTION 🚧
</p>

<p align="center">
<!-- nixos-unstable -->
<a href="https://github.com/nixos/nixpkgs"><img src="https://img.shields.io/badge/NixOS-unstable-informational.svg?style=flat&logo=nixos&logoColor=CAD3F5&colorA=24273A&colorB=8AADF4"></a>
<!-- test -->
<a href="https://github.com/YOUSIKI/nichijou/actions/workflows/flake-check.yml"><img src="https://github.com/YOUSIKI/nichijou/actions/workflows/flake-check.yml/badge.svg"></a>
<a href="https://flakehub.com/flake/YOUSIKI/nichijou"><img src="https://img.shields.io/endpoint?url=https://flakehub.com/f/YOUSIKI/nichijou/badge"></a>
</p>

<p align="center">
<a href="https://nichijou.fandom.com/wiki/Sakamoto"><img src="static/images/sakamoto.gif" width="500px" alt="Sakamoto"/></a>
</p>

## 🧭 Usage

Add nichijou to your `flake.nix`:

```nix
{
inputs = {
nichijou.url = "github:yousiki/nichijou";
nichijou.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = { self, nichijou }: {
# Use in your outputs
};
}
```

## ⛰️ Giants

This repository stands on the shoulders of giants:

- Awesome dotfiles
- [truelecter/hive](https://github.com/truelecter/hive)
- [GTrunSec/hive](https://github.com/GTrunSec/hive)
- [Ruixi-rebirth/flakes](https://github.com/Ruixi-rebirth/flakes)
- [rxyhn/yuki](https://github.com/rxyhn/yuki)
- [Misterio77/nix-config](https://github.com/Misterio77/nix-config)
- [linuxmobile/hyprland-dots](https://github.com/linuxmobile/hyprland-dots)
- and more ...
- Awesome flake tools
- [divnix/hive](https://github.com/divnix/hive)
- [divnix/std](https://github.com/divnix/std)
- [nix-community/haumea](https://github.com/nix-community/haumea)
- [numtide/treefmt-nix](https://github.com/numtide/treefmt-nix)
- [hercules-ci/flake-parts](https://github.com/hercules-ci/flake-parts)
- and more ...
Loading

0 comments on commit 4e10077

Please sign in to comment.