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.

129 lines
3.9 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/ssh.nix
  23. ./modules/flakes.nix
  24. ./modules/cachix.nix
  25. inputs.home-manager.nixosModules.home-manager {
  26. home-manager.useGlobalPkgs = true;
  27. home-manager.useUserPackages = true;
  28. home-manager.users.chris = {
  29. imports = [
  30. ./modules/git.nix
  31. ./modules/gpg.nix
  32. ./modules/vim.nix
  33. ./modules/gtk.nix
  34. ./modules/emacs.nix
  35. ];
  36. };
  37. }
  38. ];
  39. };
  40. acernitro = nixpkgs.lib.nixosSystem {
  41. system = "x86_64-linux";
  42. specialArgs = { inherit inputs; };
  43. modules = [
  44. ./hosts/acernitro
  45. ./modules/x11.nix
  46. ./modules/ssh.nix
  47. ./modules/flakes.nix
  48. ./modules/cachix.nix
  49. ./modules/nvidia.nix
  50. ./modules/firefox.nix
  51. ./modules/moonlight.nix
  52. ./modules/teamviewer.nix
  53. inputs.home-manager.nixosModules.home-manager {
  54. home-manager.useGlobalPkgs = true;
  55. home-manager.useUserPackages = true;
  56. home-manager.users.chris = {
  57. imports = [
  58. ./modules/git.nix
  59. ./modules/gpg.nix
  60. ./modules/vim.nix
  61. ./modules/gtk.nix
  62. ./modules/emacs.nix
  63. ];
  64. };
  65. }
  66. ];
  67. };
  68. raspberry = nixpkgs.lib.nixosSystem {
  69. system = "aarch64-linux";
  70. specialArgs = { inherit inputs; };
  71. modules = [
  72. ./hosts/raspberry
  73. ./modules/x11.nix
  74. ./modules/ssh.nix
  75. ./modules/flakes.nix
  76. ./modules/cachix.nix
  77. inputs.home-manager.nixosModules.home-manager {
  78. home-manager.useGlobalPkgs = true;
  79. home-manager.useUserPackages = true;
  80. home-manager.users.chris = {
  81. imports = [
  82. ./modules/git.nix
  83. ./modules/gpg.nix
  84. ./modules/vim.nix
  85. ./modules/gtk.nix
  86. ./modules/emacs.nix
  87. ];
  88. };
  89. }
  90. ];
  91. };
  92. homecloud = nixpkgs.lib.nixosSystem {
  93. system = "aarch64-linux";
  94. specialArgs = { inherit inputs; };
  95. modules = [
  96. ./hosts/homecloud
  97. ./modules/ssh.nix
  98. ./modules/flakes.nix
  99. ./modules/cachix.nix
  100. ];
  101. };
  102. zero-one = nixpkgs.lib.nixosSystem {
  103. system = "armv7l-linux";
  104. specialArgs = { inherit inputs; };
  105. modules = [
  106. ./hosts/zero-one
  107. ./modules/ssh.nix
  108. ./modules/flakes.nix
  109. ./modules/cachix.nix
  110. ];
  111. };
  112. zero-two = nixpkgs.lib.nixosSystem {
  113. system = "armv7l-linux";
  114. specialArgs = { inherit inputs; };
  115. modules = [
  116. ./hosts/zero-two
  117. ./modules/ssh.nix
  118. ./modules/flakes.nix
  119. ./modules/cachix.nix
  120. ];
  121. };
  122. android = (inputs.nix-on-droid.lib.aarch64-linux.nix-on-droid {
  123. config = ./hosts/android/nix-on-droid.nix;
  124. }).activationPackage;
  125. };
  126. };
  127. }