This commit is contained in:
Chris Kruining 2024-07-23 23:31:36 +02:00
parent 77e187421e
commit d3f9972a46
12 changed files with 45 additions and 51 deletions

View file

@ -18,7 +18,6 @@ in
environment.variables = { environment.variables = {
KAAS = config.kaas.dir; KAAS = config.kaas.dir;
KAAS_BIN = config.kaas.binDir;
NIXPKGS_ALLOW_UNFREE = "1"; NIXPKGS_ALLOW_UNFREE = "1";
}; };

View file

@ -23,13 +23,14 @@
system = "x86_64-linux"; system = "x86_64-linux";
mkPkgs = pkgs: mkPkgs = pkgs: extraOverlays:
import pkgs { import pkgs {
inherit system; inherit system;
config.allowUnfree = true; config.allowUnfree = true;
overlays = extraOverlays ++ (lib.attrValues self.overlays);
}; };
pkgs = mkPkgs nixpkgs; pkgs = mkPkgs nixpkgs [self.overlays.default];
pkgs-unstable = mkPkgs nixpkgs-unstable; pkgs-unstable = mkPkgs nixpkgs-unstable [];
lib = nixpkgs.lib.extend (final: prev: { lib = nixpkgs.lib.extend (final: prev: {
my = import ./lib { my = import ./lib {
@ -42,6 +43,21 @@
{ {
lib = lib.my; lib = lib.my;
overlays = {
default = final: prev: {
unstable = pkgs-unstable;
my = self.packages.${system};
};
nvfetcher = final: prev: {
sources =
builtins.mapAttrs (_: p: p.src)
((import ./packages/_sources/generated.nix) {
inherit (final) fetchurl fetchgit fetchFromGitHub dockerTools;
});
};
};
packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {}); packages."${system}" = mapModules ./packages (p: pkgs.callPackage p {});
nixosModules = nixosModules =

View file

@ -31,10 +31,5 @@
default = "zsh"; default = "zsh";
}; };
}; };
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
} }

View file

@ -42,10 +42,5 @@
}; };
}; };
}; };
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
} }

View file

@ -34,10 +34,5 @@
}; };
}; };
}; };
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
} }

View file

@ -31,10 +31,5 @@
default = "zsh"; default = "zsh";
}; };
}; };
programs.kdeconnect = {
enable = true;
package = pkgs.valent;
};
} }

View file

@ -87,7 +87,7 @@ in
user = { user = {
name = "Chris Kruining"; name = "Chris Kruining";
email = "chris@kruining.eu"; email = "chris@kruining.eu";
signingKey = readFile "${config.user.home}/.ssh/id_ed25519.pub"; signingKey = readFile "${config.user.home}/.ssh/id_rsa.pub";
}; };
gpg.format = "ssh"; gpg.format = "ssh";

View file

@ -11,7 +11,7 @@ in
hm.programs.starship = { hm.programs.starship = {
enable = true; enable = true;
settings = let settings = let
inherit (config.modules.themes.colors.main) normal types; inherit (config.modules.themes.colors.main) normal bright types;
in { in {
scan_timeout = 10; scan_timeout = 10;
add_newline = true; add_newline = true;
@ -37,28 +37,28 @@ in
nix_shell = { nix_shell = {
symbol = " "; symbol = " ";
format = "[$symbol$name]($style) "; format = "[$symbol$name]($style) ";
style = "${normal.purple} bold"; style = "${normal.magenta} bold";
}; };
git_branch = { git_branch = {
only_attached = true; only_attached = true;
format = "[$symbol$branch]($style) "; format = "[$symbol$branch]($style) ";
symbol = ""; symbol = "";
style = "${normal.yellow} bold"; style = "${bright.yellow} bold";
}; };
git_commit = { git_commit = {
only_detached = true; only_detached = true;
format = "[$hash]($style) "; format = "[$hash]($style) ";
style = "${normal.yellow} bold"; style = "${bright.yellow} bold";
}; };
git_state = { git_state = {
style = "${normal.purple} bold"; style = "${bright.magenta} bold";
}; };
git_status = { git_status = {
style = "${normal.green} bold"; style = "${bright.green} bold";
}; };
directory = { directory = {
@ -68,16 +68,16 @@ in
cmd_duration = { cmd_duration = {
format = "[$duration]($style) "; format = "[$duration]($style) ";
style = "${normal.blue}"; style = "${bright.blue}";
}; };
jobs = { jobs = {
style = "${normal.green} bold"; style = "${bright.green} bold";
}; };
character = { character = {
success_symbol = "[\\$](${normal.green} bold)"; success_symbol = "[\\$](${bright.green} bold)";
error_symbol = "[\\$](${normal.red} bold)"; error_symbol = "[\\$](${bright.red} bold)";
}; };
}; };
}; };

View file

@ -29,7 +29,7 @@ in
history = { history = {
size = 10000; size = 10000;
path = "${config.xdg.dataHome}/zsh/history"; path = "$XDG_CONFIG_HOME/zsh/history";
}; };
oh-my-zsh = { oh-my-zsh = {

View file

@ -3,10 +3,9 @@
services.xserver.videoDrivers = [ "nvidia" ]; services.xserver.videoDrivers = [ "nvidia" ];
hardware = { hardware = {
opengl = { graphics = {
enable = true; enable = true;
driSupport = true; enable32Bit = true;
driSupport32Bit = true;
}; };
nvidia = { nvidia = {

View file

@ -8,18 +8,18 @@ let
cfg = config.modules.themes; cfg = config.modules.themes;
in in
{ {
config = mkIf (cfg.active == "everforrest") config = mkIf (cfg.active == "everforest")
{ {
modules.themes = { modules.themes = {
wallpaper = mkDefault ./assets/wallpaper.jpeg; wallpaper = mkDefault ./assets/wallpaper.jpg;
gtk = { gtk = {
name = "Everforrest-Dark-BL"; name = "Everforest-Dark-BL";
package = pkgs.my.everforrest-gtk; package = pkgs.my.everforest-gtk;
}; };
iconTheme = { iconTheme = {
name = "everforrest-dark"; name = "everforest-dark";
package = pkgs.fluent-icon-theme.override { package = pkgs.fluent-icon-theme.override {
colorVariants = []; colorVariants = [];
}; };
@ -98,8 +98,8 @@ in
editor = { editor = {
neovim = { neovim = {
dark = "everforrest"; dark = "everforest";
light = "everforrest"; light = "everforest";
}; };
}; };
}; };

View file

@ -14,7 +14,7 @@
validSizes = ["standard" "compact"]; validSizes = ["standard" "compact"];
single = x: lib.optional (x != null) x; single = x: lib.optional (x != null) x;
pname = "Everforrest"; pname = "Everforest";
in in
lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent lib.checkListOfEnum "${pname} Valid theme accent(s)" validAccents accent
lib.checkListOfEnum "${pname} Valid shades" validShades (single shade) lib.checkListOfEnum "${pname} Valid shades" validShades (single shade)
@ -26,9 +26,9 @@ in
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Fausto-Korpsvart"; owner = "Fausto-Korpsvart";
repo = "Everforrest-GTK-Theme"; repo = "Everforest-GTK-Theme";
rev = "bb3fc27a2468f0965a738d9d3b30c52a799572d2"; rev = "bb3fc27a2468f0965a738d9d3b30c52a799572d2";
# hash = "sha256-oKqLb66N4swHfhjUZJIGryE0D9MkuLdKFQa6j3TFmOg="; hash = "sha256-sTHyH1pCq/d2JMmEppdQAc+P8a3y1lM+WQcW7nXEoPE=";
}; };
nativeBuildInputs = [jdupes sassc]; nativeBuildInputs = [jdupes sassc];
@ -61,8 +61,8 @@ in
''; '';
meta = with lib; { meta = with lib; {
description = "A GTK theme based on the Everforrest colour palette"; description = "A GTK theme based on the Everforest colour palette";
homepage = "https://github.com/Fausto-Korpsvart/Everforrest-GTK-Theme"; homepage = "https://github.com/Fausto-Korpsvart/Everforest-GTK-Theme";
license = licenses.gpl3Only; license = licenses.gpl3Only;
platforms = platforms.all; platforms = platforms.all;
}; };