forked from emily/nixfiles
Use lix everywhere
This commit is contained in:
parent
7ea51e7e28
commit
ed3c9c2c7e
2 changed files with 4 additions and 8 deletions
|
@ -1,4 +1,4 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
{ config, inputs, lib, pkgs, ... }:
|
||||
|
||||
with lib; {
|
||||
imports = [
|
||||
|
@ -7,6 +7,7 @@ with lib; {
|
|||
./openssh.nix
|
||||
./users
|
||||
../../modules
|
||||
inputs.lix-module.nixosModules.default
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
kitty.terminfo
|
||||
|
@ -53,7 +54,6 @@ with lib; {
|
|||
'';
|
||||
users.motdFile = "/var/lib/deployment/motd";
|
||||
|
||||
nix.package = pkgs.nixVersions.latest;
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.options = "--delete-older-than 7d";
|
||||
nix.optimise.automatic = true;
|
||||
|
@ -62,7 +62,7 @@ with lib; {
|
|||
path = pkgs.path;
|
||||
};
|
||||
nix.settings = {
|
||||
experimental-features = [ "nix-command" "flakes" "pipe-operators" ];
|
||||
experimental-features = [ "nix-command" "flakes" "pipe-operator" ];
|
||||
trusted-users = [ "root" "@wheel" ];
|
||||
substituters = [ "https://cache.kyouma.net" ];
|
||||
trusted-public-keys = [ "cache.kyouma.net:Frjwu4q1rnwE/MnSTmX9yx86GNA/z3p/oElGvucLiZg=" ];
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
{ config, inputs, lib, ... }: {
|
||||
imports = [
|
||||
./nix-config.nix
|
||||
inputs.lix-module.nixosModules.default
|
||||
];
|
||||
sops.secrets."services/hydra/signKey" = {
|
||||
owner = "hydra-queue-runner";
|
||||
|
@ -19,9 +18,6 @@
|
|||
};
|
||||
kyouma.deployment.auto-upgrade.cache = "daemon";
|
||||
|
||||
nix.package = lib.mkForce inputs.lix-module.packages.${config.nixpkgs.hostPlatform.system}.default;
|
||||
nix.settings.experimental-features = lib.mkForce [ "nix-command" "flakes" "pipe-operator" ];
|
||||
|
||||
services.hydra = {
|
||||
enable = true;
|
||||
package = inputs.hydra.packages.${config.nixpkgs.hostPlatform.system}.hydra;
|
||||
|
@ -40,7 +36,7 @@
|
|||
};
|
||||
services.harmonia = {
|
||||
enable = true;
|
||||
signKeyPath = config.sops.secrets."services/hydra/signKey".path;
|
||||
signKeyPaths = lib.singleton config.sops.secrets."services/hydra/signKey".path;
|
||||
settings = {
|
||||
bind = "[::1]:5555";
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue