From 544b57af9c69b32a94f306be30e440bbceae3950 Mon Sep 17 00:00:00 2001 From: roxwize Date: Tue, 17 Dec 2024 18:30:38 -0500 Subject: [PATCH] ~ --- Justfile | 23 +++++++++++++++++++++++ README.md | 12 +++++++++--- TODO | 3 ++- nixos/home.nix | 1 + nixos/packages.nix | 4 ++++ 5 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 Justfile diff --git a/Justfile b/Justfile new file mode 100644 index 0000000..d7535a7 --- /dev/null +++ b/Justfile @@ -0,0 +1,23 @@ +default: + @just --list + +rebuild host operation: + @cd nixos/ && sudo nixos-rebuild {{operation}} --flake .#{{host}} && cd .. + +switch host: + @just rebuild {{host}} switch + +clean: + sudo nix-env --profile /nix/var/nix/profiles/system --delete-generations old + nix-collect-garbage -d + nix store optimise + +push: + git status + @git add . + @git commit -m "~" + git push + +# run `switch` on default host +sd: + @just switch qemu diff --git a/README.md b/README.md index ccf6632..eba378b 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,16 @@ this is rae's nixOS config meow # installation -extract it into your home directory as `~/.dotfiles/` ALTHough in hindsight this is a suuuuper shitty place to put the config files so it may change in the futur... +theoretically: -And Then You Must `ln -s ~/.dotfiles/nixos/hosts/[host]/configuration.nix` into your `/etc/nixos/`... +```sh +git clone https://github.com/roxwize/dotfiles +cd dotfiles/nixos +sudo nixos-rebuild switch --flake '.#[hostname]' +``` -# openbox hotkeys +# usage + +## openbox hotkeys I Dont Remember diff --git a/TODO b/TODO index 6bb1399..fbc8268 100644 --- a/TODO +++ b/TODO @@ -9,4 +9,5 @@ +- [ ] Stylix may help with this [ ] Replace absolute paths (i.e. in openbox autostart file) with substituted | paths generated by Nix (see substituteAllInPlace) -[ ] Consider using flakes +[x] Consider using flakes +[ ] Use just? diff --git a/nixos/home.nix b/nixos/home.nix index d645b56..8b109fb 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -32,6 +32,7 @@ defaultEditor = true; vimAlias = true; plugins = with pkgs.vimPlugins; [ + vim-just vim-wakatime ]; extraLuaConfig = '' diff --git a/nixos/packages.nix b/nixos/packages.nix index d5e47e3..40578ea 100644 --- a/nixos/packages.nix +++ b/nixos/packages.nix @@ -17,6 +17,10 @@ xclip yt-dlp zellij + # development + just + ## language servers + nixd # text editors neovim vscodium