This commit is contained in:
Schrottkatze 2023-09-25 19:24:42 +02:00
parent fdfb63efdf
commit 1c68283f06
4 changed files with 83 additions and 30 deletions

View file

@ -50,6 +50,25 @@ with builtins;
}; };
}; };
console.colors = [
"282828"
"cc241d"
"98971a"
"d79921"
"458588"
"b16286"
"689d6a"
"a89984"
"928374"
"fb4934"
"b8bb26"
"fabd2f"
"83a598"
"d3869b"
"8ec07c"
"ebdbb2"
];
programs = { programs = {
dconf.enable = true; dconf.enable = true;
@ -66,10 +85,10 @@ with builtins;
home.sessionVariables.TZ = nixosConfig.time.timeZone; home.sessionVariables.TZ = nixosConfig.time.timeZone;
}; };
#nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
#sudo = pkgs.sudo.override { withInsults = true; }; sudo = pkgs.sudo.override { withInsults = true; };
#}; };
#security.sudo.extraConfig = "Defaults insults"; security.sudo.extraConfig = "Defaults insults";
boot.kernel.sysctl."vm.max_map_count" = 2147483642; boot.kernel.sysctl."vm.max_map_count" = 2147483642;
@ -93,6 +112,7 @@ users.users.jade = {
algorithm = "zstd"; algorithm = "zstd";
}; };
users.defaultUserShell = pkgs.nushell.override { additionalFeatures = (p: p ++ ["dataframe"]); }; # users.defaultUserShell = pkgs.nushell.override { additionalFeatures = (p: p ++ ["dataframe" "extra"]); };
users.defaultUserShell = pkgs.nushellFull;
} }

View file

@ -2,7 +2,7 @@
# your system. Help is available in the configuration.nix(5) man page # your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running nixos-help). # and in the NixOS manual (accessible by running nixos-help).
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
let let
evremap = pkgs.rustPlatform.buildRustPackage { evremap = pkgs.rustPlatform.buildRustPackage {
pname = "evremap"; pname = "evremap";
@ -82,6 +82,32 @@ in {
}; };
}; };
nixpkgs = {
overlays = [
(self: super: {
linux_zen_xeniafied = pkgs.linuxPackagesFor (pkgs.linuxKernel.kernels.linux_zen.override {
structuredExtraConfig = with lib.kernel; {
"FB" = yes;
"FRAMEBUFFER_CONSOLE" = yes;
"VGA_CONSOLE" = yes;
"VIDEO_SELECT" = yes;
LOGO = lib.mkForce yes;
LOGO_LINUX_CLUT224 = yes;
};
ignoreConfigErrors = true;
});
})
];
};
boot.kernelPackages = pkgs.linuxPackages_zen;
boot.kernelPatches = [
{
name = "fomx";
patch = ../../other/0001-fomx.patch;
}
];
services.xserver.displayManager.autoLogin = { services.xserver.displayManager.autoLogin = {
enable = true; enable = true;
user = "jade"; user = "jade";

View file

@ -10,23 +10,23 @@
../../modules ../../modules
]; ];
#nixpkgs = { # nixpkgs = {
#overlays = [ # overlays = [
#(self: super: { # (self: super: {
#linux_zen_xeniafied = pkgs.linuxPackagesFor (pkgs.linuxKernel.kernels.linux_zen.override { # linux_zen_xeniafied = pkgs.linuxPackagesFor (pkgs.linuxKernel.kernels.linux_zen.override {
#structuredExtraConfig = with lib.kernel; { # structuredExtraConfig = with lib.kernel; {
#"FB" = yes; # "FB" = yes;
#"FRAMEBUFFER_CONSOLE" = yes; # "FRAMEBUFFER_CONSOLE" = yes;
#"VGA_CONSOLE" = yes; # "VGA_CONSOLE" = yes;
#"VIDEO_SELECT" = yes; # "VIDEO_SELECT" = yes;
#LOGO = lib.mkForce yes; # LOGO = lib.mkForce yes;
#LOGO_LINUX_CLUT224 = yes; # LOGO_LINUX_CLUT224 = yes;
#}; # };
#ignoreConfigErrors = true; # ignoreConfigErrors = true;
#}); # });
#}) # })
#]; # ];
#}; # };
jade = { jade = {
flatpak.enable = true; flatpak.enable = true;
@ -57,13 +57,13 @@
# latest linux kernel # latest linux kernel
#boot.kernelPackages = pkgs.linuxPackages_latest; #boot.kernelPackages = pkgs.linuxPackages_latest;
#boot.kernelPackages = pkgs.linux_zen_xeniafied; #boot.kernelPackages = pkgs.linux_zen_xeniafied;
kernelPackages = pkgs.linuxPackages_zen; boot.kernelPackages = pkgs.linuxPackages_zen;
#boot.kernelPatches = [ # boot.kernelPatches = [
#{ # {
#name = "fomx"; # name = "fomx";
#patch = ../other/0001-fomx.patch; # patch = ../other/0001-fomx.patch;
#} # }
#]; # ];
binfmt.emulatedSystems = [ "aarch64-linux" ]; binfmt.emulatedSystems = [ "aarch64-linux" ];
}; };

View file

@ -153,6 +153,7 @@ in with lib; {
notifications.x11.enable = true; notifications.x11.enable = true;
notifications.test = true; notifications.test = true;
}; };
services.colord.enable = true;
home-manager.users.jade = { pkgs, ... }: { home-manager.users.jade = { pkgs, ... }: {
programs.bat = { programs.bat = {
@ -167,6 +168,9 @@ in with lib; {
enable = true; enable = true;
package = config.users.defaultUserShell; package = config.users.defaultUserShell;
configFile.source = ../../other/config.nu; configFile.source = ../../other/config.nu;
extraConfig = ''
source ${pkgs.nu_scripts}/share/nu_scripts/modules/nix/nix.nu;
'';
}; };
programs.ripgrep = { programs.ripgrep = {
enable = true; enable = true;
@ -196,6 +200,9 @@ in with lib; {
magic-wormhole-rs magic-wormhole-rs
argyllcms
displaycal
# carapace completer # carapace completer
carapace carapace