nixos-old/flake.nix

41 lines
1.2 KiB
Nix
Raw Normal View History

2023-02-28 09:33:29 +00:00
{
inputs = {
2023-06-02 11:35:41 +00:00
nixpkgs.url = "nixpkgs/nixos-23.05";
2023-08-14 10:38:13 +00:00
nixpkgs-unstable.url = "nixpkgs/nixos-unstable";
2023-07-08 14:01:56 +00:00
mozilla.url = "github:mozilla/nixpkgs-mozilla";
2023-03-24 16:46:51 +00:00
supercolor.url = "github:zoe-bat/supercolor";
kaokao.url = "github:zoe-bat/kaokao";
i3layouts-rofi.url = "github:zoe-bat/i3layouts-rofi";
2023-02-28 09:33:29 +00:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
};
2023-07-08 14:01:56 +00:00
outputs = { self, nixpkgs, home-manager, supercolor, i3layouts-rofi, kaokao
2023-08-14 10:38:13 +00:00
, mozilla, nixpkgs-unstable }@inputs:
let
system = "x86_64-linux";
overlay-unstable = final: prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
2023-03-26 13:37:29 +00:00
in {
2023-03-09 19:42:06 +00:00
nixosConfigurations.bat = nixpkgs.lib.nixosSystem {
2023-08-14 10:38:13 +00:00
inherit system;
2023-03-09 19:42:06 +00:00
modules = [
2023-08-14 10:38:13 +00:00
({ config, pkgs, ... }: {
nixpkgs.overlays = [ mozilla.overlays.rust overlay-unstable ];
})
2023-03-09 19:42:06 +00:00
./configuration.nix
];
specialArgs = inputs;
};
homeConfigurations."zoe@bat" = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
modules = [ ];
};
2023-02-28 09:33:29 +00:00
};
}