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.

79 lines
2.6 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/x11.nix
  22. ./modules/ssh.nix
  23. ./modules/hugo.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. modules.git = {
  41. enable = true;
  42. name = "Christopher James Hayward";
  43. email = "chris@chrishayward.xyz";
  44. key = "37AB1CB72B741E478CA026D43025DCBD46F81C0F";
  45. };
  46. modules.gpg.enable = true;
  47. modules.vim.enable = true;
  48. modules.gtk.enable = true;
  49. modules.emacs.enable = true;
  50. };
  51. }
  52. ];
  53. };
  54. };
  55. } //
  56. inputs.flake-utils.lib.eachDefaultSystem (system:
  57. let
  58. pkgs = inputs.nixpkgs.legacyPackages.${system};
  59. in
  60. rec {
  61. devShells = {
  62. default = import ./shell.nix { inherit pkgs; };
  63. cc = import ./shells/cc.nix { inherit pkgs; };
  64. go = import ./shells/go.nix { inherit pkgs; };
  65. dart = import ./shells/dart.nix { inherit pkgs; };
  66. grpc = import ./shells/grpc.nix { inherit pkgs; };
  67. java = import ./shells/java.nix { inherit pkgs; };
  68. node = import ./shells/node.nix { inherit pkgs; };
  69. python = import ./shells/python.nix { inherit pkgs; };
  70. rust = import ./shells/rust.nix { inherit pkgs; };
  71. };
  72. }
  73. );
  74. }