mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-15 14:47:14 +01:00
Compare commits
6 Commits
f6cb934ffb
...
remote
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6289d4d1b4 | ||
|
|
2f3bcaf124 | ||
|
|
c6684d5146 | ||
|
|
34637e383a | ||
|
|
0bfa6ac329 | ||
|
|
4476cdcbbc |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,3 +1,4 @@
|
|||||||
result*
|
result*
|
||||||
/configuration.nix
|
/configuration.nix
|
||||||
/.direnv/
|
/.direnv/
|
||||||
|
/.remote.toml
|
||||||
|
|||||||
5
.remoteenv
Normal file
5
.remoteenv
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# used by the `remote-exec` package
|
||||||
|
eval "$(nix print-dev-env .#default)"
|
||||||
|
# echo Entered "$(hostname --fqdn)" # just why systemd-networkd...
|
||||||
|
echo Entered "$(hostname)"
|
||||||
15
.remoteignore.toml
Normal file
15
.remoteignore.toml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# used by the `remote-exec` package
|
||||||
|
[push]
|
||||||
|
exclude = []
|
||||||
|
include = []
|
||||||
|
|
||||||
|
[pull]
|
||||||
|
exclude = ["*"]
|
||||||
|
|
||||||
|
[both]
|
||||||
|
exclude = [
|
||||||
|
".remote.toml",
|
||||||
|
".direnv",
|
||||||
|
"result*",
|
||||||
|
]
|
||||||
|
include = []
|
||||||
@@ -47,6 +47,8 @@
|
|||||||
"ildkule"
|
"ildkule"
|
||||||
];
|
];
|
||||||
in {
|
in {
|
||||||
|
inherit inputs;
|
||||||
|
|
||||||
nixosConfigurations = let
|
nixosConfigurations = let
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
unstablePkgs = nixpkgs-unstable.legacyPackages.x86_64-linux;
|
||||||
nixosConfig = nixpkgs: name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
|
nixosConfig = nixpkgs: name: config: nixpkgs.lib.nixosSystem (nixpkgs.lib.recursiveUpdate
|
||||||
|
|||||||
21
justfile
Normal file
21
justfile
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
export GUM_FILTER_HEIGHT := "15"
|
||||||
|
nom := `if command -v nom >/dev/null; then echo nom; else echo nix; fi`
|
||||||
|
|
||||||
|
@_default:
|
||||||
|
just "$(gum choose --ordered --header "Pick a recipie..." $(just --summary --unsorted))"
|
||||||
|
|
||||||
|
check:
|
||||||
|
nix flake check --keep-going
|
||||||
|
|
||||||
|
build-machine machine=`just _a_machine`:
|
||||||
|
{{nom}} build .#nixosConfigurations.{{ machine }}.config.system.build.toplevel
|
||||||
|
|
||||||
|
@update-inputs:
|
||||||
|
nix eval .#inputs --apply builtins.attrNames --json \
|
||||||
|
| jq '.[]' -r \
|
||||||
|
| gum choose --no-limit --height=15 \
|
||||||
|
| xargs nix flake update --commit-lock-file
|
||||||
|
|
||||||
|
|
||||||
|
_a_machine:
|
||||||
|
nix eval .#nixosConfigurations --apply builtins.attrNames --json | jq .[] -r | gum filter
|
||||||
Reference in New Issue
Block a user