You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

180 lines
4.7 KiB

6 months ago
{
description = "My personal dotfiles";
inputs = {
5 months ago
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
6 months ago
6 months ago
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
6 months ago
1 month ago
nix-colors = {
url = "github:Misterio77/nix-colors";
};
4 months ago
# Fish Plugins
bobthefish = {
url = "github:oh-my-fish/theme-bobthefish";
flake = false;
};
1 month ago
# Fish Plugins End
4 months ago
6 months ago
# Kakoune Plugins
6 months ago
kakoune-smarttab = {
url = "github:andreyorst/smarttab.kak";
flake = false;
};
5 months ago
kakoune-sort-selections = {
url = "github:occivink/kakoune-sort-selections";
6 months ago
flake = false;
};
6 months ago
# Kakoune Plugins End
6 months ago
rofi-theme = {
url = "github:bardisty/gruvbox-rofi";
flake = false;
};
6 months ago
1 month ago
wayland-protcols-git = {
url = "gitlab:wayland/wayland-protocols?host=gitlab.freedesktop.org";
flake = false;
};
5 months ago
xorg-git = {
2 months ago
url = "gitlab:xorg/xserver?host=gitlab.freedesktop.org";
5 months ago
flake = false;
};
mesa-git = {
url = "gitlab:mesa/mesa/mesa-22.3.2?host=gitlab.freedesktop.org";
5 months ago
flake = false;
};
grub2-themes = {
url = "github:vinceliuice/grub2-themes";
inputs.nixpkgs.follows = "nixpkgs";
};
3 months ago
hyprland = {
url = "github:hyprwm/hyprland";
inputs.nixpkgs.follows = "nixpkgs";
};
5 days ago
hyprland-contrib = {
url = "github:hyprwm/contrib";
inputs.nixpkgs.follows = "nixpkgs";
};
3 months ago
waybar = {
url = "github:alexays/waybar";
flake = false;
};
2 months ago
5 months ago
};
6 months ago
1 month ago
outputs = { self, nixpkgs, home-manager, nix-colors, ... }@inputs:
6 months ago
let
system = "x86_64-linux";
pkgs = import nixpkgs {
6 months ago
inherit system;
6 months ago
config = {
allowUnfree = true;
allowUnsupportedSystem = true;
};
5 days ago
overlays = [ self.overlays.default inputs.hyprland-contrib.overlays.default ];
6 months ago
};
in
{
4 months ago
overlays.default = final: prev: rec {
2 months ago
nerdfonts = prev.nerdfonts.override {
1 month ago
fonts = [ "JetBrainsMono" "IBMPlexMono" ];
2 months ago
};
5 months ago
waybar = prev.waybar.overrideAttrs (old: {
1 month ago
version = "git";
src = inputs.waybar;
1 month ago
preConfigure = ''
sed -i 's/zext_workspace_handle_v1_activate(workspace_handle_);/const std::string command = "hyprctl dispatch workspace " + name_;\n\tsystem(command.c_str());/g' src/modules/wlr/workspace_manager.cpp
3 months ago
'';
6 months ago
mesonFlags = old.mesonFlags ++ [ "-Dexperimental=true" ];
4 months ago
});
5 months ago
1 month ago
xwayland = prev.xwayland.overrideAttrs (old: {
version = "git";
src = inputs.xorg-git;
buildInputs = old.buildInputs ++ [
prev.udev
prev.xorg.libpciaccess
];
});
5 months ago
4 months ago
steam = prev.steam.override {
extraPkgs = pkgs: [
pkgs.gamescope
1 month ago
pkgs.gnome.zenity
4 months ago
pkgs.keyutils
1 month ago
pkgs.libkrb5
pkgs.mangohud
3 months ago
pkgs.mpg123
];
extraLibraries = pkgs: [
pkgs.mpg123
1 month ago
pkgs.zlib-ng
4 months ago
];
};
4 months ago
mesa-git = (prev.mesa.overrideAttrs (old: {
version = "git";
4 months ago
src = inputs.mesa-git;
buildInputs = old.buildInputs ++ [ pkgs.llvmPackages.libclang pkgs.glslang pkgs.vulkan-loader ];
4 months ago
patches = [
3 months ago
./pkgs/patches/mesa-git/opencl.patch
./pkgs/patches/mesa-git/disk_cache-include-dri-driver-path-in-cache-key.patch
4 months ago
];
4 months ago
mesonFlags = pkgs.lib.lists.remove
"-Dxvmc-libs-path=${placeholder "drivers"}/lib"
old.mesonFlags; # xvmc was removed upstream
4 months ago
})).override {
1 month ago
galliumDrivers = [ "radeonsi" "swrast" ];
4 months ago
vulkanDrivers = [ "amd" ];
enableGalliumNine = false; # Replaced by DXVK
};
customedid = pkgs.callPackage ./pkgs/custom-edid { };
wxedid = pkgs.callPackage ./pkgs/wxedid { };
4 months ago
};
3 months ago
nixosConfigurations.terra = nixpkgs.lib.nixosSystem {
4 months ago
inherit system;
inherit pkgs;
specialArgs = { inherit inputs; };
modules = [
{
1 month ago
# needed to get tools working that expect a nixpkgs channel to exist
4 months ago
nix.nixPath = [ "nixpkgs=${nixpkgs}" ];
nix.registry = { nixpkgs.flake = nixpkgs; };
}
./system/configuration.nix
home-manager.nixosModules.home-manager
{
home-manager = {
useUserPackages = true;
3 months ago
users.manuel = import ./user/home.nix;
1 month ago
extraSpecialArgs = { inherit inputs pkgs nix-colors; };
4 months ago
};
}
inputs.grub2-themes.nixosModule
];
};
6 months ago
};
}