This commit is contained in:
dusk 2023-08-23 14:06:38 +03:00
parent f5419ea3f4
commit b7711852ee
Signed by: dusk
SSH Key Fingerprint: SHA256:Abmvag+juovVufZTxyWY8KcVgrznxvBjQpJesv071Aw
16 changed files with 469 additions and 477 deletions

File diff suppressed because it is too large Load Diff

View File

@ -26,14 +26,13 @@
bernbot.url = "github:yusdacra/bernbot"; bernbot.url = "github:yusdacra/bernbot";
bernbot.inputs.nixpkgs.follows = "nixpkgs"; bernbot.inputs.nixpkgs.follows = "nixpkgs";
blender-bin.url = "github:edolstra/nix-warez?dir=blender"; conduit.url = "gitlab:famedly/conduit/next";
blender-bin.inputs.nixpkgs.follows = "nixpkgs";
conduit.url = "gitlab:famedly/conduit";
conduit.inputs.nixpkgs.follows = "nixpkgs"; conduit.inputs.nixpkgs.follows = "nixpkgs";
nil.url = "github:oxalica/nil"; # nil.url = "github:oxalica/nil";
nil.inputs.nixpkgs.follows = "nixpkgs"; # nil.inputs.nixpkgs.follows = "nixpkgs";
nixd.url = "github:nix-community/nixd";
nixd.inputs.nixpkgs.follows = "nixpkgs";
stylix.url = "github:yusdacra/stylix/fixed"; stylix.url = "github:yusdacra/stylix/fixed";
stylix.inputs.nixpkgs.follows = "nixpkgs"; stylix.inputs.nixpkgs.follows = "nixpkgs";
@ -54,6 +53,9 @@
limbusart.url = "git+https://git.gaze.systems/dusk/limbusart.git"; limbusart.url = "git+https://git.gaze.systems/dusk/limbusart.git";
limbusart.inputs.nixpkgs.follows = "nixpkgs"; limbusart.inputs.nixpkgs.follows = "nixpkgs";
steam-tui.url = "github:dmadisetti/steam-tui";
steam-tui.inputs.nixpkgs.follows = "nixpkgs";
# needed for hyprland setup # needed for hyprland setup
# hyprland.url = "github:hyprwm/Hyprland"; # hyprland.url = "github:hyprwm/Hyprland";
# hyprland.inputs.nixpkgs.follows = "nixpkgs"; # hyprland.inputs.nixpkgs.follows = "nixpkgs";
@ -82,16 +84,28 @@
miscApps = miscApps =
lib.mapAttrs lib.mapAttrs
( (
_: pkgs: { _: cmds:
generate-firefox-addons = { lib.mapAttrs
(_: cmd: {
type = "app"; type = "app";
program = program = cmd;
})
cmds
)
(
lib.mapAttrs
(
_: pkgs: {
generate-firefox-addons =
toString toString
"${pkgs.generate-firefox-addons}/bin/generate-firefox-addons"; "${pkgs.generate-firefox-addons}/bin/generate-firefox-addons";
}; # buildHost = {
# type = "app";
# };
} }
) )
allPkgs; allPkgs
);
in { in {
lib = tlib; lib = tlib;
nixosConfigurations = import ./hosts {inherit lib tlib inputs;}; nixosConfigurations = import ./hosts {inherit lib tlib inputs;};

View File

@ -159,11 +159,5 @@ in {
xserver.videoDrivers = ["amdgpu"]; xserver.videoDrivers = ["amdgpu"];
}; };
virtualisation = {
waydroid.enable = false;
podman.enable = false;
libvirtd.enable = false;
};
system.stateVersion = "22.05"; system.stateVersion = "22.05";
} }

View File

@ -5,7 +5,7 @@
lib, lib,
... ...
}: let }: let
bernbotPkg = inputs.bernbot.packages.${pkgs.system}.bernbot; bernbotPkg = inputs.bernbot.packages.${pkgs.system}.bernbot-release;
in { in {
systemd.services.bernbot = { systemd.services.bernbot = {
description = "bernbot"; description = "bernbot";

View File

@ -1,17 +1,12 @@
{ {lib, ...}: let
pkgs,
lib,
...
}: let
l = lib // builtins; l = lib // builtins;
mkRule = name: type: mkRule = name: type: {
l.toJSON {
inherit name type; inherit name type;
}; };
in { in {
services.ananicy = { services.ananicy = {
enable = true; enable = true;
extraRules = l.concatStringsSep "\n" [ extraRules = [
# coompilers # coompilers
(mkRule "g++" "BG_CPUIO") (mkRule "g++" "BG_CPUIO")
(mkRule "gcc" "BG_CPUIO") (mkRule "gcc" "BG_CPUIO")

View File

@ -1,15 +0,0 @@
_: prev: let
flags = [
"--ignore-gpu-blocklist"
"--disable-gpu-driver-bug-workarounds"
"--enable-features=WebUIDarkMode"
"--enable-gpu-rasterization"
"--enable-zero-copy"
"--force-dark-mode"
"--enable-webrtc-pipewire-capturer"
"--ozone-platform-hint=auto"
];
mkCliArgs = flags: prev.lib.concatStringsSep " " flags;
in {
chromium = prev.chromium.override {commandLineArgs = mkCliArgs flags;};
}

View File

@ -0,0 +1,3 @@
{inputs}: final: prev: {
steam-tui = inputs.steam-tui.packages.${final.system}.default;
}

View File

@ -7,20 +7,17 @@
enable = true; enable = true;
commandLineArgs = [ commandLineArgs = [
"--ozone-platform-hint=auto" "--ozone-platform-hint=auto"
"--enable-features=WaylandWindowDecorations"
"--enable-crashpad"
"--flag-switches-begin" "--flag-switches-begin"
"--enable-gpu-rasterization" "--enable-webrtc-pipewire-capturer"
"--enable-unsafe-webgpu" # "--force-dark-mode"
"--enable-zero-copy" # "--enable-gpu-rasterization"
"--ignore-gpu-blocklist" # "--enable-zero-copy"
"--disable-gpu-driver-bug-workarounds" # "--ignore-gpu-blocklist"
# "--disable-gpu-driver-bug-workarounds"
"--ozone-platform-hint=wayland" "--ozone-platform-hint=wayland"
"--enable-features=SystemNotifications,WaylandWindowDecorations,CanvasOopRasterization,EnableDrDc,RawDraw,WebRTCPipeWireCapturer" "--enable-features=SystemNotifications,WaylandWindowDecorations,WebRTCPipeWireCapturer"
"--disable-features=Vulkan"
"--flag-switches-end" "--flag-switches-end"
"--disk-cache-dir=\"$XDG_RUNTIME_DIR/chromium-cache\"" "--disk-cache-dir=\"$XDG_RUNTIME_DIR/chromium-cache\""
"--process-per-site"
]; ];
extensions = [ extensions = [
"cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin "cjpalhdlnbpafiamejdnhcphjbkeiagm" # ublock origin

View File

@ -9,12 +9,12 @@
".config/discordcanary" ".config/discordcanary"
]; ];
xdg.configFile."discordcanary/settings.json".text = builtins.toJSON { xdg.configFile."discordcanary/settings.json".text = builtins.toJSON {
openasar = { # openasar = {
setup = true; # setup = true;
noTyping = true; # noTyping = true;
quickstart = true; # quickstart = true;
theme = builtins.readFile inputs.catppuccin-discord; # # theme = builtins.readFile inputs.catppuccin-discord;
}; # };
SKIP_HOST_UPDATE = true; SKIP_HOST_UPDATE = true;
IS_MAXIMIZED = true; IS_MAXIMIZED = true;
IS_MINIMIZED = false; IS_MINIMIZED = false;
@ -38,7 +38,7 @@
pkg = pkg =
(pkgs.discord-canary.override { (pkgs.discord-canary.override {
nss = pkgs.nss_latest; nss = pkgs.nss_latest;
withOpenASAR = true; # withOpenASAR = true;
}) })
.overrideAttrs (old: { .overrideAttrs (old: {
preInstall = '' preInstall = ''

View File

@ -6,7 +6,7 @@
stylix.targets.helix.enable = false; stylix.targets.helix.enable = false;
programs.helix = { programs.helix = {
enable = true; enable = true;
languages = [ languages.language = [
{ {
name = "dockerfile"; name = "dockerfile";
roots = ["Dockerfile" "Containerfile"]; roots = ["Dockerfile" "Containerfile"];
@ -14,9 +14,12 @@
} }
{ {
name = "nix"; name = "nix";
language-server = {command = "${inputs.nil.packages.${pkgs.system}.default}/bin/nil";}; language-servers = ["nixd-lsp"];
} }
]; ];
languages.language-server = {
nixd-lsp = {command = "${inputs.nixd.packages.${pkgs.system}.default}/bin/nixd";};
};
settings = { settings = {
theme = "ferra"; theme = "ferra";
editor = { editor = {

View File

@ -0,0 +1,6 @@
{config, pkgs, ...}: {
home.packages = [pkgs.ripcord];
home.persistence."${config.system.persistDir}${config.home.homeDirectory}".directories = [
".local/share/Ripcord"
];
}

View File

@ -1,7 +1,7 @@
{pkgs, ...}: { {pkgs, ...}: {
home.packages = [pkgs.swaylock-effects]; programs.swaylock = {
package = pkgs.swaylock-effects;
programs.swaylock.settings = { settings = {
screenshot = true; screenshot = true;
ignore-empty-password = true; ignore-empty-password = true;
clock = true; clock = true;
@ -9,4 +9,5 @@
effect-greyscale = true; effect-greyscale = true;
effect-blur = "20x3"; effect-blur = "20x3";
}; };
};
} }

View File

@ -24,9 +24,17 @@ in {
}; };
} }
]; ];
# configure history
history = {
extended = true;
ignorePatterns = ["rm *" "mv *" "l" "ls" "ll" "g s" "git status"];
save = 1000000;
size = 1000000;
};
# xdg compliant # xdg compliant
dotDir = ".config/zsh"; dotDir = ".config/zsh";
history.path = "${config.home.homeDirectory}/.local/share/zsh/history"; history.path = "${config.home.homeDirectory}/.local/share/zsh/history";
# extra stuff for fixing gpg-agent ssh and some random commands
initExtra = '' initExtra = ''
${ ${
lib.optionalString lib.optionalString

View File

@ -108,11 +108,11 @@ in {
["sway" "foot"] ["sway" "foot"]
# desktop stuff # desktop stuff
["wayland"] ["wayland"]
["chromium"] ["ripcord" "discord" "chromium"]
# cli stuff # cli stuff
["zoxide" "zsh" "fzf" "starship" "direnv"] ["zoxide" "zsh" "fzf" "starship" "direnv"]
# dev stuff # dev stuff
["helix" "code" "git" "ssh"] ["helix" "git" "ssh"]
["musikcube" "musikcubed"] ["musikcube" "musikcubed"]
]; ];
in in
@ -182,7 +182,7 @@ in {
font-awesome font-awesome
dejavu_fonts dejavu_fonts
# Programs # Programs
inputs.blender-bin.packages.x86_64-linux.default pixelorama
krita krita
gnupg gnupg
imv imv
@ -198,7 +198,8 @@ in {
helvum helvum
nix-output-monitor nix-output-monitor
# prismlauncher # prismlauncher
godot_4 steamPackages.steamcmd
steam-tui
]; ];
}; };
programs = { programs = {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB