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:
gytic 2025-08-24 09:23:13 +02:00
parent b1514b1c69
commit c0bd1bd615
7 changed files with 222 additions and 0 deletions

View file

@ -0,0 +1,63 @@
{ pkgs, ... }: {
system.stateVersion = "25.05";
nix.settings.experimental-features = [
"flakes" "nix-command" "pipe-operators"
];
nixos95 = {
enable = true;
user = "alice";
taskbar = {
homeIcon = "whisker-menu-button";
battery-plugin.enable = false;
applications = [
{
name = "Files";
description = "View and manage local files";
icon = "folder_open";
exe = "exo-open --launch FileManager";
}
{
name = "Firefox";
description = "Browse the Web";
pkg = pkgs.firefox;
icon = "world";
}
{
name = "Signal";
description = "Private Messenger";
pkg = pkgs.signal-desktop;
icon = "signal";
}
];
};
keybinds = {
commands = [
{ key="<Super>l"; exe="xflock4"; }
];
};
};
users.users.alice = {
isNormalUser = true;
initialPassword = "password";
home = "/home/alice";
createHome = true;
packages = [
pkgs.firefox
pkgs.neovim
pkgs.signal-desktop
];
};
networking.hostName = "nixos95";
networking.networkmanager.enable = true;
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
}