mirror of
https://codeberg.org/muon/home.git
synced 2025-12-05 23:57:46 +00:00
Add colmena
This commit is contained in:
parent
66e189b476
commit
2f228d3ed0
4 changed files with 32 additions and 4 deletions
22
flake.nix
22
flake.nix
|
|
@ -39,5 +39,27 @@
|
|||
};
|
||||
|
||||
homeManagerModules.default = ./modules/home;
|
||||
|
||||
colmena = {
|
||||
meta = {
|
||||
nixpkgs = import inputs.nixpkgs { inherit system; };
|
||||
|
||||
specialArgs = { inherit nixpkgs inputs system; };
|
||||
};
|
||||
|
||||
# Remote host name
|
||||
"mups" = { name, nodes, ... }: {
|
||||
deployment.targetHost = "muon.host"; # SSH IP
|
||||
deployment.targetUser = "root"; # SSH username
|
||||
|
||||
# modules
|
||||
imports = [
|
||||
./hosts/mups/configuration.nix
|
||||
./modules/nixos
|
||||
inputs.home-manager.nixosModules.default
|
||||
inputs.stylix.nixosModules.stylix
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,6 @@ in {
|
|||
# Hardware
|
||||
imports = [ ./hardware-configuration.nix ];
|
||||
|
||||
environment.systemPackages = with inputs.nix-alien.packages.${system};
|
||||
[ nix-alien ];
|
||||
|
||||
# System
|
||||
mods.user.name = "muon";
|
||||
networking.hostName = "muho";
|
||||
|
|
|
|||
|
|
@ -28,6 +28,11 @@ in with lib; {
|
|||
networking.networkmanager.enable = true;
|
||||
services.resolved.enable = true;
|
||||
|
||||
# udev 250 doesn't reliably reinitialize devices after restart
|
||||
systemd.services.systemd-udevd.restartIfChanged = false;
|
||||
systemd.services.NetworkManager-wait-online.enable = lib.mkForce false;
|
||||
systemd.services.systemd-networkd-wait-online.enable = lib.mkForce false;
|
||||
|
||||
services.tailscale.enable = cfg.tailscale.enable;
|
||||
|
||||
services.openvpn.servers = mkIf cfg.openvpn.enable {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, config, ... }: {
|
||||
{ pkgs, lib, config, inputs, system, ... }: {
|
||||
programs.nh = {
|
||||
enable = true;
|
||||
clean.enable = true;
|
||||
|
|
@ -22,5 +22,9 @@
|
|||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
inputs.nix-alien.packages.${system}.nix-alien
|
||||
colmena
|
||||
];
|
||||
programs.nix-ld.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue