-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: align architecture with
srid/nixos-config
(#7)
* feat: add minimal just file - see https://just.systems/man/en/ * refactor: add default.nix to home * feat: add starship config from srid/nixos-config * refactor: migrate terminal config flake -> ./home * refactor: update flake to account for refactoring - use `systems.url = "github:nix-systems/default";` - migrate default, terminal, starship configs to ./home - set default username to "runner" for compatibility with debugging in github actions * refactor: update flake.lock * fix: remove disabled autojump deferring to zoxide - #7 (comment) * fix: remove asciinema - #7 (comment) * fix: specify formatter in flake - #7 (comment) * fix: fully qualify references to all inputs - #7 (comment) * feat: add run target that refs lint and check * refactor: remove unused home.nix * fix: update relative path to neovim in comment * feat: io/update/build/clean targets for justfile * fix: point to nix-systems/default in comment - #7 (comment) * fix: justfile indent spacing * refactor: make `./home` a home-manager module ... rather than a flake-parts module - #7 (comment) - #7 (comment) - #7 (comment) * feat: add direnv to use flake * Add a devshell (since there is .envrc) * Simplify justfile default * docs: update README * fix: lint gitignore * chore: update flake lock * feat: add manual dev recipe to justfile * fix: spacing typo in README --------- Co-authored-by: Sridhar Ratnakumar <[email protected]>
- Loading branch information
1 parent
a5491ed
commit 049e533
Showing
9 changed files
with
198 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
result | ||
.direnv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
imports = [ | ||
# This loads ./neovim/default.nix - neovim configured for Haskell dev, and other things. | ||
./neovim | ||
./starship.nix | ||
./terminal.nix | ||
# Add more of your home-manager modules here. | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
# Starship configuration from this example: | ||
# https://github.com/srid/nixos-config/blob/f9cf0def19fbc7aa1e836be481ce50d214e34036/home/starship.nix#L4-L19 | ||
programs.starship = { | ||
enable = true; | ||
settings = { | ||
username = { | ||
style_user = "blue bold"; | ||
style_root = "red bold"; | ||
format = "[$user]($style) "; | ||
disabled = false; | ||
show_always = true; | ||
}; | ||
hostname = { | ||
ssh_only = false; | ||
ssh_symbol = "🌐 "; | ||
format = "on [$hostname](bold red) "; | ||
trim_at = ".local"; | ||
disabled = false; | ||
}; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Like GNU `make`, but `just` rustier. | ||
# https://just.systems/man/en/chapter_19.html | ||
# run `just` from this directory to see available commands | ||
|
||
# Default command when 'just' is run without arguments | ||
default: | ||
@just --list | ||
|
||
# Print nix flake inputs and outputs | ||
io: | ||
nix flake metadata | ||
nix flake show | ||
|
||
# Update nix flake | ||
update: | ||
nix flake update | ||
|
||
# Lint nix files | ||
lint: | ||
nix fmt | ||
|
||
# Check nix flake | ||
check: | ||
nix flake check | ||
|
||
# Manually enter dev shell | ||
dev: | ||
nix develop | ||
|
||
# Build nix flake | ||
build: lint check | ||
nix build | ||
|
||
# Remove build output link (no garbage collection) | ||
clean: | ||
rm -f ./result | ||
|
||
# Run nix flake to setup environment | ||
run: lint check | ||
nix run |