Iwakura/flake.nix

69 lines
2.0 KiB
Nix
Raw Normal View History

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)
2021-05-05 19:59:48 -04:00
# sane nameservers because aussie gov blocks everything
(import ./modules/nameservers)
2021-04-27 18:47:09 -04:00
# 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)
2021-04-27 18:47:09 -04:00
];
2021-05-03 04:36:27 -04:00
nix.registry.nixpkgs.flake = nixpkgs;
2021-04-27 18:47:09 -04:00
imports = [
./users/root
./users/thorn
];
})
];
};
};
}