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 = {
encryptedUefiBtrfs = import ./machines/thinker-disks.nix;
normalUefiBtrfs = import ./machines/musicbox-disks.nix;
@ -118,27 +118,12 @@
system = "x86_64-linux";
};
};
musicbot = inputs.nixpkgs.lib.nixosSystem {
beefcake = inputs.nixpkgs.lib.nixosSystem {
deployment = {
targetHost = "musicbox";
targetPort = 1234;
targetUser = "nixos";
targetHost = "beefcake";
targetUser = "daniel";
};
system = "x86_64-linux";
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;
}
];
modules = [ self.nixosConfigurations.beefcake ];
};
};
};

View file

@ -51,7 +51,7 @@ sudo nix-shell --packages git --run "
--extra-experimental-features nix-command \
--extra-experimental-features flakes \
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 \
--arg disks '[ \"/dev/your_disk\" ]'
"
@ -63,7 +63,7 @@ And finally install NixOS as specified by this flake:
nix-shell --packages git \
--run "
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'
"
```