Nyx-Tools/other/example/example-configuration.nix
Peritia 7e5f29cf9f Version 1.1.0
Added:
- TUI
- A few comments
2025-08-11 14:12:14 +02:00

40 lines
1.2 KiB
Nix

{ config, pkgs, host, lib, inputs, userconf, ... }:
let
username = "YOUR_USER";
nixDirectory = "/home/${username}/NixOS";
in {
################################################################
# Module Imports
################################################################
imports = [
# Home Manager integration
inputs.home-manager.nixosModules.home-manager
];
################################################################
# Home Manager Configuration
################################################################
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "delme-HMbackup";
# Please use this backup File Extension to ensure that the bug won't cause any problems
# nyx-rebuild deletes the backups on each rebuild before rebuilding
# HM Bug: https://discourse.nixos.org/t/nixos-rebuild-fails-on-backup-up-config-file-by-home-manager/45992
users.${username} = import ./home.nix;
extraSpecialArgs = {
inherit inputs nixDirectory username;
};
};
################################################################
# System Version
################################################################
system.stateVersion = "25.05";
# ... Add more
}