add flake example
This commit is contained in:
parent
fe7bad7dec
commit
164fade4c4
1 changed files with 35 additions and 0 deletions
35
README.md
35
README.md
|
|
@ -44,3 +44,38 @@ Many of the extra settings can be added to or overridden.
|
||||||
# not recommended for a global config for obvious reasons.
|
# not recommended for a global config for obvious reasons.
|
||||||
nixowos.cli.yt-dlp.extraConfig = "--extract-audio";
|
nixowos.cli.yt-dlp.extraConfig = "--extract-audio";
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Example flake
|
||||||
|
|
||||||
|
```nix
|
||||||
|
{
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
|
nixowos = {
|
||||||
|
url = "git+https://codeberg.org/electria/nixowos";
|
||||||
|
flake = false;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
outputs =
|
||||||
|
{ nixpkgs, nixowos, ... }:
|
||||||
|
{
|
||||||
|
# NOTE: 'nixos' is the default hostname
|
||||||
|
nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
|
||||||
|
modules = [
|
||||||
|
./configuration.nix
|
||||||
|
./hardware-configuration.nix
|
||||||
|
|
||||||
|
"${nixowos}/default.nix"
|
||||||
|
{
|
||||||
|
nixowos.enable = true;
|
||||||
|
nixowos.graphical.enable = true;
|
||||||
|
nixowos.graphical.games.enable = true;
|
||||||
|
nixowos.graphical.plasma.startOnFirstTTY = true;
|
||||||
|
nixowos.graphical.jp.enable = true;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue