This repository has been archived on 2024-04-14. You can view files and clone it, but cannot push or open issues or pull requests.
nixos-dotfiles/flake.nix

69 lines
2.2 KiB
Nix
Raw Normal View History

2022-08-07 15:46:46 +01:00
{
description = "My personal dotfiles";
inputs = {
2022-08-21 01:18:19 +01:00
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
2023-05-25 15:44:15 +01:00
home-manager.url = "github:nix-community/home-manager";
hyprland.url = "github:hyprwm/hyprland";
hyprland-contrib.url = "github:hyprwm/contrib";
hyprpicker.url = "github:hyprwm/hyprpicker";
chaotic-nyx.url = "github:chaotic-cx/nyx";
arrpc = { url = "github:notashelf/arrpc-flake"; inputs.nixpkgs.follows = "nixpkgs"; };
xorg-git = { url = "gitlab:xorg/xserver?host=gitlab.freedesktop.org"; flake = false; };
grub2-themes = { url = "github:vinceliuice/grub2-themes"; inputs.nixpkgs.follows = "nixpkgs"; };
openmw-git = { url = "gitlab:OpenMW/openmw"; flake = false; };
waybar = { url = "github:alexays/waybar"; flake = false; };
gruvbox-kvantum = { url = "github:thefallnn/Gruvbox-Kvantum"; flake = false; };
catppuccin-hyprland = { url = "github:catppuccin/hyprland"; flake = false; };
2022-08-21 01:18:19 +01:00
};
2022-08-14 21:20:39 +01:00
2023-05-20 18:42:57 +01:00
outputs = { self, nixpkgs, home-manager, ... }@inputs:
2022-08-07 15:46:46 +01:00
let
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
};
overlays = [
self.overlays.default
2023-05-25 15:44:15 +01:00
inputs.chaotic-nyx.overlays.default
inputs.hyprland.overlays.default
inputs.hyprland-contrib.overlays.default
inputs.hyprpicker.overlays.default
];
};
in
{
2023-05-25 15:44:15 +01:00
overlays = (import ./overlay.nix { inherit inputs; });
nixosConfigurations.terra = nixpkgs.lib.nixosSystem
{
inherit system;
inherit pkgs;
specialArgs = { inherit inputs; };
modules = [
2023-02-26 00:49:03 +00:00
{
2023-05-25 15:44:15 +01:00
# needed to get tools working that expect a nixpkgs channel to exist
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
nix.registry = { nixpkgs.flake = nixpkgs; };
}
2023-05-25 15:44:15 +01:00
./configuration.nix
2023-05-25 22:47:29 +01:00
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
users.manuel = import ./user/home.nix;
extraSpecialArgs = { inherit inputs pkgs; };
};
}
inputs.chaotic-nyx.nixosModules.default
2023-05-25 22:47:29 +01:00
inputs.grub2-themes.nixosModules.default
];
2022-08-07 15:46:46 +01:00
};
};
2022-08-07 15:46:46 +01:00
}
2023-02-26 00:49:03 +00:00