seeing if it's easier to fork tA's nixos laptop config rather than make one from scratch (more or less).
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
1.9KB

  1. {
  2. description = "Iwakura System Flake";
  3. inputs = {
  4. nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
  5. nixos-hardware.url = "github:NixOS/nixos-hardware";
  6. home-manager.url = "github:nix-community/home-manager/release-20.09";
  7. swatch = {
  8. url = "github:techieAgnostic/swatch";
  9. inputs.nixpkgs.follows = "nixpkgs";
  10. };
  11. vim = {
  12. url = "github:techieAgnostic/vim";
  13. inputs.nixpkgs.follows = "nixpkgs";
  14. };
  15. };
  16. outputs = { self, nixpkgs, home-manager, nixos-hardware, swatch, vim, ...}: {
  17. nixosConfigurations.iwakura = nixpkgs.lib.nixosSystem {
  18. system = "x86_64-linux";
  19. modules = [
  20. # enable flakes or we'll be sad
  21. (import ./modules/flakes)
  22. # enable sane garbage collection options
  23. (import ./modules/gc)
  24. # enabling window-manager
  25. (import ./modules/bspwm)
  26. # disk partitions and such (plus more that needs to be taken out)
  27. (import ./hardware/iwakura)
  28. # community settings for this laptop
  29. nixos-hardware.nixosModules.lenovo-thinkpad-t420
  30. nixos-hardware.nixosModules.common-pc-laptop-ssd
  31. # import home manager profiles and set to use same nixpkgs
  32. home-manager.nixosModules.home-manager {
  33. home-manager = {
  34. useGlobalPkgs = true;
  35. useUserPackages = true;
  36. users = {
  37. root = import ./users/root/home.nix;
  38. thorn = import ./users/thorn/home.nix;
  39. };
  40. };
  41. }
  42. # import nix config user profiles + misc
  43. ({ pkgs, ... }: {
  44. nixpkgs.overlays = [
  45. swatch.overlay
  46. vim.overlay
  47. (import ./overlays/picom.nix)
  48. ];
  49. nix.registry.nixpkgs.flake = nixpkgs;
  50. imports = [
  51. ./users/root
  52. ./users/thorn
  53. ];
  54. })
  55. ];
  56. };
  57. };
  58. }