Files
nixos-dotfiles/flake.nix
BalrajSinghGidda 5e0976eb67 Format all Nix files with nixpkgs-fmt
- Ran nixpkgs-fmt on all .nix files in the repository
- Ensures consistent code style across the project
- All changes are formatting-only, no functional changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-21 16:30:57 +05:30

44 lines
1.4 KiB
Nix

{
description = "NixOS on Dell Latitude 7490";
# Flake inputs - dependencies for this configuration
inputs = {
# NixOS unstable channel (bleeding edge)
nixpkgs.url = "nixpkgs/nixos-unstable";
# Home Manager for user-level configuration management
home-manager = {
url = "github:nix-community/home-manager/master";
# Ensure Home Manager uses the same nixpkgs as system
inputs.nixpkgs.follows = "nixpkgs";
};
};
# Flake outputs - what this flake produces
outputs = { self, nixpkgs, home-manager, ... }: {
# System configuration for the "nixos-btw" host
nixosConfigurations.nixos-btw = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
modules = [
# Import host-specific configuration
./hosts/nixos-btw
# Enable Home Manager as a NixOS module
home-manager.nixosModules.home-manager
{
home-manager = {
# Use system-level pkgs for Home Manager
useGlobalPkgs = true;
# Install packages to /etc/profiles instead of ~/.nix-profile
useUserPackages = true;
# Import Home Manager configuration for user 'balraj'
users.balraj = import ./hosts/nixos-btw/home.nix;
# Backup existing files with .backup extension on conflicts
backupFileExtension = "backup";
};
}
];
};
};
}