WIP colmena stuff

This commit is contained in:
Daniel Flanagan 2023-09-04 12:32:53 -05:00
parent c47019b66c
commit 193a4a2546
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 7 additions and 22 deletions

View file

@ -36,7 +36,7 @@
}; };
}; };
outputs = inputs: { outputs = { self, ... }@inputs: {
diskoConfigurations = { diskoConfigurations = {
encryptedUefiBtrfs = import ./machines/thinker-disks.nix; encryptedUefiBtrfs = import ./machines/thinker-disks.nix;
normalUefiBtrfs = import ./machines/musicbox-disks.nix; normalUefiBtrfs = import ./machines/musicbox-disks.nix;
@ -118,27 +118,12 @@
system = "x86_64-linux"; system = "x86_64-linux";
}; };
}; };
musicbot = inputs.nixpkgs.lib.nixosSystem { beefcake = inputs.nixpkgs.lib.nixosSystem {
deployment = { deployment = {
targetHost = "musicbox"; targetHost = "beefcake";
targetPort = 1234; targetUser = "daniel";
targetUser = "nixos";
}; };
system = "x86_64-linux"; modules = [ self.nixosConfigurations.beefcake ];
specialArgs = { inherit inputs; };
modules =
[
inputs.disko.nixosModules.disko
./machines/musicbox-disks.nix
{ _module.args.disks = [ "/dev/sda" ]; }
./machines/musicbox.nix
inputs.home-manager.nixosModules.home-manager
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.daniel = import ./daniel.nix;
}
];
}; };
}; };
}; };

View file

@ -51,7 +51,7 @@ sudo nix-shell --packages git --run "
--extra-experimental-features nix-command \ --extra-experimental-features nix-command \
--extra-experimental-features flakes \ --extra-experimental-features flakes \
github:nix-community/disko -- \ github:nix-community/disko -- \
--flake 'git+https://git.lyte.dev/lytedev/dotfiles?ref=main&dir=/os/linux/nix#diskoConfigOfChoice' \ --flake 'git+https://git.lyte.dev/lytedev/nix#diskoConfigOfChoice' \
--mode disko \ --mode disko \
--arg disks '[ \"/dev/your_disk\" ]' --arg disks '[ \"/dev/your_disk\" ]'
" "
@ -63,7 +63,7 @@ And finally install NixOS as specified by this flake:
nix-shell --packages git \ nix-shell --packages git \
--run " --run "
sudo nixos-install \ sudo nixos-install \
--flake 'git+https://git.lyte.dev/lytedev/dotfiles?ref=main&dir=/os/linux/nix#yourNixosConfig' --flake 'git+https://git.lyte.dev/lytedev/nix#yourNixosConfig'
" "
``` ```