summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.lock12
-rw-r--r--flake.nix2
-rw-r--r--justfile41
-rw-r--r--users/seth/programs/neovim/default.nix1
4 files changed, 50 insertions, 6 deletions
diff --git a/flake.lock b/flake.lock
index 3ebabd8..dee5103 100644
--- a/flake.lock
+++ b/flake.lock
@@ -166,11 +166,11 @@
]
},
"locked": {
- "lastModified": 1679777945,
- "narHash": "sha256-LYPYDxhflqBlmTvsrkyD2/kRwy3Z3dShtLQrwBEYD7A=",
+ "lastModified": 1680225766,
+ "narHash": "sha256-78IzTC9F+x8WOKFy8kcRXCMV6bju4a4xc/4AVeBXLfQ=",
"owner": "getchoo",
"repo": "overlay",
- "rev": "6c4d08ed32c4608f3ba65a7bc191edaf7c50c755",
+ "rev": "85d0fa6193e8708e1db7c2d1626da8e21d29fb09",
"type": "github"
},
"original": {
@@ -442,11 +442,11 @@
]
},
"locked": {
- "lastModified": 1679910099,
- "narHash": "sha256-4VMRBkKlVy1KbLLe5qvGmw7C+uV+0Ba2/Dz8GIKEFOs=",
+ "lastModified": 1680168109,
+ "narHash": "sha256-aCB7Ivc2j37AhqjWnapFT/73LdzEBUyBZCaQFpGTQJw=",
"owner": "astro",
"repo": "nix-openwrt-imagebuilder",
- "rev": "1b480f0fe82add73481ee3a14709fc2a80638fd7",
+ "rev": "2a7922de68df35e33a5af895df83c3237477ae0a",
"type": "github"
},
"original": {
diff --git a/flake.nix b/flake.nix
index 1690946..63c66ed 100644
--- a/flake.nix
+++ b/flake.nix
@@ -94,7 +94,9 @@
agenix.packages.${system}.agenix
alejandra
deadnix
+ fzf
git-crypt
+ just
statix
stylua
];
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..813cb43
--- /dev/null
+++ b/justfile
@@ -0,0 +1,41 @@
+alias b := build
+alias c := check
+alias sw := switch
+alias up := upgrade
+
+default:
+ @just --choose
+
+[linux]
+build:
+ nixos-rebuild build --flake .
+
+[macos]
+build:
+ darwin-rebuild --flake .
+
+check:
+ nix flake check --impure
+
+[linux]
+switch:
+ sudo nixos-rebuild switch --impure --flake .
+
+[macos]
+switch:
+ darwin-rebuild switch --flake .
+
+update:
+ nix flake update
+
+update-nixpkgs:
+ nix flake lock \
+ --update-input nixpkgs --update-input nixpkgsUnstable
+
+[linux]
+upgrade:
+ sudo nixos-rebuild switch --upgrade --impure --flake .
+
+[macos]
+upgrade:
+ darwin-rebuild switch --upgrade --flake .
diff --git a/users/seth/programs/neovim/default.nix b/users/seth/programs/neovim/default.nix
index 7efccf1..0b154cc 100644
--- a/users/seth/programs/neovim/default.nix
+++ b/users/seth/programs/neovim/default.nix
@@ -40,6 +40,7 @@
nvim-tree-lua
nvim-treesitter.withAllGrammars
nvim-web-devicons
+ pkgs.vim-just
plenary-nvim
telescope-nvim
trouble-nvim