-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.yml
More file actions
63 lines (54 loc) · 1.57 KB
/
Copy pathtaskfile.yml
File metadata and controls
63 lines (54 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version: "3"
tasks:
default:
aliases: [help]
desc: Prints help message and list all
cmds:
- task -l
silent: true
iso:
desc: Creates an iso for installing nix
cmds:
- nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso.nix
isoplain:
desc: Creates an iso for installing nix
cmds:
- nix-build '<nixpkgs/nixos>' -A config.system.build.isoImage -I nixos-config=iso_plain.nix
sync:
desc: Updates system based on configs
cmds:
- task: format
- sudo --preserve-env=SSH_AUTH_SOCK nixos-rebuild switch --flake .#cwbfw
- hyprctl reload
update:
cmds:
- nix flake update
updateFirmware:
desc: Updates framework laptop firmware
cmds:
- sudo fwupdmgr update
upgrade:
desc: Upgrades all packages and the system (not the NixOsVersion)
cmds:
- sudo nix-channel --update
- sudo --preserve-env=SSH_AUTH_SOCK nixos-rebuild switch --flake .#cwbfw
format:
aliases: [fmt]
desc: Autoformats all nix files
cmds:
- treefmt .
ci:
desc: Runs the github actions
cmds:
- act
setup:
desc: Initalizes the machine based on this repo
cmds:
- sudo mv /etc/nixos/configuration.nix /etc/nixos/configuration.nix.backup
- sudo cp configuration.nix /etc/nixos/
- sudo chown root:root /etc/nixos/configuration.nix
todos:
desc: Get list of todos
cmds:
# TODO: convert to Nushell
- grep 'TODO' -r -n --exclude-dir={node_modules,.git,lib} --exclude={"*bundle.js","*.map","*.min.js","*.csv",todos.txt} .