Advertisement
Guest User

Untitled

a guest
Mar 27th, 2024
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. {
  2. description = "Nixos config flake";
  3.  
  4. inputs = {
  5.  
  6. nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
  7.  
  8. home-manager = {
  9. url = "github:nix-community/home-manager";
  10. inputs.nixpkgs.follows = "nixpkgs";
  11. };
  12.  
  13. hyprland = {
  14. url = "github:hyprwm/Hyprland";
  15. inputs.nixpkgs.follows = "nixpkgs";
  16. };
  17.  
  18. spicetify-nix = {
  19. url = "github:the-argus/spicetify-nix";
  20. inputs.nixpkgs.follows = "nixpkgs";
  21. };
  22.  
  23. };
  24.  
  25. outputs = { self, nixpkgs, home-manager, hyprland, ... }:
  26. let
  27. system = "x86_64-linux";
  28. pkgs = import nixpkgs {
  29. inherit system;
  30. config.allowUnfree = true;
  31. };
  32. lib = nixpkgs.lib;
  33.  
  34. in {
  35. nixosConfigurations = {
  36. zdyant = lib.nixosSystem rec {
  37. inherit system;
  38. specialArgs = {inherit self hyprland; };
  39. modules = [
  40. ./modules/nixos/configuration.nix
  41. hyprland.nixosModules.default
  42. home-manager.nixosModules.home-manager {
  43. home-manager.useGlobalPkgs = true;
  44. home-manager.useUserPackages = true;
  45. home-manager.users.zdyant = import ./modules/home/home.nix;
  46. home-manager.extraSpecialArgs = specialArgs;
  47. }
  48. ];
  49. };
  50. };
  51. };
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement