Advertisement
PROPESSOR

Error Free Flake.Nix

Jun 6th, 2025
13
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. {
  2. description = "My NixOS Configuration";
  3.  
  4. inputs = {
  5. nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  6. flake-utils.url = "github:numtide/flake-utils";
  7. nixos-hardware.url = "github:NixOS/nixos-hardware";
  8. home-manager.url = "github:nix-community/home-manager";
  9. home-manager.inputs.nixpkgs.follows = "nixpkgs";
  10. hyprland.url = "github:hyprwm/Hyprland";
  11. hyprland.inputs.nixpkgs.follows = "nixpkgs";
  12. };
  13.  
  14. outputs = { self, nixpkgs, flake-utils, home-manager, hyprland, ... }:
  15. let
  16. system = "x86_64-linux";
  17. pkgs = import nixpkgs {
  18. inherit system;
  19. config.allowUnfree = true;
  20. };
  21. in {
  22. # System (NixOS) configuration
  23. nixosConfigurations = {
  24. veagle = nixpkgs.lib.nixosSystem {
  25. inherit system;
  26. modules = [
  27. ./hosts/veagle/configuration.nix
  28. home-manager.nixosModules.home-manager
  29. {
  30. home-manager.useUserPackages = true;
  31. home-manager.useGlobalPkgs = true;
  32. home-manager.users.veagle = import ./hosts/veagle/home.nix;
  33. }
  34. ];
  35. };
  36. };
  37.  
  38. # Optional: separate home-only rebuild if you want it
  39. homeConfigurations.veagle = home-manager.lib.homeManagerConfiguration {
  40. inherit pkgs;
  41. modules = [
  42. ./hosts/veagle/home.nix
  43. hyprland.homeManagerModules.default
  44. {
  45. home.username = "veagle";
  46. home.homeDirectory = "/home/veagle";
  47. }
  48. ];
  49. };
  50. };
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement