Git sign by default, hostname from common.nix in flake.nix

This commit is contained in:
Martin Berg Alstad 2025-02-02 19:05:07 +01:00
parent 830b76bcb6
commit b50fce54a7
Signed by: martials
GPG Key ID: 706F53DD087A91DE
2 changed files with 6 additions and 2 deletions

View File

@ -37,7 +37,6 @@
}:
let
system = "x86_64-linux";
hostname = "nixos";
inherit (self) outputs;
common = import ./common.nix;
in
@ -47,7 +46,7 @@
# Adds the nix fmt command to format nix files
formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style;
nixosConfigurations.${hostname} = nixpkgs.lib.nixosSystem {
nixosConfigurations.${common.hostname} = nixpkgs.lib.nixosSystem {
system = system;
specialArgs = { inherit outputs inputs; }; # Pass args to modules
modules = [

View File

@ -10,6 +10,11 @@
s = "status";
};
signing = {
signByDefault = true;
key = "706F53DD087A91DE";
};
extraConfig = {
push.autoSetupRemote = true;
safe.directory = "/etc/nixos";