2021-04-27 18:47:09 -04:00
|
|
|
{
|
|
|
|
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
|
2021-05-03 03:25:13 -04:00
|
|
|
(import ./overlays/picom.nix)
|
2021-04-27 18:47:09 -04:00
|
|
|
];
|
|
|
|
imports = [
|
|
|
|
./users/root
|
|
|
|
./users/thorn
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|