1
1
Fork 0

Compare commits

...

4 commits

Author SHA1 Message Date
98982c2778
nix: enable lix
Signed-off-by: Myned <dev@bjork.tech>
2024-10-17 00:43:36 -05:00
bf663bc849
nix: potentially fix usage of github api as non-root user
Signed-off-by: Myned <dev@bjork.tech>
2024-10-17 00:43:24 -05:00
4c4d2aec7b
waybar: fix module margin
Signed-off-by: Myned <dev@bjork.tech>
2024-10-17 00:42:40 -05:00
ca5b252167
nixos.sh: fix passing extra flags to nh
Signed-off-by: Myned <dev@bjork.tech>
2024-10-17 00:42:22 -05:00
3 changed files with 9 additions and 4 deletions

View file

@ -2,11 +2,14 @@
config,
inputs,
lib,
pkgs,
...
}: {
age.secrets = let
secret = filename: {
file = "${inputs.self}/secrets/${filename}";
owner = config.custom.username;
group = config.custom.username;
};
in {
"common/nix/access-tokens.conf" = secret "common/nix/access-tokens.conf";
@ -80,9 +83,8 @@
nix = {
#!! Override upstream nix
# TODO: Try lix v2.92.0
# https://git.lix.systems/lix-project/lix
#// package = pkgs.lix;
package = pkgs.lix;
# BUG: Absolute paths are forbidden in pure mode
# https://github.com/NixOS/nix/issues/11030

View file

@ -37,6 +37,7 @@ tooltip {
}
.module {
margin: 0 1px;
padding: 4px 12px;
}

View file

@ -20,7 +20,6 @@ cd /etc/nixos || exit 1
# @flag -p --poweroff Gracefully poweroff system after a successful build
# @flag -r --reboot Gracefully reboot system after a successful build
# @flag -u --update Update flake.lock before building
# @arg extra~ Pass extra arguments to builder
build() { :; }
# Internal wrapper for subcommands
@ -42,7 +41,7 @@ _build() {
else
# Build current system
if [[ "${argc_builder:-}" == nh ]]; then
nh os "$1" ${argc_extra:+"${argc_extra[@]}"}
nh os "$1" -- ${argc_extra:+"${argc_extra[@]}"}
elif [[ "${argc_builder:-}" == nixos ]]; then
sudo nixos-rebuild "$1" ${argc_extra:+"${argc_extra[@]}"}
fi
@ -59,14 +58,17 @@ _build() {
# @cmd Build and boot NixOS configuration
# @alias b,bo,boo
# @arg extra~ Pass extra arguments to builder
build::boot() { _build boot; }
# @cmd Build and switch NixOS configuration
# @alias s,sw,swi,swit,switc
# @arg extra~ Pass extra arguments to builder
build::switch() { _build switch; }
# @cmd Build and test NixOS configuration
# @alias t,te,tes
# @arg extra~ Pass extra arguments to builder
build::test() { _build test; }
# @cmd Compare NixOS system generations