Compare commits
5 Commits
a32d9c7da9
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c6b918bcf1 | |||
| 602ff1e9ea | |||
| 4f9c7fccde | |||
| 4ca21cb595 | |||
| 4a32000313 |
@@ -6,6 +6,10 @@
|
|||||||
# Allow unfree packages
|
# Allow unfree packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
|
nixpkgs.config.permittedInsecurePackages = [
|
||||||
|
"beekeeper-studio-5.3.4"
|
||||||
|
];
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
ddcutil
|
ddcutil
|
||||||
nix-search-cli
|
nix-search-cli
|
||||||
@@ -16,8 +20,10 @@
|
|||||||
neovim
|
neovim
|
||||||
ripgrep
|
ripgrep
|
||||||
gnumake
|
gnumake
|
||||||
|
freecad
|
||||||
dconf-editor
|
dconf-editor
|
||||||
git
|
git
|
||||||
|
beekeeper-studio # db client gui
|
||||||
pstree
|
pstree
|
||||||
jq
|
jq
|
||||||
nixd
|
nixd
|
||||||
@@ -39,7 +45,6 @@
|
|||||||
inkscape
|
inkscape
|
||||||
flameshot
|
flameshot
|
||||||
thunderbird
|
thunderbird
|
||||||
vscode-fhs
|
|
||||||
gcc
|
gcc
|
||||||
python312
|
python312
|
||||||
python312Packages.nsz
|
python312Packages.nsz
|
||||||
|
|||||||
12
apps/sunshine.nix
Normal file
12
apps/sunshine.nix
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
services.sunshine = {
|
||||||
|
enable = true;
|
||||||
|
autoStart = true;
|
||||||
|
capSysAdmin = true; # only needed for Wayland -- omit this when using with Xorg
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.gnome-randr
|
||||||
|
];
|
||||||
|
}
|
||||||
28
apps/vscode.nix
Normal file
28
apps/vscode.nix
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
(vscode-with-extensions.override {
|
||||||
|
vscodeExtensions = with vscode-extensions; [
|
||||||
|
# bbenoist.nix
|
||||||
|
ms-python.python
|
||||||
|
ms-azuretools.vscode-docker
|
||||||
|
ms-vscode-remote.remote-ssh
|
||||||
|
vscode-extensions.ms-vscode-remote.remote-containers
|
||||||
|
] ++ pkgs.vscode-utils.extensionsFromVscodeMarketplace [
|
||||||
|
{
|
||||||
|
name = "claude-dev";
|
||||||
|
publisher = "saoudrizwan";
|
||||||
|
version = "3.71.0";
|
||||||
|
sha256 = "TzEydphPZ/OmIRJYslFJuk26f97mcIukPDS0WUxMOt4=";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "vscode-mysql-client2";
|
||||||
|
publisher = "cweijan";
|
||||||
|
version = "8.4.5";
|
||||||
|
sha256 = "ypb0TeG5vVEeQIfEUfXYa3VTmP6Dqg7dQispajTBP94=";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
@@ -42,6 +42,10 @@
|
|||||||
LC_TIME = "ru_RU.UTF-8";
|
LC_TIME = "ru_RU.UTF-8";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
networking.hosts = {
|
||||||
|
"127.0.0.1" = [ "dev.tolma.ch" ];
|
||||||
|
};
|
||||||
|
|
||||||
# Enable the X11 windowing system.
|
# Enable the X11 windowing system.
|
||||||
services.xserver.enable = true;
|
services.xserver.enable = true;
|
||||||
|
|
||||||
@@ -80,6 +84,18 @@
|
|||||||
configDir = "/home/venya/.config/syncthing"; # Folder for Syncthing's settings and keys
|
configDir = "/home/venya/.config/syncthing"; # Folder for Syncthing's settings and keys
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.openssh = {
|
||||||
|
enable = true;
|
||||||
|
ports = [ 222 ];
|
||||||
|
settings = {
|
||||||
|
PasswordAuthentication = true;
|
||||||
|
AllowUsers = null; # Allows all users by default. Can be [ "user1" "user2" ]
|
||||||
|
UseDns = true;
|
||||||
|
X11Forwarding = false;
|
||||||
|
PermitRootLogin = "prohibit-password"; # "yes", "without-password", "prohibit-password", "forced-commands-only", "no"
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
fonts = {
|
fonts = {
|
||||||
# https://www.programmingfonts.org/#roboto to check fonts visually
|
# https://www.programmingfonts.org/#roboto to check fonts visually
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||||
volume-step = lib.gvariant.mkInt32 2;
|
volume-step = lib.gvariant.mkInt32 3;
|
||||||
};
|
};
|
||||||
"org/gnome/desktop/wm/preferences" = {
|
"org/gnome/desktop/wm/preferences" = {
|
||||||
num-workspaces = lib.gvariant.mkInt32 5;
|
num-workspaces = lib.gvariant.mkInt32 5;
|
||||||
|
|||||||
@@ -12,12 +12,27 @@
|
|||||||
../apps/apps-list.nix
|
../apps/apps-list.nix
|
||||||
../apps/firefox.nix
|
../apps/firefox.nix
|
||||||
../apps/flameshot.nix
|
../apps/flameshot.nix
|
||||||
|
../apps/sunshine.nix
|
||||||
|
../apps/vscode.nix
|
||||||
../desktop-environments/gnome.nix
|
../desktop-environments/gnome.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use latest kernel.
|
# Use latest kernel.
|
||||||
boot.kernelPackages = pkgs.linuxPackages_latest;
|
boot.kernelPackages = pkgs.linuxPackages_latest;
|
||||||
|
|
||||||
|
swapDevices = [{
|
||||||
|
device = "/var/lib/swapfile";
|
||||||
|
size = 32*1024; # 32 GiB
|
||||||
|
options = [ "discard" ];
|
||||||
|
}];
|
||||||
|
boot.kernel.sysctl = {
|
||||||
|
"vm.swappiness" = 20;
|
||||||
|
};
|
||||||
|
zramSwap = {
|
||||||
|
enable = true;
|
||||||
|
memoryMax = 6 * 1024 * 1024 * 1024;
|
||||||
|
};
|
||||||
|
|
||||||
networking.hostName = "djamba"; # Define your hostname.
|
networking.hostName = "djamba"; # Define your hostname.
|
||||||
|
|
||||||
# Enable networking
|
# Enable networking
|
||||||
@@ -30,13 +45,6 @@
|
|||||||
NIXOS_OZONE_WL = 1;
|
NIXOS_OZONE_WL = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.sunshine = {
|
|
||||||
enable = true;
|
|
||||||
autoStart = true;
|
|
||||||
capSysAdmin = true; # only needed for Wayland -- omit this when using with Xorg
|
|
||||||
openFirewall = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable touchpad support (enabled default in most desktopManager).
|
# Enable touchpad support (enabled default in most desktopManager).
|
||||||
# services.xserver.libinput.enable = true;
|
# services.xserver.libinput.enable = true;
|
||||||
|
|
||||||
|
|||||||
@@ -29,9 +29,6 @@
|
|||||||
boot.supportedFilesystems = ["ntfs"];
|
boot.supportedFilesystems = ["ntfs"];
|
||||||
|
|
||||||
networking.hostName = "nixos"; # Define your hostname.
|
networking.hostName = "nixos"; # Define your hostname.
|
||||||
networking.hosts = {
|
|
||||||
"127.0.0.1" = [ "dev.tolma.ch" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.networkmanager.enable = true;
|
networking.networkmanager.enable = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user