{ description = "Iwakura System Flake"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixos-hardware.url = "github:NixOS/nixos-hardware"; home-manager.url = "github:nix-community/home-manager/release-20.09"; swatch = { url = "github:techieAgnostic/swatch"; inputs.nixpkgs.follows = "nixpkgs"; }; vim = { url = "github:techieAgnostic/vim"; inputs.nixpkgs.follows = "nixpkgs"; }; }; outputs = { self, nixpkgs, home-manager, nixos-hardware, swatch, vim, ...}: { nixosConfigurations.iwakura = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; modules = [ # enable flakes or we'll be sad (import ./modules/flakes) # enable sane garbage collection options (import ./modules/gc) # enabling window-manager (import ./modules/bspwm) # disk partitions and such (plus more that needs to be taken out) (import ./hardware/iwakura) # community settings for this laptop nixos-hardware.nixosModules.lenovo-thinkpad-t420 nixos-hardware.nixosModules.common-pc-laptop-ssd # import home manager profiles and set to use same nixpkgs home-manager.nixosModules.home-manager { home-manager = { useGlobalPkgs = true; useUserPackages = true; users = { root = import ./users/root/home.nix; thorn = import ./users/thorn/home.nix; }; }; } # import nix config user profiles + misc ({ pkgs, ... }: { nixpkgs.overlays = [ swatch.overlay vim.overlay (import ./overlays/picom.nix) ]; nix.registry.nixpkgs.flake = nixpkgs; imports = [ ./users/root ./users/thorn ]; }) ]; }; }; }