I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
4.2 KiB

3 years ago
  1. # This file is controlled by /etc/dotfiles/README.org
  2. {
  3. description = "Immutable NixOS dotfiles.";
  4. inputs = {
  5. nixpkgs.url = "nixpkgs/nixos-unstable";
  6. nixpkgs-unstable.url = "nixpkgs/master";
  7. home-manager.url = "github:nix-community/home-manager";
  8. home-manager.inputs.nixpkgs.follows = "nixpkgs";
  9. emacs-overlay.url = "github:nix-community/emacs-overlay";
  10. nixos-hardware.url = "github:nixos/nixos-hardware";
  11. nix-on-droid.url = "github:t184256/nix-on-droid/master";
  12. nix-on-droid.inputs.nixpkgs.follows = "nixpkgs";
  13. };
  14. outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }: {
  15. nixosConfigurations = {
  16. nixos = nixpkgs.lib.nixosSystem {
  17. system = "x86_64-linux";
  18. specialArgs = { inherit inputs; };
  19. modules = [
  20. ./hosts/nixos
  21. ./modules/x11.nix
  22. ./modules/flakes.nix
  23. ./modules/cachix.nix
  24. inputs.home-manager.nixosModules.home-manager {
  25. home-manager.useGlobalPkgs = true;
  26. home-manager.useUserPackages = true;
  27. home-manager.users.chris = {
  28. imports = [
  29. ./modules/git.nix
  30. ./modules/gpg.nix
  31. ./modules/vim.nix
  32. ./modules/gtk.nix
  33. ./modules/emacs.nix
  34. ];
  35. };
  36. }
  37. ];
  38. };
  39. acernitro = nixpkgs.lib.nixosSystem {
  40. system = "x86_64-linux";
  41. specialArgs = { inherit inputs; };
  42. modules = [
  43. ./hosts/acernitro
  44. ./modules/x11.nix
  45. ./modules/flakes.nix
  46. ./modules/cachix.nix
  47. ./modules/nvidia.nix
  48. ./modules/firefox.nix
  49. ./modules/moonlight.nix
  50. ./modules/teamviewer.nix
  51. inputs.home-manager.nixosModules.home-manager {
  52. home-manager.useGlobalPkgs = true;
  53. home-manager.useUserPackages = true;
  54. home-manager.users.chris = {
  55. imports = [
  56. ./modules/git.nix
  57. ./modules/gpg.nix
  58. ./modules/vim.nix
  59. ./modules/gtk.nix
  60. ./modules/emacs.nix
  61. ];
  62. };
  63. }
  64. ];
  65. };
  66. raspberry = nixpkgs.lib.nixosSystem {
  67. system = "aarch64-linux";
  68. specialArgs = { inherit inputs; };
  69. modules = [
  70. ./hosts/raspberry
  71. ./modules/x11.nix
  72. ./modules/flakes.nix
  73. ./modules/cachix.nix
  74. inputs.home-manager.nixosModules.home-manager {
  75. home-manager.useGlobalPkgs = true;
  76. home-manager.useUserPackages = true;
  77. home-manager.users.chris = {
  78. imports = [
  79. ./modules/git.nix
  80. ./modules/gpg.nix
  81. ./modules/vim.nix
  82. ./modules/gtk.nix
  83. ./modules/emacs.nix
  84. ];
  85. };
  86. }
  87. # inputs.home-manager.nixosModules.home-manager {
  88. # home-manager.useGlobalPkgs = true;
  89. # home-manager.useUserPackages = true;
  90. # home-manager.users.chris = {
  91. # imports = [
  92. # ./modules/git.nix
  93. # ./modules/gpg.nix
  94. # ./modules/vim.nix
  95. # ./modules/gtk.nix
  96. # ];
  97. # };
  98. # }
  99. ];
  100. };
  101. homecloud = nixpkgs.lib.nixosSystem {
  102. system = "aarch64-linux";
  103. specialArgs = { inherit inputs; };
  104. modules = [
  105. ./hosts/homecloud
  106. ./modules/flakes.nix
  107. ./modules/cachix.nix
  108. ./modules/docker.nix
  109. ./modules/jellyfin.nix
  110. ];
  111. };
  112. zero-one = nixpkgs.lib.nixosSystem {
  113. system = "armv7l-linux";
  114. specialArgs = { inherit inputs; };
  115. modules = [
  116. ./hosts/zero-one
  117. ./modules/flakes.nix
  118. ./modules/cachix.nix
  119. ];
  120. };
  121. zero-two = nixpkgs.lib.nixosSystem {
  122. system = "armv7l-linux";
  123. specialArgs = { inherit inputs; };
  124. modules = [
  125. ./hosts/zero-one
  126. ./modules/flakes.nix
  127. ./modules/cachix.nix
  128. ];
  129. };
  130. android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid {
  131. config = ./hosts/android/nix-on-droid.nix;
  132. }).activationPackage;
  133. };
  134. };
  135. }