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.

189 lines
4.9 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
4 months ago
# Fish Plugins
bobthefish = {
url = "github:oh-my-fish/theme-bobthefish";
flake = false;
};
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
5 months ago
wlroots-git = {
2 months ago
url = "gitlab:wlroots/wlroots/1712a7d27444d62f8da8eeedf0840b386a810e96?host=gitlab.freedesktop.org";
5 months ago
flake = false;
};
sway-git = {
2 months ago
url = "github:swaywm/sway/5c239eaac59f327294aceac739c6fa035456ed14";
5 months ago
flake = false;
};
4 months ago
gamescope-git = {
url = "github:Plagman/gamescope";
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 = {
2 months ago
url = "gitlab:mesa/mesa?host=gitlab.freedesktop.org";
5 months ago
flake = false;
};
grub2-themes = {
url = "github:vinceliuice/grub2-themes";
inputs.nixpkgs.follows = "nixpkgs";
};
3 months ago
waybar = {
url = "github:alexays/waybar";
flake = false;
};
2 months ago
5 months ago
};
6 months ago
4 months ago
outputs = { self, nixpkgs, home-manager, ... }@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;
};
4 months ago
overlays = [ self.overlays.default ];
6 months ago
};
in
{
4 months ago
overlays.default = final: prev: rec {
2 months ago
nerdfonts = prev.nerdfonts.override {
fonts = [ "JetBrainsMono" ];
};
5 months ago
4 months ago
wlroots-git = prev.wlroots.overrideAttrs (old: {
2 months ago
version = "0.16.0";
5 months ago
src = inputs.wlroots-git;
3 months ago
nativeBuildInputs = old.nativeBuildInputs ++ [ pkgs.cmake pkgs.hwdata ];
postPatch = ''
substituteInPlace backend/drm/meson.build \
--replace "/usr/share/hwdata/pnp.ids" "${pkgs.hwdata}/share/hwdata/pnp.ids"
'';
6 months ago
});
4 months ago
sway-unwrapped = (prev.sway-unwrapped.overrideAttrs (old: {
4 months ago
version = "git";
buildInputs = old.buildInputs ++ [ prev.xorg.xcbutilwm prev.pcre2 ];
nativeBuildInputs = old.nativeBuildInputs ++ [ prev.cmake ];
5 months ago
src = inputs.sway-git;
3 months ago
})).override {
wlroots = wlroots-git;
};
4 months ago
3 months ago
waybar = (prev.waybar.overrideAttrs (old: {
version = "git";
src = inputs.waybar;
})).override {
wlroots = wlroots-git;
};
5 months ago
3 months ago
#xwayland = prev.xwayland.overrideAttrs (old: {
# version = "git";
#
# src = inputs.xorg-git;
4 months ago
# buildInputs = old.buildInputs ++ [
# prev.udev
# prev.xorg.libpciaccess
# ];
# });
5 months ago
4 months ago
steam = prev.steam.override {
extraPkgs = pkgs: [
pkgs.gnome.zenity
pkgs.gamescope
pkgs.libkrb5
pkgs.keyutils
3 months ago
pkgs.mpg123
];
extraLibraries = pkgs: [
pkgs.mpg123
4 months ago
];
};
gamescope = prev.gamescope.overrideAttrs (old: {
4 months ago
version = "git";
4 months ago
src = inputs.gamescope-git;
});
4 months ago
mesa-git = (prev.mesa.overrideAttrs (old: {
4 months ago
version = "git";
4 months ago
src = inputs.mesa-git;
3 months ago
buildInputs = old.buildInputs ++ [ 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 {
3 months ago
galliumDrivers = [ "radeonsi" "swrast" "zink" ];
4 months ago
vulkanDrivers = [ "amd" ];
enableGalliumNine = false; # Replaced by DXVK
};
4 months ago
};
3 months ago
nixosConfigurations.terra = nixpkgs.lib.nixosSystem {
4 months ago
inherit system;
inherit pkgs;
specialArgs = { inherit inputs; };
modules = [
{
#needed to get tools working that expect a nixpkgs channel to exist
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;
4 months ago
extraSpecialArgs = { inherit inputs pkgs; };
};
}
inputs.grub2-themes.nixosModule
];
};
6 months ago
};
}