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

@ -6,7 +6,6 @@
# foldingathome # foldingathome
gwe gwe
openrgb openrgb
snapper
]; ];
services.tailscale.useRoutingFeatures = "both"; services.tailscale.useRoutingFeatures = "both";

View file

@ -39,18 +39,6 @@ MatchName=Framework Laptop 16 Keyboard Module*
AttrKeyboardIntegration=internal"; AttrKeyboardIntegration=internal";
}; };
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";
services.displayManager.defaultSession = "plasma"; services.displayManager.defaultSession = "plasma";
nix.buildMachines = [ nix.buildMachines = [

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; hardware.keyboard.qmk.enable = true;
services.udev.extraRules = '' services.udev.extraRules = ''
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"

View file

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

View file

@ -13,7 +13,7 @@ def l [
path? path?
flags? flags?
] { ] {
if $path { if $path != null {
ls $path ls $path
} else { } else {
ls ls
@ -21,7 +21,7 @@ def l [
} }
def tse [exit_node?] { def tse [exit_node?] {
if exit_node { if $exit_node != null {
tailscale set --exit-node $exit_node tailscale set --exit-node $exit_node
} else { } else {
tailscale set --exit-node="" tailscale set --exit-node=""
@ -34,7 +34,7 @@ def rb [] {
} }
def rs [] { 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 hx --grammar fetch; hx --grammar build
} }

View file

@ -19,6 +19,18 @@
services.flatpak.enable = true; 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 = { users.users.vy = {
isNormalUser = true; isNormalUser = true;
extraGroups = ["wheel" "audio" "video"]; extraGroups = ["wheel" "audio" "video"];