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.

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