| 20 Nov 2022 |
Chinchilla Washington | In reply to @zhaofeng:zhaofeng.li Chinchilla Washington: What does the config look like? flake.nix
{
description = "the simplest flake for nixos-rebuild";
inputs = {
nixpkgs = {
# Using the nixos-unstable branch specifically, which is the
# closest you can get to following the channel with flakes.
url = "github:NixOS/nixpkgs/nixos-22.05";
};
# inputs.emacs-overlay.url = "github:nix-community/emacs-overlay";
# inputs.coricamu.url = "github:danth/coricamu";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
zero = {
url = "git+file:/home/cw/0x00";
# url = "git+https://gitea.kernelpanic.cafe/cw/0x00";
flake = false;
};
nix-doom-emacs = {
url = "github:nix-community/nix-doom-emacs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "unstable";
};
# alfis.url = "github:Revertron/Alfis";
sops-nix.url = "github:Mic92/sops-nix";
stylix.url = "github:danth/stylix";
deploy-rs.url = "github:serokell/deploy-rs";
};
# Outputs can be anything, but the wiki + some commands define their own
# specific keys. Wiki page: https://nixos.wiki/wiki/Flakes#Output_schema
outputs = {
self,
nixpkgs,
unstable,
home-manager,
stylix,
nix-doom-emacs,
# alfis,
sops-nix,
# colmena,
...
} @inputs: {
# packages."x86_64-linux".powerbook = "powerbook";
nixosConfigurations = {
powerbook = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
# Import our old system configuration.nix
modules = [
./hosts/powerbook.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
sops-nix.nixosModules.sops
];
};
telescreen = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
# Import our old system configuration.nix
modules = [
./hosts/telescreen.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
];
};
};
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
powerbook = {
deployment = {
allowLocalDeployment = true;
targetHost = null;
};
};
telescreen = {
deployment = {
allowLocalDeployment = true;
targetHost = "10.200.1.35";
};
};
# boot.loader.grub.device = "/dev/disk/by-uuid/4864-3681";
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/cbc949e8-303e-405a-97e1-6fcf7df3fdea";
# fsType = "ext4";
# };
};
};
}
| 05:38:47 |
Chinchilla Washington | (I'm trying to deploy on telescreen, but powerbook and deploy-local was used as a sanity check and it reports the same two errors) | 05:39:17 |
Chinchilla Washington | Relevant part of telescreen.nix:
{ pkgs, config, lib, unstable, zero, alfis, sops, ... }:
{
imports = [
../hardware/telescreen.nix
../hardware/wifi.nix
"${zero}/profiles/syncthing.nix"
];
| 05:40:23 |
Zhaofeng Li | In reply to @cw:kernelpanic.cafe
flake.nix
{
description = "the simplest flake for nixos-rebuild";
inputs = {
nixpkgs = {
# Using the nixos-unstable branch specifically, which is the
# closest you can get to following the channel with flakes.
url = "github:NixOS/nixpkgs/nixos-22.05";
};
# inputs.emacs-overlay.url = "github:nix-community/emacs-overlay";
# inputs.coricamu.url = "github:danth/coricamu";
unstable.url = "github:nixos/nixpkgs/nixos-unstable";
zero = {
url = "git+file:/home/cw/0x00";
# url = "git+https://gitea.kernelpanic.cafe/cw/0x00";
flake = false;
};
nix-doom-emacs = {
url = "github:nix-community/nix-doom-emacs";
};
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "unstable";
};
# alfis.url = "github:Revertron/Alfis";
sops-nix.url = "github:Mic92/sops-nix";
stylix.url = "github:danth/stylix";
deploy-rs.url = "github:serokell/deploy-rs";
};
# Outputs can be anything, but the wiki + some commands define their own
# specific keys. Wiki page: https://nixos.wiki/wiki/Flakes#Output_schema
outputs = {
self,
nixpkgs,
unstable,
home-manager,
stylix,
nix-doom-emacs,
# alfis,
sops-nix,
# colmena,
...
} @inputs: {
# packages."x86_64-linux".powerbook = "powerbook";
nixosConfigurations = {
powerbook = unstable.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
# Import our old system configuration.nix
modules = [
./hosts/powerbook.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
sops-nix.nixosModules.sops
];
};
telescreen = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = inputs;
# Import our old system configuration.nix
modules = [
./hosts/telescreen.nix
home-manager.nixosModules.home-manager
stylix.nixosModules.stylix
];
};
};
colmena = {
meta = {
nixpkgs = import nixpkgs {
system = "x86_64-linux";
overlays = [];
};
};
powerbook = {
deployment = {
allowLocalDeployment = true;
targetHost = null;
};
};
telescreen = {
deployment = {
allowLocalDeployment = true;
targetHost = "10.200.1.35";
};
};
# boot.loader.grub.device = "/dev/disk/by-uuid/4864-3681";
# fileSystems."/" = {
# device = "/dev/disk/by-uuid/cbc949e8-303e-405a-97e1-6fcf7df3fdea";
# fsType = "ext4";
# };
};
};
}
Colmena itself doesn't use nixosSystems and you need to define the system configurations in outputs.colmena.<name> | 05:40:42 |
Chinchilla Washington | In reply to @zhaofeng:zhaofeng.li Colmena itself doesn't use nixosSystems and you need to define the system configurations in outputs.colmena.<name> lines 82-84 | 05:41:15 |
Chinchilla Washington | In reply to @zhaofeng:zhaofeng.li Colmena itself doesn't use nixosSystems and you need to define the system configurations in outputs.colmena.<name> * lines 82-87 | 05:41:25 |
Chinchilla Washington | (deleted extraneous allowLocalDeployment) | 05:42:18 |
Zhaofeng Li | It may be from the other two nodes | 05:42:24 |
Zhaofeng Li | * It may be from the other node | 05:42:41 |
Chinchilla Washington | Neither node works individually, if the other is deleted | 05:43:45 |
Chinchilla Washington | powerbook works just fine when I run sudo nixos-rebuild switch --flake .#powerbook but I get ^ error on colmena apply-local --node powerbook --sudo | 05:44:33 |