helix arduino nushell snapper

This commit is contained in:
Tao Tien 2024-04-29 13:53:43 -07:00
parent 8da10747bf
commit 333fc943df
6 changed files with 32 additions and 20 deletions

View file

@ -115,6 +115,18 @@
};
};
services.snapper.configs = {
home = {
SUBVOLUME = "/home";
ALLOW_USERS = ["tao"];
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
TIMELINE_LIMIT_HOURLY = "5";
TIMELINE_LIMIT_DAILY = "7";
};
};
services.snapper.snapshotInterval = "*:0/5";
hardware.keyboard.qmk.enable = true;
services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"

View file

@ -54,6 +54,7 @@
language = [
{
name = "arduino";
grammar = "arduino";
scope = "source.arduino";
injection-regex = "arduino";
file-types = ["ino" "cpp" "h"];
@ -67,7 +68,7 @@
auto-format = true;
formatter = {
command = "clang-format";
args = ["--style=file:/home/tao/Templates/clang-format"];
args = ["--style=file:/home/tao/templates/clang-format"];
};
}
{
@ -75,7 +76,7 @@
auto-format = true;
formatter = {
command = "clang-format";
args = ["--style=file:/home/tao/Templates/clang-format"];
args = ["--style=file:/home/tao/templates/clang-format"];
};
indent = {
tab-width = 8;
@ -87,7 +88,7 @@
auto-format = true;
formatter = {
command = "clang-format";
args = ["--style=file:/home/tao/Templates/clang-format"];
args = ["--style=file:/home/tao/templates/clang-format"];
};
indent = {
tab-width = 8;

View file

@ -13,7 +13,7 @@ def l [
path?
flags?
] {
if $path {
if $path != null {
ls $path
} else {
ls
@ -21,7 +21,7 @@ def l [
}
def tse [exit_node?] {
if exit_node {
if $exit_node != null {
tailscale set --exit-node $exit_node
} else {
tailscale set --exit-node=""
@ -34,7 +34,7 @@ def rb [] {
}
def rs [] {
sudo nice -n19 nixos-rebuild boot --flake . --impure --verbose
sudo nice -n19 nixos-rebuild switch --flake . --impure --verbose
hx --grammar fetch; hx --grammar build
}

View file

@ -18,7 +18,19 @@
];
services.flatpak.enable = true;
services.snapper.configs = {
home = {
SUBVOLUME = "/home";
ALLOW_USERS = ["vy"];
TIMELINE_CREATE = true;
TIMELINE_CLEANUP = true;
TIMELINE_LIMIT_HOURLY = "5";
TIMELINE_LIMIT_DAILY = "7";
};
};
services.snapper.snapshotInterval = "*:0/5";
users.users.vy = {
isNormalUser = true;
extraGroups = ["wheel" "audio" "video"];