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.

64 lines
2.1 KiB

3 years ago
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. flake-utils.url = "github:numtide/flake-utils";
  8. home-manager.url = "github:nix-community/home-manager";
  9. home-manager.inputs.nixpkgs.follows = "nixpkgs";
  10. emacs-overlay.url = "github:nix-community/emacs-overlay";
  11. nixos-hardware.url = "github:nixos/nixos-hardware";
  12. };
  13. outputs = inputs @ { self, nixpkgs, nixpkgs-unstable, ... }: {
  14. nixosConfigurations = {
  15. nixos = nixpkgs.lib.nixosSystem {
  16. system = "x86_64-linux";
  17. specialArgs = { inherit inputs; };
  18. modules = [
  19. ./hosts/nixos
  20. ./modules/x11.nix
  21. ./modules/ssh.nix
  22. ./modules/hugo.nix
  23. ./modules/godot.nix
  24. ./modules/flakes.nix
  25. ./modules/cachix.nix
  26. ./modules/firefox.nix
  27. inputs.home-manager.nixosModules.home-manager {
  28. home-manager.useGlobalPkgs = true;
  29. home-manager.useUserPackages = true;
  30. home-manager.users.chris = {
  31. imports = [
  32. ./modules/git.nix
  33. ./modules/gpg.nix
  34. ./modules/vim.nix
  35. ./modules/gtk.nix
  36. ./modules/emacs.nix
  37. ];
  38. };
  39. }
  40. ];
  41. };
  42. };
  43. } //
  44. inputs.flake-utils.lib.eachDefaultSystem (system:
  45. let
  46. pkgs = inputs.nixpkgs.legacyPackages.${system};
  47. in
  48. rec {
  49. devShells = {
  50. default = import ./shell.nix { inherit pkgs; };
  51. cc = import ./shells/cc.nix { inherit pkgs; };
  52. go = import ./shells/go.nix { inherit pkgs; };
  53. dart = import ./shells/dart.nix { inherit pkgs; };
  54. grpc = import ./shells/grpc.nix { inherit pkgs; };
  55. java = import ./shells/java.nix { inherit pkgs; };
  56. node = import ./shells/node.nix { inherit pkgs; };
  57. python = import ./shells/python.nix { inherit pkgs; };
  58. rust = import ./shells/rust.nix { inherit pkgs; };
  59. };
  60. }
  61. );
  62. }