Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion home/programs/zsh.nix
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}

_prompt_auto_width () {
if [[ $COLUMNS -lt 100 ]]; then
if [[ "$TERM" == "linux" || $COLUMNS -lt 100 ]]; then
export STARSHIP_CONFIG=''${XDG_CONFIG_HOME:-$HOME/.config}/starship-minimal.toml
else
unset STARSHIP_CONFIG
Expand Down
6 changes: 5 additions & 1 deletion hosts/glyph/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
imports = [
./hardware.nix
./services
Expand Down Expand Up @@ -54,5 +54,9 @@
# Beets library database (beets configured in home-manager)
rc.backup.paths = ["/home/mu/.config/beets/library.db"];

age.secrets.user-password.file = ./secrets/user-password.age;

users.users.mu.hashedPasswordFile = config.age.secrets.user-password.path;

system.stateVersion = "24.05";
}
2 changes: 1 addition & 1 deletion hosts/glyph/hardware.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

boot.initrd.availableKernelModules = ["vmd" "xhci_pci" "ahci" "nvme" "usb_storage" "usbhid" "sd_mod" "sr_mod"];
boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel"];
boot.kernelModules = ["kvm-intel" "i915"];
boot.extraModulePackages = [];

fileSystems."/" = {
Expand Down
8 changes: 8 additions & 0 deletions hosts/glyph/secrets/user-password.age
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
age-encryption.org/v1
-> ssh-ed25519 rSr+rA VY2dvp9g6IgtOiJ4dW/TvMOIwJBSlw+0ZIRG8Ag3N3U
KE02vkB09orCWVf48P4a6cU4Clmlqr46xh+NG1oQT5Y
-> ssh-ed25519 3EWhnQ 0KLn5lqM207eDkxOnJz3oUd5JxDhW5NALuL5djhVoxg
VlWK1Nfpruxkq6jFBM1Mbegn7hR58TmavrFHFk1go3g
--- kPA0luugj4TiRFPNQoz3C5A74PfQer4LjVvAib9t9ms
÷‰ò2âüâ’Þr ”Nîù1°D–§µ#4pþIA¡GQÀ‹
¸Ã˜¦deӁXz=»i‹Ü‡$ØÙéJßÏÅa’’׉“=́”ÝÏ6ÌÒHÍÓÜP6gœ+0ï‚\Ǻ+fŠw”Î
Expand Down
1 change: 1 addition & 0 deletions lib/secrets/glyph.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ in {
"hosts/glyph/secrets/grafana-mcp-token.age".publicKeys = keys;
"hosts/glyph/secrets/graphite-auth-token.age".publicKeys = keys;
"hosts/glyph/secrets/attic-credentials.age".publicKeys = keys;
"hosts/glyph/secrets/user-password.age".publicKeys = keys;
}
Loading