docs(example): add example configuration
added both a home-manager and 'minimal configuration'. They can be built and testet in this repo via: - nixos-generate-config --dir example/default # or example/home-manager - nix build path:./example/default#nixosConfigurations.default.config.system.build.toplevel # or path:./example/home-manager#... the flake.lock and hardeware-configuration is ignored to prevent accidental commitment of the hardware-configuration (and get the freshes packages when somebody might use these configs as templates
This commit is contained in:
parent
b1514b1c69
commit
c0bd1bd615
7 changed files with 222 additions and 0 deletions
24
flake.nix
24
flake.nix
|
|
@ -11,6 +11,30 @@
|
|||
|
||||
outputs = { self, nixpkgs, home-manager,... }: {
|
||||
nixosModules.default = import ./nixos95 { inherit home-manager; };
|
||||
|
||||
templates.default = {
|
||||
description = "Minimal Nixos-95 configuration";
|
||||
path = ./example/default;
|
||||
welcomeText = ''
|
||||
# Welcome to Nixos95
|
||||
|
||||
Please run `ǹixos-generate-config --dir .` to generate hardware configuration.
|
||||
|
||||
> You can now continue with Step 3 in the README.md
|
||||
'';
|
||||
};
|
||||
|
||||
templates.default = {
|
||||
description = "Minimal Nixos-95 configuration with home-manager";
|
||||
path = ./example/home-manager;
|
||||
welcomeText = ''
|
||||
# Welcome to Nixos95 (with home-manager)
|
||||
|
||||
Please run `nixos-generate-config --dir .` to generate harde configuration.
|
||||
|
||||
> You can now continue with Step 3 in the README.md
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue