Advertisement
PROPESSOR

Latest Error Free Flake.Nix

Jun 13th, 2025
583
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.74 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.     #nur.url = "github:nix-community/NUR";
  13.     #nur.inputs.nixpkgs.follows = "nixpkgs";
  14.   };
  15.  
  16.       outputs = { self, nixpkgs, flake-utils, home-manager, hyprland, ... }:
  17.     let
  18.       system = "x86_64-linux";
  19.       pkgs = import nixpkgs {
  20.         inherit system;
  21.         config.allowUnfree = true;
  22.       };
  23.     in {
  24.       # System (NixOS) configuration
  25.       nixosConfigurations = {
  26.         veagle = nixpkgs.lib.nixosSystem {
  27.           inherit system;
  28.           modules = [
  29.             ./hosts/veagle/configuration.nix
  30.             home-manager.nixosModules.home-manager
  31.             {
  32.               home-manager.useUserPackages = true;
  33.               home-manager.useGlobalPkgs = true;
  34.               home-manager.users.veagle = import ./hosts/veagle/home.nix;
  35.             }
  36.           ];
  37.         };
  38.       };
  39.  
  40.       # Optional: separate home-only rebuild if you want it
  41.       homeConfigurations.veagle = home-manager.lib.homeManagerConfiguration {
  42.         inherit pkgs;
  43.         #extraSpecialArgs = {
  44.         # inherit inputs;
  45.         # nur = nur;
  46.         #};
  47.         modules = [
  48.           ./hosts/veagle/home.nix
  49.           hyprland.homeManagerModules.default
  50.           {
  51.             home.username = "veagle";
  52.             home.homeDirectory = "/home/veagle";
  53.           }
  54.         ];
  55.       };
  56.     };
  57. }
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement