NixOS-95/example/default/configuration.nix
gytic c0bd1bd615 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
2025-08-24 09:26:57 +02:00

63 lines
1.3 KiB
Nix

{ 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;
}