dotfiles/flake.nix

84 lines
2 KiB
Nix
Raw Normal View History

2024-10-30 13:51:36 +10:00
{
description = "Emile's Nix Dotfiles";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-11-07 17:37:15 +10:00
2024-10-30 13:51:36 +10:00
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-07 17:37:15 +10:00
spicetify-nix = {
2024-10-30 23:25:57 +10:00
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-04 11:59:14 +10:00
2024-11-07 17:37:15 +10:00
#stylix.url = "github:danth/stylix";
nixcord = { url = "github:kaylorben/nixcord"; };
nixvim = {
url = "github:nix-community/nixvim";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-11-04 11:59:14 +10:00
2024-11-07 17:37:15 +10:00
grub2-themes = { url = "github:vinceliuice/grub2-themes"; };
2024-10-30 23:25:57 +10:00
2024-11-07 17:37:15 +10:00
# is this necessary? (aren't I enabling it in `configuration.nix` anyways?)
2024-10-30 13:51:36 +10:00
hyprland.url = "github:hyprwm/Hyprland";
2024-11-04 11:59:14 +10:00
2024-11-07 17:37:15 +10:00
swww.url = "github:LGFae/swww";
2024-10-30 13:51:36 +10:00
};
2024-11-07 17:37:15 +10:00
outputs = { self, nixpkgs, home-manager, hyprland, grub2-themes, nixvim
, nixcord,
#stylix,
... }@inputs:
2024-10-30 13:51:36 +10:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
2024-10-30 23:25:57 +10:00
config.allowUnfree = true;
2024-10-30 13:51:36 +10:00
};
# this is just something I'm experimenting with
PROJECT_ROOT = builtins.toString ./.;
in {
nixosConfigurations = {
# i be on my puter fr
myputer = nixpkgs.lib.nixosSystem {
2024-11-07 17:37:15 +10:00
# nix passes these to every single module above
specialArgs = { inherit inputs pkgs; };
2024-10-30 19:45:26 +10:00
2024-10-30 13:51:36 +10:00
modules = [
./hosts/myputer
2024-11-07 17:37:15 +10:00
grub2-themes.nixosModules.default
#stylix.nixosModules.stylix
2024-10-30 13:51:36 +10:00
];
};
# my laptop 0w0
2024-10-30 19:45:26 +10:00
lolcathost = nixpkgs.lib.nixosSystem {
2024-11-07 17:37:15 +10:00
specialArgs = { inherit inputs pkgs; };
2024-10-30 19:45:26 +10:00
2024-11-07 17:37:15 +10:00
modules = [ ./hosts/lolcathost ];
2024-10-30 19:45:26 +10:00
};
2024-10-30 13:51:36 +10:00
};
homeConfigurations = {
me = home-manager.lib.homeManagerConfiguration {
2024-11-07 17:37:15 +10:00
specialArgs = { inherit inputs; };
2024-10-30 13:51:36 +10:00
2024-11-07 17:37:15 +10:00
modules = [
2024-10-30 17:35:16 +10:00
./home/me
2024-11-07 17:37:15 +10:00
#nixcord.homeManagerModules.nixcord
#nixvim.homeManagerModules.nixvim
2024-10-30 13:51:36 +10:00
];
};
};
};
}