update 10/19/2024

This commit is contained in:
2024-10-19 00:04:55 +09:00
parent ddd508b148
commit a72167be09
10 changed files with 76 additions and 21 deletions

18
flake.lock generated
View File

@@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1728337164, "lastModified": 1729260213,
"narHash": "sha256-VdRTjJFyq4Q9U7Z/UoC2Q5jK8vSo6E86lHc2OanXtvc=", "narHash": "sha256-jAvHoU/1y/yCuXzr2fNF+q6uKmr8Jj2xgAisK4QB9to=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "038630363e7de57c36c417fd2f5d7c14773403e4", "rev": "09a0c0c02953318bf94425738c7061ffdc4cba75",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -23,11 +23,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1728269138, "lastModified": 1728729581,
"narHash": "sha256-oKxDImsOvgUZMY4NwXVyUc/c1HiU2qInX+b5BU0yXls=", "narHash": "sha256-oazkQ/z7r43YkDLLQdMg8oIB3CwWNb+2ZrYOxtLEWTQ=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "ecfcd787f373f43307d764762e139a7cdeb9c22b", "rev": "a8dd1b21995964b115b1e3ec639dd6ce24ab9806",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -39,11 +39,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728492678, "lastModified": 1728888510,
"narHash": "sha256-9UTxR8eukdg+XZeHgxW5hQA9fIKHsKCdOIUycTryeVw=", "narHash": "sha256-nsNdSldaAyu6PE3YUA+YQLqUDJh+gRbBooMMekZJwvI=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "5633bcff0c6162b9e4b5f1264264611e950c8ec7", "rev": "a3c0b3b21515f74fd2665903d4ce6bc4dc81c77c",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -28,6 +28,7 @@
../../user/apps/graphics/gimp.nix ../../user/apps/graphics/gimp.nix
../../user/apps/graphics/inkscape.nix ../../user/apps/graphics/inkscape.nix
../../user/apps/games/mangohud.nix ../../user/apps/games/mangohud.nix
../../user/apps/games/minecraft.nix
../../user/apps/office/texlive.nix ../../user/apps/office/texlive.nix
../../user/shell/bash.nix ../../user/shell/bash.nix
../../user/wm/xmonad/xmonad.nix ../../user/wm/xmonad/xmonad.nix

View File

@@ -0,0 +1,34 @@
{ lib, fetchurl, appimageTools }:
let
pname = "badlion-client";
version = "4.4.1";
src = fetchurl {
name = "badlion-client-linux";
# https://www.badlion.net/download/client/latest/linux
url = "https://client-updates-cdn77.badlion.net/BadlionClient";
hash = "sha256-lyu0WQtkevCduGb5Hw5D79CekoHTQiKHvofnqS57mVU=";
};
appimageContents = appimageTools.extract { inherit pname version src; };
in
appimageTools.wrapType2 rec {
inherit pname version src;
extraInstallCommands = ''
install -Dm444 ${appimageContents}/BadlionClient.desktop $out/share/applications/BadlionClient.desktop
install -Dm444 ${appimageContents}/BadlionClient.png $out/share/pixmaps/BadlionClient.png
substituteInPlace $out/share/applications/BadlionClient.desktop \
--replace 'Exec=AppRun --no-sandbox %U' 'Exec=badlion-client'
'';
meta = with lib; {
description = "Most Complete All-In-One Mod Library for Minecraft with 100+ Mods, FPS Improvements, and more";
homepage = "https://client.badlion.net";
license = with licenses; [ unfree ];
maintainers = [ ];
mainProgram = "badlion-client";
platforms = [ "x86_64-linux" ];
};
}

View File

@@ -0,0 +1,4 @@
let
pkgs = import <nixpkgs> { };
in
pkgs.callPackage ./badlion-client.nix { }

View File

@@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
{ {
services.xserver.windowManager.xmonad = { services.xserver.windowManager.xmonad = {
enable = true; enable = true;

View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
let
badlionClient = pkgs.callPackage ../../../pkgs/badlion-client/badlion-client.nix { };
in
{
home.packages = [ badlionClient ];
}

View File

@@ -0,0 +1,6 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
minecraft
];
}

View File

@@ -19,14 +19,12 @@ Config {
commands = commands =
[ [
Run DynNetwork [ Run DynNetwork [ "--template", "<dev>: <tx>kB/s|<rx>kB/s",
"--template", "<dev>: <tx>kB/s|<rx>kB/s", "--Low", "1000", -- units: B/s
"--Low", "1000" -- units: B/s, "--High", "5000", -- units: B/s
"--High", "5000" -- units: B/s,
"--low", "darkgreen", "--low", "darkgreen",
"--normal", "darkorange", "--normal", "darkorange",
"--high", "darkred" "--high", "darkred" ] 10,
] 10,
Run MultiCpu [ Run MultiCpu [
"--template", "Cpu: <total0>C|<core1>C" "--template", "Cpu: <total0>C|<core1>C"

View File

@@ -8,6 +8,7 @@
-- --
import XMonad import XMonad
import XMonad.Hooks.DynamicLog
import Data.Monoid import Data.Monoid
import System.Exit import System.Exit
@@ -36,7 +37,7 @@ myBorderWidth = 1
-- ("right alt"), which does not conflict with emacs keybindings. The -- ("right alt"), which does not conflict with emacs keybindings. The
-- "windows key" is usually mod4Mask. -- "windows key" is usually mod4Mask.
-- --
myModMask = mod1Mask myModMask = mod4Mask
-- The default number of workspaces (virtual screens) and their names. -- The default number of workspaces (virtual screens) and their names.
-- By default we use numeric strings, but any string may be used as a -- By default we use numeric strings, but any string may be used as a
@@ -47,7 +48,7 @@ myModMask = mod1Mask
-- --
-- > workspaces = ["web", "irc", "code" ] ++ map show [4..9] -- > workspaces = ["web", "irc", "code" ] ++ map show [4..9]
-- --
myWorkspaces = ["1","2","3","4","5","6","7","8","9"] myWorkspaces = ["term", "web", "code", "debug", "docs"] ++ map show [6..9]
-- Border colors for unfocused and focused windows, respectively. -- Border colors for unfocused and focused windows, respectively.
-- --
@@ -243,14 +244,17 @@ myLogHook = return ()
-- per-workspace layout choices. -- per-workspace layout choices.
-- --
-- By default, do nothing. -- By default, do nothing.
myStartupHook = return () myStartupHook = do
spawn "feh --bg-scale ~/画像/wallpaper/85444653_p0.jpg"
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- Now run xmonad with all the defaults we set up. -- Now run xmonad with all the defaults we set up.
-- Run xmonad with the settings you specify. No need to modify this. -- Run xmonad with the settings you specify. No need to modify this.
-- --
main = xmonad defaults main :: IO()
main = do
xmobar myConfig >>= xmonad
-- A structure containing your configuration settings, overriding -- A structure containing your configuration settings, overriding
-- fields in the default config. Any you don't override, will -- fields in the default config. Any you don't override, will
@@ -258,7 +262,7 @@ main = xmonad defaults
-- --
-- No need to modify this. -- No need to modify this.
-- --
defaults = def { myConfig = def {
-- simple stuff -- simple stuff
terminal = myTerminal, terminal = myTerminal,
focusFollowsMouse = myFocusFollowsMouse, focusFollowsMouse = myFocusFollowsMouse,

View File

@@ -14,4 +14,5 @@
]; ];
home.file.".config/xmonad/xmonad.hs".source = ./xmonad.hs; home.file.".config/xmonad/xmonad.hs".source = ./xmonad.hs;
home.file.".config/xmobar/xmobarrc".source = ./xmobarrc;
} }