added some dev apps and services

This commit is contained in:
2024-08-15 01:11:28 +09:00
parent 70bb31c3f5
commit 15832ba2f3
18 changed files with 102 additions and 5 deletions

View File

@@ -31,7 +31,7 @@
users.users.${userSettings.username} = { users.users.${userSettings.username} = {
isNormalUser = true; isNormalUser = true;
description = userSettings.name; description = userSettings.name;
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" "docker" "input" "flatpak" "dialout" "video" "input" "audio" "libvirtd" ];
packages = with pkgs; []; packages = with pkgs; [];
uid = 1000; uid = 1000;
}; };

View File

@@ -9,6 +9,10 @@
../../system/services/ssh.nix ../../system/services/ssh.nix
../../system/services/polkit.nix ../../system/services/polkit.nix
../../system/services/flatpak.nix ../../system/services/flatpak.nix
../../system/services/steam.nix
../../system/services/tailscale.nix
../../system/services/libvirtd.nix
../../system/services/docker.nix
../../system/hardware/kernel.nix ../../system/hardware/kernel.nix
../../system/hardware/nvidia.nix ../../system/hardware/nvidia.nix
../../system/hardware/opengl.nix ../../system/hardware/opengl.nix

View File

@@ -7,7 +7,13 @@
imports = [ imports = [
../../user/apps/browsers/firefox.nix ../../user/apps/browsers/firefox.nix
../../user/dev/git.nix ../../user/dev/tools/git.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/ide/qtcreator.nix
../../user/utils/alacritty.nix ../../user/utils/alacritty.nix
../../user/wm/xmonad/xmonad.nix ../../user/wm/xmonad/xmonad.nix
]; ];

View File

@@ -1,6 +1,7 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
hardware.graphics.enable = true; hardware.graphics.enable = true;
hardware.graphics.enable32Bit = true;
hardware.graphics.extraPackages = with pkgs; [ hardware.graphics.extraPackages = with pkgs; [
mesa mesa
]; ];

View File

@@ -0,0 +1,17 @@
{ pkgs, config, ... }:
{
virtualisation.docker = {
enable = true;
storageDriver = "overlay2";
enableOnBoot = true;
};
environment.systemPackages = with pkgs; [
docker
docker-compose
docker-buildx
nvidia-container-toolkit
];
hardware.nvidia-container-toolkit.enable = true;
}

View File

@@ -0,0 +1,16 @@
{ config, pkgs, ... }:
{
virtualisation.libvirtd = {
enable = true;
allowedBridges = [
"virbr0"
"nm-bridge"
];
qemu.package = pkgs.qemu_full;
};
environment.systemPackages = with pkgs; [
qemu-utils
virt-manager
];
}

View File

@@ -0,0 +1,5 @@
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.steam ];
programs.steam.enable = true;
}

View File

@@ -0,0 +1,8 @@
{ ... }:
{
services.tailscale = {
enable = true;
openFirewall = true;
interfaceName = "tailscale0";
};
}

View File

@@ -4,6 +4,8 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
vim vim
wget wget
file
jq
htop htop
mc mc
git git

View File

@@ -3,7 +3,7 @@
imports = [ imports = [
./dbus.nix ./dbus.nix
]; ];
services.displayManager.plasma6.enable = true; services.desktopManager.plasma6.enable = true;
environment.plasma6.excludePackages = with pkgs.kdePackages; [ environment.plasma6.excludePackages = with pkgs.kdePackages; [
plasma-browser-integration plasma-browser-integration

View File

@@ -1,4 +1,4 @@
{ config, pkgs, ... }: { config, pkgs, lib, ... }:
{ {
imports = [ imports = [
./fonts.nix ./fonts.nix
@@ -13,7 +13,7 @@
wayland wayland
]; ];
services.displayManager.sddm = { services.displayManager.sddm = lib.mkDefault {
enable = true; enable = true;
wayland.enable = true; wayland.enable = true;
package = pkgs.sddm; package = pkgs.sddm;
@@ -26,6 +26,7 @@
variant = ""; variant = "";
options = ""; options = "";
}; };
dpi = 96;
excludePackages = [ pkgs.xterm ]; excludePackages = [ pkgs.xterm ];
}; };
} }

View File

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

View File

@@ -0,0 +1,4 @@
{ pkgs, ... }:
{
home.packages = [ pkgs.zed-editor ];
}

View File

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

13
user/dev/lang/cc.nix Normal file
View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
home.packages = with pkgs; [
gcc
gdb
cmake
autoconf
automake
libtool
clang-analyzer
clang-tools
];
}

6
user/dev/lang/python.nix Normal file
View File

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

6
user/dev/lang/rust.nix Normal file
View File

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