Guest User

flake.nix

a guest
Jul 18th, 2024
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. {
  2. description = "Ava's NixOS configuration";
  3.  
  4. inputs = {
  5. /* ---------------- Official NixOS and HM Package Sources --------------- */
  6. nixpkgs.url = "github:NixOS/nixpkgs/release-24.05";
  7.  
  8. home-manager = {
  9. url = "github:nix-community/home-manager/release-24.05";
  10. inputs.nixpkgs.follows = "nixpkgs";
  11. };
  12.  
  13. /* ------------------------------ Utilities ----------------------------- */
  14. # Declarative KDE Plasma configuration
  15. plasma-manager = {
  16. url = "github:nix-community/plasma-manager";
  17. inputs.nixpkgs.follows = "nixpkgs";
  18. inputs.home-manager.follows = "home-manager";
  19. };
  20.  
  21. # System-wide colorscheming and typography
  22. stylix = {
  23. url = "github:danth/stylix";
  24. inputs.nixpkgs.follows = "nixpkgs";
  25. };
  26. };
  27.  
  28. outputs = { self, nixpkgs, home-manager, plasma-manager, stylix, ... } @ inputs:
  29. let
  30. inherit (self) outputs;
  31. inherit (nixpkgs) lib;
  32. configLib = import ./lib { inherit lib; };
  33. specialArgs = { inherit inputs outputs configLib nixpkgs; plasma-manager = inputs.plasma-manager; };
  34.  
  35. system = "x86_64-linux";
  36. in
  37. {
  38. packages.${system} = (
  39. let pkgs = nixpkgs.legacyPackages.${system};
  40. in import ./pkgs { inherit pkgs; }
  41. );
  42.  
  43. nixosConfigurations = {
  44. # Desktop
  45. baron = nixpkgs.lib.nixosSystem {
  46. inherit specialArgs;
  47. system = "x86_64-linux";
  48. modules = [
  49. home-manager.nixosModules.home-manager {
  50. home-manager.extraSpecialArgs = specialArgs;
  51. }
  52. inputs.stylix.nixosModules.stylix
  53. ./hosts/baron
  54. ];
  55. };
  56. };
  57. };
  58. }
Add Comment
Please, Sign In to add comment