Compare commits
25 Commits
882d63f0ba
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| c6b918bcf1 | |||
| 602ff1e9ea | |||
| 4f9c7fccde | |||
| 4ca21cb595 | |||
| 4a32000313 | |||
| a32d9c7da9 | |||
| e840e71875 | |||
| a03f7d48ad | |||
| b0d27af111 | |||
| 6c5a01c23b | |||
| 190850691c | |||
| 27c2f8fbc2 | |||
| a2e8ca3af3 | |||
| a852d18579 | |||
| 462433542d | |||
| 92f976f9dc | |||
| 28d27a9f25 | |||
| b292094fa5 | |||
| d2810e4708 | |||
| ccb1899da3 | |||
| 469495fc5c | |||
| cfdf6443d3 | |||
| 5db7c62dd1 | |||
| 470c58dc09 | |||
| a9e6f0b7cc |
70
apps/apps-list.nix
Normal file
70
apps/apps-list.nix
Normal file
@@ -0,0 +1,70 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
nixpkgs.config.permittedInsecurePackages = [
|
||||
"beekeeper-studio-5.3.4"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ddcutil
|
||||
nix-search-cli
|
||||
alacritty
|
||||
yazi
|
||||
mc
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
neovim
|
||||
ripgrep
|
||||
gnumake
|
||||
freecad
|
||||
dconf-editor
|
||||
git
|
||||
beekeeper-studio # db client gui
|
||||
pstree
|
||||
jq
|
||||
nixd
|
||||
nixpkgs-fmt
|
||||
bfg-repo-cleaner
|
||||
lazygit
|
||||
tmux
|
||||
ripgrep
|
||||
dig
|
||||
xclip
|
||||
wget
|
||||
throne
|
||||
nix-index
|
||||
inetutils
|
||||
pciutils
|
||||
tcpdump
|
||||
libstrangle # fps limmiter
|
||||
gparted
|
||||
inkscape
|
||||
flameshot
|
||||
thunderbird
|
||||
gcc
|
||||
python312
|
||||
python312Packages.nsz
|
||||
python312Packages.detect-secrets
|
||||
nodejs_20
|
||||
go
|
||||
jdk
|
||||
appimage-run
|
||||
gnome-tweaks
|
||||
desktop-file-utils
|
||||
vimix-cursors
|
||||
vimix-icon-theme
|
||||
vimix-gtk-themes
|
||||
];
|
||||
|
||||
programs.nix-ld.enable = true;
|
||||
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
|
||||
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
|
||||
};
|
||||
}
|
||||
28
apps/firefox.nix
Normal file
28
apps/firefox.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
let
|
||||
lock-false = {
|
||||
Value = false;
|
||||
Status = "locked";
|
||||
};
|
||||
lock-true = {
|
||||
Value = true;
|
||||
Status = "locked";
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
# preferences = {
|
||||
# };
|
||||
policies = {
|
||||
Preferences = {
|
||||
"widget.wayland.vsync.enabled" = lock-false;
|
||||
"widget.wayland.opaque-region.enabled" = lock-false;
|
||||
"media.ffmpeg.vaapi.enabled" = lock-true;
|
||||
"media.hardware-video-decoding.force-enabled" = lock-true;
|
||||
"apz.fling_friction" = "0.009";
|
||||
"apz.gtk.kinetic_scroll.enabled" = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
53
apps/flameshot.nix
Normal file
53
apps/flameshot.nix
Normal file
@@ -0,0 +1,53 @@
|
||||
# Flameshot with GNOME Wayland clipboard fix
|
||||
# Built from master branch which includes
|
||||
# Fix copy failure on GNOME via GUI
|
||||
# https://github.com/flameshot-org/flameshot/pull/4363
|
||||
# which fixes:
|
||||
# flameshot-org/flameshot#4298: "Screenshot copying to clipboard doesn't work"
|
||||
# https://github.com/flameshot-org/flameshot/issues/4298
|
||||
#
|
||||
# This can be removed once nixpkgs updates flameshot past v13.3.0
|
||||
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
flameshot = prev.flameshot.overrideAttrs (old: {
|
||||
version = "master-2025-01-06";
|
||||
src = prev.fetchFromGitHub {
|
||||
owner = "flameshot-org";
|
||||
repo = "flameshot";
|
||||
rev = "bee989ec55e7034a782fd18bd4e694b74a62ac32";
|
||||
hash = "sha256-/Bq9/wqGEwkxmiXG8N220flBnoybm0/xVVC0pDkf7jw=";
|
||||
};
|
||||
patches = [];
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt \
|
||||
--replace-fail \
|
||||
'# Dependency can be fetched via flatpak builder
|
||||
if(EXISTS "''${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets/CMakeLists.txt")
|
||||
add_subdirectory("''${CMAKE_SOURCE_DIR}/external/Qt-Color-Widgets" EXCLUDE_FROM_ALL)
|
||||
else()
|
||||
FetchContent_Declare(
|
||||
qtColorWidgets
|
||||
GIT_REPOSITORY https://gitlab.com/mattbas/Qt-Color-Widgets.git
|
||||
GIT_TAG 352bc8f99bf2174d5724ee70623427aa31ddc26a
|
||||
)
|
||||
#Workaround for duplicate GUID in windows WIX installer
|
||||
if(WIN32)
|
||||
FetchContent_GetProperties(qtColorWidgets)
|
||||
if(NOT qtcolorwidgets_POPULATED)
|
||||
FetchContent_Populate(qtColorWidgets)
|
||||
add_subdirectory(''${qtcolorwidgets_SOURCE_DIR} ''${qtcolorwidgets_BINARY_DIR} EXCLUDE_FROM_ALL)
|
||||
endif()
|
||||
else()
|
||||
FetchContent_MakeAvailable(qtColorWidgets)
|
||||
endif()
|
||||
endif()' \
|
||||
'find_package(QtColorWidgets REQUIRED)'
|
||||
'';
|
||||
});
|
||||
})
|
||||
];
|
||||
}
|
||||
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=";
|
||||
}
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,153 +0,0 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hardware-configuration.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
boot.loader.systemd-boot.enable = true;
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_8;
|
||||
boot.supportedFilesystems = ["ntfs"];
|
||||
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
# networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
|
||||
|
||||
# Configure network proxy if necessary
|
||||
# networking.proxy.default = "http://user:password@proxy:port/";
|
||||
# networking.proxy.noProxy = "127.0.0.1,localhost,internal.domain";
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Moscow";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "ru_RU.UTF-8";
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "ru_RU.UTF-8";
|
||||
LC_IDENTIFICATION = "ru_RU.UTF-8";
|
||||
LC_MEASUREMENT = "ru_RU.UTF-8";
|
||||
LC_MONETARY = "ru_RU.UTF-8";
|
||||
LC_NAME = "ru_RU.UTF-8";
|
||||
LC_NUMERIC = "ru_RU.UTF-8";
|
||||
LC_PAPER = "ru_RU.UTF-8";
|
||||
LC_TELEPHONE = "ru_RU.UTF-8";
|
||||
LC_TIME = "ru_RU.UTF-8";
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.xserver.displayManager.gdm.enable = true;
|
||||
services.xserver.desktopManager.gnome = {
|
||||
enable = true;
|
||||
extraGSettingsOverridePackages = [ pkgs.gnome.mutter ];
|
||||
extraGSettingsOverrides = ''
|
||||
[org.gnome.mutter]
|
||||
experimental-features=['scale-monitor-framebuffer']
|
||||
'';
|
||||
};
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver = {
|
||||
layout = "us";
|
||||
xkbVariant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
sound.enable = true;
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
# If you want to use JACK applications, uncomment this
|
||||
#jack.enable = true;
|
||||
|
||||
# use the example session manager (no others are packaged yet so this is enabled by default,
|
||||
# no need to redefine it in your config for now)
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.venya = {
|
||||
isNormalUser = true;
|
||||
description = "Dmitry Chumak";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
# thunderbird
|
||||
];
|
||||
};
|
||||
|
||||
# Install firefox.
|
||||
programs.firefox.enable = true;
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
services.flatpak.enable = true;
|
||||
# List packages installed in system profile. To search, run:
|
||||
# $ nix search wget
|
||||
environment.systemPackages = with pkgs; [
|
||||
vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.
|
||||
git
|
||||
tmux
|
||||
wget
|
||||
gparted
|
||||
python312
|
||||
nodejs_20
|
||||
cascadia-code
|
||||
linuxKernel.packages.linux_6_8.cpupower
|
||||
vimix-cursors
|
||||
vimix-icon-theme
|
||||
vimix-gtk-themes
|
||||
|
||||
];
|
||||
|
||||
# Some programs need SUID wrappers, can be configured further or are
|
||||
# started in user sessions.
|
||||
# programs.mtr.enable = true;
|
||||
# programs.gnupg.agent = {
|
||||
# enable = true;
|
||||
# enableSSHSupport = true;
|
||||
# };
|
||||
|
||||
# List services that you want to enable:
|
||||
|
||||
# Enable the OpenSSH daemon.
|
||||
# services.openssh.enable = true;
|
||||
|
||||
# Open ports in the firewall.
|
||||
# networking.firewall.allowedTCPPorts = [ ... ];
|
||||
# networking.firewall.allowedUDPPorts = [ ... ];
|
||||
# Or disable the firewall altogether.
|
||||
# networking.firewall.enable = false;
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
150
defaults/default.nix
Normal file
150
defaults/default.nix
Normal file
@@ -0,0 +1,150 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Bootloader.
|
||||
boot.loader.efi.canTouchEfiVariables = true;
|
||||
boot.loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
useOSProber = true;
|
||||
efiSupport = true;
|
||||
device = "nodev";
|
||||
gfxmodeEfi = "3440x1440";
|
||||
font = "${pkgs.hack-font}/share/fonts/truetype/Hack-Regular.ttf";
|
||||
fontSize = 36;
|
||||
};
|
||||
};
|
||||
boot.kernelModules = ["i2c-dev"];
|
||||
hardware.i2c.enable = true;
|
||||
services.udev.extraRules = ''
|
||||
KERNEL=="i2c-[0-9]*", GROUP="i2c", MODE="0660"
|
||||
'';
|
||||
|
||||
# Set your time zone.
|
||||
time.timeZone = "Europe/Moscow";
|
||||
|
||||
# Select internationalisation properties.
|
||||
i18n.defaultLocale = "ru_RU.UTF-8";
|
||||
i18n.supportedLocales = [
|
||||
"en_US.UTF-8/UTF-8"
|
||||
"ru_RU.UTF-8/UTF-8"
|
||||
];
|
||||
|
||||
i18n.extraLocaleSettings = {
|
||||
LC_ADDRESS = "ru_RU.UTF-8";
|
||||
LC_IDENTIFICATION = "ru_RU.UTF-8";
|
||||
LC_MEASUREMENT = "ru_RU.UTF-8";
|
||||
LC_MONETARY = "ru_RU.UTF-8";
|
||||
LC_NAME = "ru_RU.UTF-8";
|
||||
LC_NUMERIC = "ru_RU.UTF-8";
|
||||
LC_PAPER = "ru_RU.UTF-8";
|
||||
LC_TELEPHONE = "ru_RU.UTF-8";
|
||||
LC_TIME = "ru_RU.UTF-8";
|
||||
};
|
||||
|
||||
networking.hosts = {
|
||||
"127.0.0.1" = [ "dev.tolma.ch" ];
|
||||
};
|
||||
|
||||
# Enable the X11 windowing system.
|
||||
services.xserver.enable = true;
|
||||
|
||||
# Configure keymap in X11
|
||||
services.xserver.xkb = {
|
||||
layout = "us";
|
||||
variant = "";
|
||||
};
|
||||
|
||||
# Enable CUPS to print documents.
|
||||
services.printing.enable = true;
|
||||
|
||||
# Enable sound with pipewire.
|
||||
services.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
enable = true;
|
||||
alsa.enable = true;
|
||||
alsa.support32Bit = true;
|
||||
pulse.enable = true;
|
||||
};
|
||||
|
||||
services.flatpak.enable = true;
|
||||
systemd.services.flatpak-repo = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
path = [ pkgs.flatpak ];
|
||||
script = ''
|
||||
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
'';
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
user = "venya";
|
||||
dataDir = "/home/venya/Documents"; # Default folder for new synced folders
|
||||
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 = {
|
||||
# https://www.programmingfonts.org/#roboto to check fonts visually
|
||||
fontDir = {
|
||||
enable = true;
|
||||
};
|
||||
fontconfig = {
|
||||
defaultFonts = {
|
||||
monospace = [
|
||||
"RecMonoLinear Nerd Font Mono"
|
||||
"Ubuntu Mono"
|
||||
];
|
||||
serif = [
|
||||
"Noto Serif CJK SC"
|
||||
];
|
||||
sansSerif = [
|
||||
"Noto Sans CJK SC"
|
||||
];
|
||||
};
|
||||
localConf = ''
|
||||
<alias>
|
||||
<family>RecMonoLinear Nerd Font Mono</family>
|
||||
<prefer>
|
||||
<family>Roboto Mono</family>
|
||||
</prefer>
|
||||
</alias>
|
||||
'';
|
||||
};
|
||||
packages = with pkgs; [
|
||||
# iosevka
|
||||
ubuntu-classic
|
||||
hack-font
|
||||
cascadia-code
|
||||
roboto-mono
|
||||
nerd-fonts.fira-code
|
||||
nerd-fonts.recursive-mono
|
||||
nerd-fonts.iosevka
|
||||
nerd-fonts.symbols-only
|
||||
noto-fonts-cjk-sans
|
||||
noto-fonts-cjk-serif
|
||||
];
|
||||
|
||||
};
|
||||
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
rootless = {
|
||||
enable = true;
|
||||
setSocketVariable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
88
desktop-environments/gnome.nix
Normal file
88
desktop-environments/gnome.nix
Normal file
@@ -0,0 +1,88 @@
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
# Enable the GNOME Desktop Environment.
|
||||
services.displayManager.gdm = {
|
||||
enable = true;
|
||||
wayland = true;
|
||||
};
|
||||
|
||||
services.desktopManager.gnome = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
programs.dconf.profiles.user.databases = [
|
||||
{
|
||||
lockAll = true; # prevents overriding
|
||||
settings = {
|
||||
# re-login to activate
|
||||
"org/gnome/mutter" = {
|
||||
dynamic-workspaces = false;
|
||||
experimental-features=[
|
||||
"scale-monitor-framebuffer"
|
||||
"xwayland-native-scaling"
|
||||
];
|
||||
};
|
||||
"org/gnome/settings-daemon/plugins/media-keys" = {
|
||||
volume-step = lib.gvariant.mkInt32 3;
|
||||
};
|
||||
"org/gnome/desktop/wm/preferences" = {
|
||||
num-workspaces = lib.gvariant.mkInt32 5;
|
||||
};
|
||||
"org/gnome/desktop/wm/keybindings" = {
|
||||
switch-to-workspace-1 = ["<Control>1"];
|
||||
switch-to-workspace-2 = ["<Control>2"];
|
||||
switch-to-workspace-3 = ["<Control>3"];
|
||||
switch-to-workspace-4 = ["<Control>4"];
|
||||
switch-to-workspace-5 = ["<Control>5"];
|
||||
};
|
||||
"org/gnome/desktop/interface" = {
|
||||
document-font-name = "Noto Sans CJK SC 12 @wght=400";
|
||||
font-name = "Noto Sans CJK SC 11 @wght=400";
|
||||
monospace-font-name = "RecMonoLinear Nerd Font Mono 11";
|
||||
};
|
||||
"org/gnome/shell" = {
|
||||
# disable-user-extensions = true; # Optionally disable user extensions entirely
|
||||
enabled-extensions = [
|
||||
# Put UUIDs of extensions that you want to enable here.
|
||||
# If the extension you want to enable is packaged in nixpkgs,
|
||||
# you can easily get its UUID by accessing its extensionUuid
|
||||
# field (look at the following example).
|
||||
pkgs.gnomeExtensions.blur-my-shell.extensionUuid
|
||||
pkgs.gnomeExtensions.dash-to-dock.extensionUuid
|
||||
pkgs.gnomeExtensions.brightness-control-using-ddcutil.extensionUuid
|
||||
pkgs.gnomeExtensions.caffeine.extensionUuid
|
||||
pkgs.gnomeExtensions.night-theme-switcher.extensionUuid
|
||||
pkgs.gnomeExtensions.primary-input-on-lockscreen.extensionUuid
|
||||
pkgs.gnomeExtensions.tray-icons-reloaded.extensionUuid
|
||||
pkgs.gnomeExtensions.auto-move-windows.extensionUuid
|
||||
|
||||
# Alternatively, you can manually pass UUID as a string.
|
||||
# "blur-my-shell@aunetx"
|
||||
# ...
|
||||
];
|
||||
};
|
||||
"org/gnome/shell/extensions/auto-move-windows" = {
|
||||
application-list = [
|
||||
"Alacritty.desktop:1"
|
||||
"firefox.desktop:2"
|
||||
"thunderbird.desktop:3"
|
||||
"org.telegram.desktop.desktop:4"
|
||||
"steam.desktop:5"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
gnomeExtensions.blur-my-shell
|
||||
gnomeExtensions.dash-to-dock
|
||||
gnomeExtensions.brightness-control-using-ddcutil
|
||||
gnomeExtensions.caffeine
|
||||
gnomeExtensions.night-theme-switcher
|
||||
gnomeExtensions.primary-input-on-lockscreen
|
||||
gnomeExtensions.tray-icons-reloaded
|
||||
gnomeExtensions.auto-move-windows # pin apps to workspaces
|
||||
];
|
||||
}
|
||||
67
hosts/djamba.nix
Normal file
67
hosts/djamba.nix
Normal file
@@ -0,0 +1,67 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hw-djamba.nix
|
||||
../defaults/default.nix
|
||||
../apps/apps-list.nix
|
||||
../apps/firefox.nix
|
||||
../apps/flameshot.nix
|
||||
../apps/sunshine.nix
|
||||
../apps/vscode.nix
|
||||
../desktop-environments/gnome.nix
|
||||
];
|
||||
|
||||
# Use latest kernel.
|
||||
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.
|
||||
|
||||
# Enable networking
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
environment.sessionVariables = rec {
|
||||
# fixing disappering cursor in alacritty - https://github.com/NixOS/nixpkgs/issues/22652
|
||||
XCURSOR_THEME = "Vimix-cursors";
|
||||
# vscode wayland
|
||||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
# Enable touchpad support (enabled default in most desktopManager).
|
||||
# services.xserver.libinput.enable = true;
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.venya = {
|
||||
isNormalUser = true;
|
||||
description = "Dmitry Chumak";
|
||||
extraGroups = [ "networkmanager" "wheel" "i2c"];
|
||||
};
|
||||
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "25.11"; # Did you read the comment?
|
||||
|
||||
}
|
||||
31
hosts/hw-djamba.nix
Normal file
31
hosts/hw-djamba.nix
Normal file
@@ -0,0 +1,31 @@
|
||||
# Do not modify this file! It was generated by ‘nixos-generate-config’
|
||||
# and may be overwritten by future invocations. Please make changes
|
||||
# to /etc/nixos/configuration.nix instead.
|
||||
{ config, lib, pkgs, modulesPath, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ (modulesPath + "/installer/scan/not-detected.nix")
|
||||
];
|
||||
|
||||
boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod" ];
|
||||
boot.initrd.kernelModules = [ ];
|
||||
boot.kernelModules = [ "kvm-amd" ];
|
||||
boot.extraModulePackages = [ ];
|
||||
|
||||
fileSystems."/" =
|
||||
{ device = "/dev/disk/by-uuid/62e051d3-bc3d-440a-9d2b-076ac1dcc19f";
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
fileSystems."/boot" =
|
||||
{ device = "/dev/disk/by-uuid/1882-7312";
|
||||
fsType = "vfat";
|
||||
options = [ "fmask=0077" "dmask=0077" ];
|
||||
};
|
||||
|
||||
swapDevices = [ ];
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -35,4 +35,8 @@
|
||||
|
||||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
|
||||
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
hardware.cpu.amd.ryzen-smu.enable = true;
|
||||
|
||||
# to enable gamepads
|
||||
hardware.steam-hardware.enable = true;
|
||||
}
|
||||
97
hosts/stitch.nix
Normal file
97
hosts/stitch.nix
Normal file
@@ -0,0 +1,97 @@
|
||||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports =
|
||||
[ # Include the results of the hardware scan.
|
||||
./hw-stitch.nix
|
||||
../defaults/default.nix
|
||||
../apps/apps-list.nix
|
||||
../apps/firefox.nix
|
||||
../apps/flameshot.nix
|
||||
../desktop-environments/gnome.nix
|
||||
];
|
||||
|
||||
boot.kernelPackages = pkgs.linuxPackages_6_12;
|
||||
# boot.kernelPatches = [
|
||||
# {
|
||||
# name = "amd-drm-glitch-fix";
|
||||
# patch = (pkgs.fetchurl {
|
||||
# url = "https://patchwork.freedesktop.org/patch/605900/raw/";
|
||||
# hash = "sha256-WR537QGQak5pwm4BnLiQ/pc7gAkn2SdI3QRvGTRZSFE=";
|
||||
# });
|
||||
# }
|
||||
# ];
|
||||
boot.kernelParams = ["amd_pstate=active" "iommu=relaxed"];
|
||||
boot.supportedFilesystems = ["ntfs"];
|
||||
|
||||
networking.hostName = "nixos"; # Define your hostname.
|
||||
|
||||
networking.networkmanager.enable = true;
|
||||
|
||||
environment.sessionVariables = rec {
|
||||
# fixing disappering cursor in alacritty - https://github.com/NixOS/nixpkgs/issues/22652
|
||||
XCURSOR_THEME = "Vimix-cursors";
|
||||
# vscode wayland
|
||||
NIXOS_OZONE_WL = 1;
|
||||
};
|
||||
|
||||
# xteink4 crosspoint env
|
||||
services.udev.packages = with pkgs; [
|
||||
platformio-core.udev
|
||||
openocd
|
||||
];
|
||||
|
||||
services.cpupower-gui.enable = true;
|
||||
services.power-profiles-daemon.enable = false;
|
||||
services.tlp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||
|
||||
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||
|
||||
CPU_MIN_PERF_ON_AC = 0;
|
||||
CPU_MAX_PERF_ON_AC = 100;
|
||||
CPU_MIN_PERF_ON_BAT = 0;
|
||||
CPU_MAX_PERF_ON_BAT = 20;
|
||||
|
||||
USB_EXCLUDE_BTUSB = 1;
|
||||
|
||||
#Optional helps save long term battery health
|
||||
START_CHARGE_THRESH_BAT0 = 40; # 40 and bellow it starts to charge
|
||||
STOP_CHARGE_THRESH_BAT0 = 80; # 80 and above it stops charging
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
# Define a user account. Don't forget to set a password with ‘passwd’.
|
||||
users.users.venya = {
|
||||
isNormalUser = true;
|
||||
description = "Dmitry Chumak";
|
||||
extraGroups = [ "networkmanager" "wheel" ];
|
||||
packages = with pkgs; [
|
||||
];
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
cpupower-gui
|
||||
ryzenadj
|
||||
powertop
|
||||
linuxKernel.packages.linux_6_12.cpupower
|
||||
linuxKernel.packages.linux_6_12.ryzen-smu
|
||||
];
|
||||
|
||||
# This value determines the NixOS release from which the default
|
||||
# settings for stateful data, like file locations and database versions
|
||||
# on your system were taken. It‘s perfectly fine and recommended to leave
|
||||
# this value at the release version of the first install of this system.
|
||||
# Before changing this value read the documentation for this option
|
||||
# (e.g. man configuration.nix or on https://nixos.org/nixos/options.html).
|
||||
system.stateVersion = "23.11"; # Did you read the comment?
|
||||
}
|
||||
Reference in New Issue
Block a user