Advertisement
Guest User

Untitled

a guest
Feb 24th, 2025
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.88 KB | None | 0 0
  1. {
  2. description = "My flake";
  3.  
  4. inputs = {
  5.  
  6. home-manager = {
  7. url = "github:nix-community/home-manager";
  8. inputs.nixpkgs.follows = "nixpkgs";
  9. };
  10. hm-inputs.url = "/home/spiderunderurbed/home-manager";
  11. nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  12. stable.url = "github:NixOS/nixpkgs/nixos-24.11";
  13.  
  14. auto-cpufreq = {
  15. url = "github:AdnanHodzic/auto-cpufreq";
  16. inputs.nixpkgs.follows = "nixpkgs";
  17. };
  18. envycontrol.url = "github:bayasdev/envycontrol";
  19. lanzaboote = {
  20. url = "github:nix-community/lanzaboote/v0.3.0";
  21. };
  22. flake-compat = {
  23. url = "github:edolstra/flake-compat";
  24. flake = false;
  25. };
  26.  
  27. nix-software-center.url = "github:snowfallorg/nix-software-center";
  28. arion = {
  29. url = "github:hercules-ci/arion";
  30. inputs.nixpkgs.follows = "nixpkgs";
  31. };
  32.  
  33. nix-flatpak.url = "github:gmodena/nix-flatpak";
  34.  
  35. };
  36.  
  37. outputs = {
  38. self,
  39. nixpkgs,
  40. auto-cpufreq,
  41. envycontrol,
  42. arion,
  43.  
  44. nix-flatpak,
  45.  
  46. nix-software-center,
  47. flake-compat,
  48. home-manager,
  49.  
  50. lanzaboote,
  51. hm-inputs,
  52. ...
  53. } @ inputs :
  54. let
  55. # home-setup = builtins.getFlake "/home/spiderunderurbed/home-manager";
  56. # extraSpecialArgs = hm-inputs.outputs.extraSpecialArgs;
  57. system = "x86_64-linux";
  58. pkgs = nixpkgs.legacyPackages.${system};
  59. lib = nixpkgs.lib;
  60. gitCredentialManager = import ./gcm.nix {
  61. # inherit pkgs;
  62. pkgs = pkgs;
  63. lib = pkgs.lib;
  64. stdenv = pkgs.stdenv;
  65. fetchFromGitHub = pkgs.fetchFromGitHub;
  66. dpkg = pkgs.dpkg;
  67. dotnet-sdk = pkgs.dotnet-sdk;
  68. buildDotnetModule = pkgs.buildDotnetModule;
  69. dotnetCorePackages = pkgs.dotnetCorePackages;
  70. xorg = pkgs.xorg;
  71. # libICE = pkgs.libICE;
  72. # libSM = pkgs.libSM;
  73. fontconfig = pkgs.fontconfig;
  74. libsecret = pkgs.libsecret;
  75. git = pkgs.git;
  76. git-credential-manager = pkgs.git-credential-manager;
  77. mkShell = pkgs.mkShell;
  78. };
  79. userConfig = import ./spiderunderurbed/hydenix/config.nix;
  80. #hm-lib = home-manager.lib;
  81. hm-modules = [
  82. hm-inputs.sublimation.homeManagerModules.sublimation
  83. hm-inputs.nixcord.homeManagerModules.nixcord
  84. ];
  85. extraSpecialArgs = {
  86. inherit userConfig gitCredentialManager hm-modules home-manager; inputs = hm-inputs;
  87. };
  88. in
  89. {
  90. nixosConfigurations.daspidercave = nixpkgs.lib.nixosSystem {
  91. inherit system;
  92.  
  93. specialArgs = { inherit inputs; } // extraSpecialArgs;
  94. modules = [
  95. lanzaboote.nixosModules.lanzaboote
  96. auto-cpufreq.nixosModules.default
  97. #home-setup.nixosConfigurations.spiderunderurbed
  98. # home-setup.homeConfigurations.spiderunderurbed
  99. ./vfio.nix
  100. ./configuration.nix
  101. ./boot.nix
  102.  
  103. ./registry.nix
  104. ./flatpak.nix
  105.  
  106. nix-flatpak.nixosModules.nix-flatpak
  107. home-manager.nixosModules.home-manager
  108. {
  109. home-manager.useGlobalPkgs = true;
  110. home-manager.useUserPackages = true;
  111. home-manager.sharedModules = [
  112. # hm-inputs.inputs.nixcord.homeManagerModules.nixcord
  113. ];
  114.  
  115. home-manager.users.spiderunderurbed = { pkgs, specialArgs, ... }: {
  116. inherit specialArgs;
  117. #inherit extraSpecialArgs;
  118. imports = [
  119. ./spiderunderurbed/home.nix
  120. #(import ./spiderunderurbed/home.nix {})
  121. ];
  122. };
  123. }
  124.  
  125. {
  126. # imports = [ home-setup.homeConfigurations ];
  127. imports = [
  128. # spider-config
  129. ];
  130. environment.systemPackages = with pkgs; [
  131. envycontrol.packages.${system}.default
  132. ];
  133.  
  134. }
  135. ];
  136. };
  137. };
  138. }
  139.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement