seeing if it's easier to fork tA's nixos laptop config rather than make one from scratch (more or less).
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.8KB

  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. ];
  48. imports = [
  49. ./users/root
  50. ./users/thorn
  51. ];
  52. })
  53. ];
  54. };
  55. };
  56. }