Update ~8/26/24
This commit is contained in:
@@ -18,12 +18,16 @@
|
|||||||
../../system/hardware/opengl.nix
|
../../system/hardware/opengl.nix
|
||||||
../../system/hardware/bluetooth.nix
|
../../system/hardware/bluetooth.nix
|
||||||
../../system/wm/sddm.nix
|
../../system/wm/sddm.nix
|
||||||
|
../../system/hardware/inputMethods.nix
|
||||||
|
../../system/env.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the systemd-boot EFI boot loader.
|
# Use the systemd-boot EFI boot loader.
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
boot.loader.efi.canTouchEfiVariables = true;
|
boot.loader.efi.canTouchEfiVariables = true;
|
||||||
|
|
||||||
|
systemd.enableUnifiedCgroupHierarchy = false;
|
||||||
|
|
||||||
programs.appimage = {
|
programs.appimage = {
|
||||||
enable = true;
|
enable = true;
|
||||||
binfmt = true;
|
binfmt = true;
|
||||||
|
|||||||
@@ -2,13 +2,16 @@
|
|||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../../user/apps/browsers/firefox.nix
|
../../user/apps/browsers/firefox.nix
|
||||||
|
../../user/apps/thunderbird.nix
|
||||||
../../user/dev/tools/git.nix
|
../../user/dev/tools/git.nix
|
||||||
../../user/dev/tools/gitui.nix
|
../../user/dev/tools/gitui.nix
|
||||||
|
../../user/dev/tools/firefox-devedition.nix
|
||||||
../../user/dev/editor/vscodium.nix
|
../../user/dev/editor/vscodium.nix
|
||||||
../../user/dev/editor/zed-editor.nix
|
../../user/dev/editor/zed-editor.nix
|
||||||
../../user/dev/lang/cc.nix
|
../../user/dev/lang/cc.nix
|
||||||
../../user/dev/lang/python.nix
|
../../user/dev/lang/python.nix
|
||||||
../../user/dev/lang/rust.nix
|
../../user/dev/lang/rust.nix
|
||||||
|
../../user/dev/lang/ecmascript.nix
|
||||||
../../user/dev/ide/qtcreator.nix
|
../../user/dev/ide/qtcreator.nix
|
||||||
../../user/apps/utils/alacritty.nix
|
../../user/apps/utils/alacritty.nix
|
||||||
../../user/apps/utils/keepassxc.nix
|
../../user/apps/utils/keepassxc.nix
|
||||||
@@ -19,7 +22,11 @@
|
|||||||
../../user/apps/media/vlc.nix
|
../../user/apps/media/vlc.nix
|
||||||
../../user/apps/media/mpv.nix
|
../../user/apps/media/mpv.nix
|
||||||
../../user/apps/media/yt-dlp.nix
|
../../user/apps/media/yt-dlp.nix
|
||||||
|
../../user/apps/graphics/gimp.nix
|
||||||
|
../../user/apps/graphics/inkscape.nix
|
||||||
../../user/apps/games/mangohud.nix
|
../../user/apps/games/mangohud.nix
|
||||||
|
../../user/apps/office/texlive.nix
|
||||||
|
../../user/shell/bash.nix
|
||||||
../../user/wm/xmonad/xmonad.nix
|
../../user/wm/xmonad/xmonad.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/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
|
if [ -z "$NIXOSSYSCONFIG" ]; then
|
||||||
echo "Error: Env Variable Missing, NIXOSSYSCONFIG"
|
echo "Error: Env Variable Missing, NIXOSSYSCONFIG"
|
||||||
|
|||||||
7
system/env.nix
Normal file
7
system/env.nix
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
environment.variables = {
|
||||||
|
EDITOR = "vim";
|
||||||
|
MOZ_ENABLE_WAYLAND = 1;
|
||||||
|
};
|
||||||
|
}
|
||||||
13
system/hardware/inputMethods.nix
Normal file
13
system/hardware/inputMethods.nix
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
{ config, lib, pkgs, systemSettings, ... }:
|
||||||
|
{
|
||||||
|
i18n = {
|
||||||
|
inputMethod = {
|
||||||
|
enabled = "fcitx5";
|
||||||
|
fcitx5 = {
|
||||||
|
waylandFrontend = true;
|
||||||
|
plasma6Support = true;
|
||||||
|
addons = with pkgs; [ fcitx5-mozc ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -8,5 +8,6 @@
|
|||||||
powerManagement.finegrained = false;
|
powerManagement.finegrained = false;
|
||||||
open = true;
|
open = true;
|
||||||
nvidiaSettings = true;
|
nvidiaSettings = true;
|
||||||
|
package = config.boot.kernelPackages.nvidiaPackages.production;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,14 @@
|
|||||||
{ pkgs, config, ... }:
|
{ pkgs, config, lib, ... }:
|
||||||
{
|
{
|
||||||
|
virtualisation.containers.enable = true;
|
||||||
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "overlay2";
|
storageDriver = "overlay2";
|
||||||
enableOnBoot = true;
|
enableOnBoot = true;
|
||||||
|
daemon.settings = {
|
||||||
|
features.cdi = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
@@ -13,5 +18,5 @@
|
|||||||
nvidia-container-toolkit
|
nvidia-container-toolkit
|
||||||
];
|
];
|
||||||
|
|
||||||
hardware.nvidia-container-toolkit.enable = true;
|
hardware.nvidia-container-toolkit.enable = lib.lists.elem "nvidia" config.services.xserver.videoDrivers;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
vim
|
vim
|
||||||
wget
|
wget
|
||||||
file
|
file
|
||||||
|
eza
|
||||||
jq
|
jq
|
||||||
htop
|
htop
|
||||||
mc
|
mc
|
||||||
|
|||||||
3
user/.profile
Normal file
3
user/.profile
Normal 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}"
|
||||||
6
user/apps/graphics/gimp.nix
Normal file
6
user/apps/graphics/gimp.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
gimp
|
||||||
|
];
|
||||||
|
}
|
||||||
6
user/apps/graphics/inkscape.nix
Normal file
6
user/apps/graphics/inkscape.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
inkscape
|
||||||
|
];
|
||||||
|
}
|
||||||
20
user/apps/office/texlive.nix
Normal file
20
user/apps/office/texlive.nix
Normal 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
|
||||||
|
];
|
||||||
|
}
|
||||||
6
user/apps/thunderbird.nix
Normal file
6
user/apps/thunderbird.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
thunderbird
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
cmake
|
cmake
|
||||||
autoconf
|
autoconf
|
||||||
automake
|
automake
|
||||||
|
gnumake
|
||||||
libtool
|
libtool
|
||||||
clang-analyzer
|
clang-analyzer
|
||||||
clang-tools
|
clang-tools
|
||||||
|
|||||||
6
user/dev/lang/ecmascript.nix
Normal file
6
user/dev/lang/ecmascript.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
nodejs_20
|
||||||
|
];
|
||||||
|
}
|
||||||
6
user/dev/tools/firefox-devedition.nix
Normal file
6
user/dev/tools/firefox-devedition.nix
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
firefox-devedition-bin
|
||||||
|
];
|
||||||
|
}
|
||||||
4
user/profile.nix
Normal file
4
user/profile.nix
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{ config, ... }:
|
||||||
|
{
|
||||||
|
home.file.".profile".source = ./.profile;
|
||||||
|
}
|
||||||
20
user/shell/bash.nix
Normal file
20
user/shell/bash.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user