add second server
This commit is contained in:
parent
b0676e617a
commit
08de06ced4
6 changed files with 56 additions and 10 deletions
|
@ -85,7 +85,7 @@ in
|
||||||
services.dbus.implementation = "broker";
|
services.dbus.implementation = "broker";
|
||||||
|
|
||||||
boot.tmp.cleanOnBoot = true;
|
boot.tmp.cleanOnBoot = true;
|
||||||
zramSwap.enable = false;
|
# zramSwap.enable = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
options.grimmShared.tooling = {
|
options.grimmShared.tooling = {
|
||||||
|
|
13
flake.lock
13
flake.lock
|
@ -362,16 +362,17 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"dirtyRev": "0d7908bd09165db6699908b7e3970f137327cbf0-dirty",
|
"lastModified": 1736941558,
|
||||||
"dirtyShortRev": "0d7908bd-dirty",
|
"narHash": "sha256-Q7o9lUoKqw94IhmlhwguhPZX9AJNLnkVb56XHa0W5/I=",
|
||||||
"lastModified": 1736013363,
|
"ref": "refs/heads/master",
|
||||||
"narHash": "sha256-1UN8758BA6XDgte9AfHu5fZ35zqVPPq3GGuca3JJOZU=",
|
"rev": "1ffbc5166cf74f9e5342fca7e3f2257c8d96b5df",
|
||||||
|
"revCount": 3997,
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/grimmauld/coding/home-manager"
|
"url": "https://git.grimmauld.de/Grimmauld/home-manager"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "file:///home/grimmauld/coding/home-manager"
|
"url": "https://git.grimmauld.de/Grimmauld/home-manager"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jovian": {
|
"jovian": {
|
||||||
|
|
18
flake.nix
18
flake.nix
|
@ -44,7 +44,8 @@
|
||||||
# https://github.com/nix-community/home-manager/issues/3415
|
# https://github.com/nix-community/home-manager/issues/3415
|
||||||
# https://github.com/nix-community/home-manager/pull/2548
|
# https://github.com/nix-community/home-manager/pull/2548
|
||||||
# url = "github:nix-community/home-manager";
|
# 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";
|
# url = "github:pasqui23/home-manager/nixos-late-start";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
};
|
};
|
||||||
|
@ -150,6 +151,21 @@
|
||||||
./modules
|
./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
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,8 @@ in
|
||||||
inherit username;
|
inherit username;
|
||||||
homeDirectory = "/home/${username}";
|
homeDirectory = "/home/${username}";
|
||||||
|
|
||||||
file.".ssh/id_ed25519_sk".source = ../../ssh/id_ed25519_sk;
|
# 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.pub".source = ../../ssh/id_ed25519_sk.pub;
|
||||||
file.".cups/lpoptions".text = "Default pdf\n";
|
file.".cups/lpoptions".text = "Default pdf\n";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
20
specific/grimm-nixos-server-2/configuration.nix
Normal file
20
specific/grimm-nixos-server-2/configuration.nix
Normal 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";
|
||||||
|
}
|
9
specific/grimm-nixos-server-2/hardware-configuration.nix
Normal file
9
specific/grimm-nixos-server-2/hardware-configuration.nix
Normal 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"; };
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in a new issue