mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2025-12-15 14:47:14 +01:00
Compare commits
10 Commits
41e94695f0
...
remote
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6289d4d1b4 | ||
|
|
2f3bcaf124 | ||
|
|
c6684d5146 | ||
|
|
f6cb934ffb | ||
|
|
9625258942 | ||
|
|
34637e383a | ||
|
|
0bfa6ac329 | ||
|
|
2c3261de74 | ||
|
|
c2e6f294ea | ||
|
|
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 = []
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
"aarch64-darwin"
|
"aarch64-darwin"
|
||||||
];
|
];
|
||||||
forAllSystems = f: nixlib.genAttrs systems f;
|
forAllSystems = f: nixlib.genAttrs systems f;
|
||||||
allMachines = nixlib.mapAttrsToList (name: _: name) self.nixosConfigurations;
|
allMachines = builtins.attrNames self.nixosConfigurations;
|
||||||
importantMachines = [
|
importantMachines = [
|
||||||
"bekkalokk"
|
"bekkalokk"
|
||||||
"bicep"
|
"bicep"
|
||||||
@@ -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
|
||||||
@@ -124,6 +126,11 @@
|
|||||||
buskerud = stableNixosConfig "buskerud" { };
|
buskerud = stableNixosConfig "buskerud" { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nixosModules = {
|
||||||
|
snakeoil-certs = ./modules/snakeoil-certs.nix;
|
||||||
|
snappymail = ./modules/snappymail.nix;
|
||||||
|
};
|
||||||
|
|
||||||
devShells = forAllSystems (system: {
|
devShells = forAllSystems (system: {
|
||||||
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
|
default = nixpkgs.legacyPackages.${system}.callPackage ./shell.nix { };
|
||||||
});
|
});
|
||||||
|
|||||||
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