add second server

This commit is contained in:
Grimmauld 2025-01-15 14:00:13 +01:00
parent b0676e617a
commit 08de06ced4
6 changed files with 56 additions and 10 deletions

View file

@ -85,7 +85,7 @@ in
services.dbus.implementation = "broker";
boot.tmp.cleanOnBoot = true;
zramSwap.enable = false;
# zramSwap.enable = false;
};
options.grimmShared.tooling = {

View file

@ -362,16 +362,17 @@
]
},
"locked": {
"dirtyRev": "0d7908bd09165db6699908b7e3970f137327cbf0-dirty",
"dirtyShortRev": "0d7908bd-dirty",
"lastModified": 1736013363,
"narHash": "sha256-1UN8758BA6XDgte9AfHu5fZ35zqVPPq3GGuca3JJOZU=",
"lastModified": 1736941558,
"narHash": "sha256-Q7o9lUoKqw94IhmlhwguhPZX9AJNLnkVb56XHa0W5/I=",
"ref": "refs/heads/master",
"rev": "1ffbc5166cf74f9e5342fca7e3f2257c8d96b5df",
"revCount": 3997,
"type": "git",
"url": "file:///home/grimmauld/coding/home-manager"
"url": "https://git.grimmauld.de/Grimmauld/home-manager"
},
"original": {
"type": "git",
"url": "file:///home/grimmauld/coding/home-manager"
"url": "https://git.grimmauld.de/Grimmauld/home-manager"
}
},
"jovian": {

View file

@ -44,7 +44,8 @@
# https://github.com/nix-community/home-manager/issues/3415
# https://github.com/nix-community/home-manager/pull/2548
# url = "github:nix-community/home-manager";
url = "git+file:///home/grimmauld/coding/home-manager";
# url = "git+file:///home/grimmauld/coding/home-manager";
url = "git+https://git.grimmauld.de/Grimmauld/home-manager";
# url = "github:pasqui23/home-manager/nixos-late-start";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -150,6 +151,21 @@
./modules
];
};
grimm-nixos-server-2 = customNixosSystem "x86_64-linux" {
modules = [
agenix.nixosModules.default
# agenix.nixosModules.default
# nixos-matrix-modules.nixosModules.default
# nixos-mailserver.nixosModules.default
./configuration.nix
./specific/grimm-nixos-server-2/configuration.nix
# ./modules
home-manager.nixosModules.home-manager
./hm
];
};
};
};
}

View file

@ -7,8 +7,8 @@ in
inherit username;
homeDirectory = "/home/${username}";
file.".ssh/id_ed25519_sk".source = ../../ssh/id_ed25519_sk;
file.".ssh/id_ed25519_sk.pub".source = ../../ssh/id_ed25519_sk.pub;
# file.".ssh/id_ed25519_sk".source = ../../ssh/id_ed25519_sk;
# file.".ssh/id_ed25519_sk.pub".source = ../../ssh/id_ed25519_sk.pub;
file.".cups/lpoptions".text = "Default pdf\n";
};
};

View file

@ -0,0 +1,20 @@
{ pkgs, lib, ... }: {
imports = [
./hardware-configuration.nix
];
environment.systemPackages = with pkgs; [
helix
];
programs.git.enable = true;
programs.nh.flake = lib.mkForce "/home/grimmauld/grimm-nixos-laptop";
boot.tmp.cleanOnBoot = true;
zramSwap.enable = true;
networking.hostName = "grimm-nixos-server-2";
networking.domain = "grimmauld.de";
services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [''sk-ssh-ed25519@openssh.com AAAAGnNrLXNzaC1lZDI1NTE5QG9wZW5zc2guY29tAAAAIMgGKExPve3tsl0/kjV5rCo5wb46CapnUaA1ZdZWpgXTAAAAC3NzaDpnZW5lcmFs grimmauld@grimm-nixos-ssd'' ];
system.stateVersion = "23.11";
}

View file

@ -0,0 +1,9 @@
{ modulesPath, ... }:
{
imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
boot.loader.grub.device = "/dev/sda";
boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
boot.initrd.kernelModules = [ "nvme" ];
fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
}