31 lines
674 B
Nix
31 lines
674 B
Nix
{ inputs, ... }:
|
|
let
|
|
name = "test-nix";
|
|
username = "john";
|
|
in
|
|
{
|
|
flake.modules.nixos."${name}" = { pkgs, lib, ...}: {
|
|
home-manager.users."${username}" = {
|
|
imports = [
|
|
inputs.self.homeModules."${username}"
|
|
];
|
|
};
|
|
|
|
users.users."${username}" = {
|
|
isNormalUser = true;
|
|
shell = pkgs.zsh;
|
|
};
|
|
|
|
programs.zsh.enable = true;
|
|
};
|
|
|
|
# Generic bootstrapping lxc, use a specific host file for more
|
|
flake.nixosConfigurations."${name}" = inputs.nixpkgs.lib.nixosSystem {
|
|
modules = [
|
|
inputs.home-manager.nixosModules.home-manager
|
|
inputs.self.modules.nixos.lxc
|
|
inputs.self.modules.nixos."${name}"
|
|
];
|
|
};
|
|
}
|