Compare commits
10 commits
7c7f1ca339
...
f012eb6d2b
| Author | SHA1 | Date | |
|---|---|---|---|
| f012eb6d2b | |||
| a9aa0dff00 | |||
| 8b2709ae33 | |||
| e2d5273ed8 | |||
| 975b402ff7 | |||
| 06ec510599 | |||
| 61c2b3dcbb | |||
| c0529d5225 | |||
| 2018954c98 | |||
| 7f8155840c |
7 changed files with 40 additions and 2 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
use flake
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -6,3 +6,7 @@ result-*
|
||||||
# ---> Kate
|
# ---> Kate
|
||||||
# Ignore kate's swap files
|
# Ignore kate's swap files
|
||||||
*.kate-swp
|
*.kate-swp
|
||||||
|
|
||||||
|
|
||||||
|
# ---> Direnv
|
||||||
|
.direnv
|
||||||
|
|
|
||||||
17
.justfile
Normal file
17
.justfile
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Hide the default option from the recipes list
|
||||||
|
_default: print-recipes
|
||||||
|
|
||||||
|
find-results:
|
||||||
|
find . -name '*result*'
|
||||||
|
|
||||||
|
print-recipes:
|
||||||
|
@just --list
|
||||||
|
|
||||||
|
alias build := build-nixos
|
||||||
|
# Build a NixOS configuration
|
||||||
|
build-nixos host=`hostname`:
|
||||||
|
nixos-rebuild build --flake .#{{host}}
|
||||||
|
|
||||||
|
# nix-diff with some parameters piped to less
|
||||||
|
nix-diff left right:
|
||||||
|
nix-diff --color=always --skip-already-compared {{left}} {{right}} | less -F
|
||||||
|
|
@ -101,13 +101,15 @@
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
|
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
|
||||||
name = "Environment for toast's nixos configurations";
|
name = "toast-devshell";
|
||||||
# The agenix cli is not needed to activate a configuration, so instead of installing it
|
# The agenix cli is not needed to activate a configuration, so instead of installing it
|
||||||
# I'll just add it to de devShell, since that's the only real time I'm going to use it.
|
# I'll just add it to de devShell, since that's the only real time I'm going to use it.
|
||||||
packages = with nixpkgs.legacyPackages.x86_64-linux; [
|
packages = with nixpkgs.legacyPackages.x86_64-linux; [
|
||||||
agenix.packages.x86_64-linux.default
|
agenix.packages.x86_64-linux.default
|
||||||
git
|
git
|
||||||
nix-diff
|
nix-diff
|
||||||
|
just
|
||||||
|
nix-diff
|
||||||
];
|
];
|
||||||
shellHook =''
|
shellHook =''
|
||||||
export PS1="$PS1(toast-configs)> "
|
export PS1="$PS1(toast-configs)> "
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
home-manager.users.toast = { config, ... }: {
|
home-manager.users.toast = { config, ... }: {
|
||||||
programs.bash.enable = true;
|
programs.bash = {
|
||||||
|
enable = true;
|
||||||
|
enableVteIntegration = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@
|
||||||
./bat.nix
|
./bat.nix
|
||||||
./btop.nix
|
./btop.nix
|
||||||
./helix.nix
|
./helix.nix
|
||||||
|
./direnv.nix
|
||||||
];
|
];
|
||||||
# Some programs dont have a programs.*.enable option, so I install their package here
|
# Some programs dont have a programs.*.enable option, so I install their package here
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
|
||||||
10
roles/common/programs/direnv.nix
Normal file
10
roles/common/programs/direnv.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.direnv = {
|
||||||
|
enable = true;
|
||||||
|
nix-direnv = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue