Update ~8/26/24

This commit is contained in:
2024-08-29 18:54:36 +09:00
parent eebaa957af
commit 02ded93d14
19 changed files with 120 additions and 4 deletions

View File

@@ -18,12 +18,16 @@
../../system/hardware/opengl.nix
../../system/hardware/bluetooth.nix
../../system/wm/sddm.nix
../../system/hardware/inputMethods.nix
../../system/env.nix
];
# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
systemd.enableUnifiedCgroupHierarchy = false;
programs.appimage = {
enable = true;
binfmt = true;

View File

@@ -2,13 +2,16 @@
{
imports = [
../../user/apps/browsers/firefox.nix
../../user/apps/thunderbird.nix
../../user/dev/tools/git.nix
../../user/dev/tools/gitui.nix
../../user/dev/tools/firefox-devedition.nix
../../user/dev/editor/vscodium.nix
../../user/dev/editor/zed-editor.nix
../../user/dev/lang/cc.nix
../../user/dev/lang/python.nix
../../user/dev/lang/rust.nix
../../user/dev/lang/ecmascript.nix
../../user/dev/ide/qtcreator.nix
../../user/apps/utils/alacritty.nix
../../user/apps/utils/keepassxc.nix
@@ -19,7 +22,11 @@
../../user/apps/media/vlc.nix
../../user/apps/media/mpv.nix
../../user/apps/media/yt-dlp.nix
../../user/apps/graphics/gimp.nix
../../user/apps/graphics/inkscape.nix
../../user/apps/games/mangohud.nix
../../user/apps/office/texlive.nix
../../user/shell/bash.nix
../../user/wm/xmonad/xmonad.nix
];

View File

@@ -1,6 +1,6 @@
#!/bin/bash
echo "newpkg.sh: create minimal nix file in current directory"
echo "newpkg.sh: create minimal nix file in current directory, Current Directory: $PWD"
if [ -z "$NIXOSSYSCONFIG" ]; then
echo "Error: Env Variable Missing, NIXOSSYSCONFIG"

7
system/env.nix Normal file
View File

@@ -0,0 +1,7 @@
{ config, lib, pkgs, ... }:
{
environment.variables = {
EDITOR = "vim";
MOZ_ENABLE_WAYLAND = 1;
};
}

View File

@@ -0,0 +1,13 @@
{ config, lib, pkgs, systemSettings, ... }:
{
i18n = {
inputMethod = {
enabled = "fcitx5";
fcitx5 = {
waylandFrontend = true;
plasma6Support = true;
addons = with pkgs; [ fcitx5-mozc ];
};
};
};
}

View File

@@ -8,5 +8,6 @@
powerManagement.finegrained = false;
open = true;
nvidiaSettings = true;
package = config.boot.kernelPackages.nvidiaPackages.production;
};
}

View File

@@ -1,9 +1,14 @@
{ pkgs, config, ... }:
{ pkgs, config, lib, ... }:
{
virtualisation.containers.enable = true;
virtualisation.docker = {
enable = true;
storageDriver = "overlay2";
enableOnBoot = true;
daemon.settings = {
features.cdi = true;
};
};
environment.systemPackages = with pkgs; [
@@ -13,5 +18,5 @@
nvidia-container-toolkit
];
hardware.nvidia-container-toolkit.enable = true;
hardware.nvidia-container-toolkit.enable = lib.lists.elem "nvidia" config.services.xserver.videoDrivers;
}

View File

@@ -5,6 +5,7 @@
vim
wget
file
eza
jq
htop
mc

3
user/.profile Normal file
View File

@@ -0,0 +1,3 @@
export XDG_DATA_DIRS=$XDG_DATA_DIRS:/usr/share:/var/lib/flatpak/exports/share:$HOME/.local/share/flatpak/exports/share
export PATH="$PATH:${XDG_BIN_HOME:-$HOME/.local/bin}"

View File

@@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, ... }:
{
home.packages = [ pkgs.firefox ];
}

View File

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

View File

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

View File

@@ -0,0 +1,20 @@
{ pkgs, ... }:
let
mytex = pkgs.texliveMedium.withPackages
(ps: [
ps.biber
ps.biblatex
ps.bibtex
ps.import
ps.subfiles
ps.wrapfig
ps.collection-langjapanese
]);
in
{
home.packages = with pkgs; [
mytex
pandoc
qpdf
];
}

View File

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

View File

@@ -6,6 +6,7 @@
cmake
autoconf
automake
gnumake
libtool
clang-analyzer
clang-tools

View File

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

View File

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

4
user/profile.nix Normal file
View File

@@ -0,0 +1,4 @@
{ config, ... }:
{
home.file.".profile".source = ./.profile;
}

20
user/shell/bash.nix Normal file
View File

@@ -0,0 +1,20 @@
{ config, pkgs, ... }:
let
lsCmd = "eza -la --git -s type";
in
{
home.packages = with pkgs; [
bash
];
programs.bash = {
enable = true;
shellAliases = {
search-pkg = "nix search -I nixpkgs=flake:nixpkgs nixpkgs";
newpkg = "bash ~/.dotfiles/newpkg.sh";
rebuild = "sudo nixos-rebuild switch --flake '.#system'";
l = lsCmd;
ls = lsCmd;
};
};
}