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.

66 lines
2.2 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/docker.nix
  25. ./modules/flakes.nix
  26. ./modules/cachix.nix
  27. ./modules/firefox.nix
  28. inputs.home-manager.nixosModules.home-manager {
  29. home-manager.useGlobalPkgs = true;
  30. home-manager.useUserPackages = true;
  31. home-manager.users.chris = {
  32. home.stateVersion = "23.05";
  33. imports = [
  34. ./modules/git.nix
  35. ./modules/gpg.nix
  36. ./modules/vim.nix
  37. ./modules/gtk.nix
  38. ./modules/emacs.nix
  39. ];
  40. };
  41. }
  42. ];
  43. };
  44. };
  45. } //
  46. inputs.flake-utils.lib.eachDefaultSystem (system:
  47. let
  48. pkgs = inputs.nixpkgs.legacyPackages.${system};
  49. in
  50. rec {
  51. devShells = {
  52. default = import ./shell.nix { inherit pkgs; };
  53. cc = import ./shells/cc.nix { inherit pkgs; };
  54. go = import ./shells/go.nix { inherit pkgs; };
  55. dart = import ./shells/dart.nix { inherit pkgs; };
  56. grpc = import ./shells/grpc.nix { inherit pkgs; };
  57. java = import ./shells/java.nix { inherit pkgs; };
  58. node = import ./shells/node.nix { inherit pkgs; };
  59. python = import ./shells/python.nix { inherit pkgs; };
  60. rust = import ./shells/rust.nix { inherit pkgs; };
  61. };
  62. }
  63. );
  64. }