some clean

This commit is contained in:
2025-10-10 20:08:23 +03:00
parent 4c57551ff8
commit fced475e86
101 changed files with 19 additions and 286 deletions
+10
View File
@@ -0,0 +1,10 @@
{
...
}:
{
imports = [
./gramps.nix
./streamrip.nix
./yt-dlp.nix
];
}
+30
View File
@@ -0,0 +1,30 @@
{
config,
pkgs,
xlib,
inputs,
...
}:
let
grampsPath = "${xlib.dirs.wsl-storage}/gramps";
last-stable = import inputs.nixpkgs-last-unstable { system = "x86_64-linux"; };
in
{
xdg = {
configFile = {
"grampsConfig" = {
source = config.lib.file.mkOutOfStoreSymlink grampsPath;
target = "gramps";
};
};
dataFile = {
"grampsData" = {
source = config.lib.file.mkOutOfStoreSymlink grampsPath;
target = "gramps";
};
};
};
home.packages = [
last-stable.gramps
];
}
+22
View File
@@ -0,0 +1,22 @@
{
config,
pkgs,
xlib,
...
}:
let
streamripPath = "${xlib.dirs.wsl-storage}/streamrip";
in
{
xdg = {
configFile = {
"streamrip" = {
source = config.lib.file.mkOutOfStoreSymlink streamripPath;
target = "streamrip";
};
};
};
home.packages = [
pkgs.streamrip
];
}
+22
View File
@@ -0,0 +1,22 @@
{
config,
pkgs,
xlib,
...
}:
let
streamripPath = "${xlib.dirs.wsl-storage}/streamrip";
in
{
# xdg = {
# configFile = {
# "streamrip" = {
# source = config.lib.file.mkOutOfStoreSymlink streamripPath;
# target = "streamrip";
# };
# };
# };
home.packages = [
pkgs.yt-dlp-light
];
}
+6
View File
@@ -0,0 +1,6 @@
{ ... }@flakeContext:
{
homeConfigurations = {
default = import ./home.nix flakeContext;
};
}
+44
View File
@@ -0,0 +1,44 @@
{
config,
pkgs,
lib,
...
}:
let
dotfiles = "${config.home.homeDirectory}/dotfiles/.configs";
symlinks = {
"hypr" = ".config/hypr";
"waybar" = ".config/waybar";
"rofi" = ".config/rofi";
"yazi" = ".config/yazi";
"alacritty" = ".config/alacritty";
"zellij" = ".config/zellij";
"zed" = ".config/zed";
"lazygit" = ".config/lazygit";
"fish/config.fish" = ".config/fish/config.fish";
"git/.gitconfig" = ".gitconfig";
"npm/.npmrc" = ".npmrc";
};
mkLinks = lib.mapAttrs' (src: target: {
name = target;
value.source = config.lib.file.mkOutOfStoreSymlink "${dotfiles}/${src}";
}) symlinks;
in
{
home.username = "tedna";
home.homeDirectory = "/home/tedna";
home.stateVersion = "25.11";
programs.git.enable = true;
programs.starship.enable = true;
programs.fish.enable = false;
home.file = mkLinks;
}
+68
View File
@@ -0,0 +1,68 @@
{ inputs, ... }@flakeContext:
let
homeModule =
{
config,
lib,
pkgs,
xlib,
...
}:
{
imports = [
(./. + "/${xlib.device.type}.nix")
];
home = {
username = xlib.device.username;
stateVersion = lib.mkDefault "25.05";
homeDirectory = lib.mkDefault "/home/${config.home.username}";
enableNixpkgsReleaseCheck = false;
};
};
rootModule =
{
config,
lib,
pkgs,
xlib,
...
}:
{
imports = [
(./. + "/${xlib.device.type}.nix")
];
home = {
username = "root";
stateVersion = lib.mkDefault "25.05";
homeDirectory = lib.mkDefault "/${config.home.username}";
enableNixpkgsReleaseCheck = false;
};
};
nixosModule =
{ xlib, ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
users."${xlib.device.username}" = homeModule;
users.root = rootModule;
sharedModules = [
inputs.plasma-manager.homeModules.plasma-manager
];
extraSpecialArgs = { inherit inputs; };
};
};
in
(
(inputs.home-manager.lib.homeManagerConfiguration {
modules = [
homeModule
rootModule
];
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
})
// {
inherit nixosModule;
}
)
+13
View File
@@ -0,0 +1,13 @@
{
config,
pkgs,
...
}:
{
programs = {
btop.enable = true;
broot.enable = true;
bottom.enable = true;
fastfetch.enable = true;
};
}
+33
View File
@@ -0,0 +1,33 @@
{
config,
pkgs,
...
}:
{
dconf = {
settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = [ "qemu:///system" ];
uris = [ "qemu:///system" ];
};
"org/gnome/shell" = {
disable-user-extensions = false;
enabled-extensions = with pkgs.gnomeExtensions; [
dash-to-panel.extensionUuid
arcmenu.extensionUuid
vitals.extensionUuid
appindicator.extensionUuid
];
disabled-extensions = [ ];
};
"org/gnome/desktop/interface" = {
color-scheme = "prefer-light";
enable-hot-corners = false;
};
};
};
home = {
packages = with pkgs; [
];
};
}
+35
View File
@@ -0,0 +1,35 @@
{
config,
pkgs,
inputs,
xlib,
...
}:
{
xdg = {
dataFile = {
"PrismLauncher" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.soptur-drive}/Games/PrismLauncher";
target = "PrismLauncher";
};
};
};
home.file = {
"Storage" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.vetymae-drive}/Users/oqyude/Storage";
target = "Storage";
};
"Music" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.vetymae-drive}/Users/oqyude/Music";
target = "Music";
};
"Misc" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.vetymae-drive}/Users/oqyude/Misc";
target = "Misc";
};
"Vaults" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.vetymae-drive}/Users/oqyude/Vaults";
target = "Vaults";
};
};
}
+90
View File
@@ -0,0 +1,90 @@
{
config,
pkgs,
inputs,
...
}:
let
last-stable = import inputs.nixpkgs-last-unstable { system = "x86_64-linux"; };
in
{
programs = {
mangohud.enable = true;
keepassxc.enable = true;
zed-editor = {
enable = false;
extensions = [
"nix"
];
userSettings = {
"telemetry" = {
"diagnostics" = false;
"metrics" = false;
};
"ui_font_size" = 20;
"buffer_font_size" = 26;
"theme" = {
"mode" = "system";
"light" = "Ayu Light";
"dark" = "Ayu Dark";
};
};
};
};
services = {
kdeconnect.enable = true;
easyeffects.enable = true;
};
home = {
packages = with pkgs; [
# Surfing
# (brave.override {
# commandLineArgs = [
# "--password-store=basic" # on purpose to make it break "--password-store=gnome-libsecret"
# ];
# })
brave
v2rayn
# Workflow
#cloudflared
amdgpu_top
vscodium
ayugram-desktop
vesktop
discord
gramps
kdePackages.filelight
localsend
lollypop
obsidian
pdfarranger
stretchly
transmission_4-gtk
vlc
#libreoffice-qt6
#normcap
#zerotierone
#nextcloud-client
# (handbrake.overrideAttrs (old: {
# configureFlags = old.configureFlags ++ [ "--enable-vce" ];
# buildInputs = old.buildInputs ++ [
# pkgs.amf
# pkgs.ffmpeg-full
# ];
# }))
# Games
#ludusavi
prismlauncher
#lutris
# AI
#lmstudio
# Libs
#libsecret
];
};
}
+125
View File
@@ -0,0 +1,125 @@
{
config,
pkgs,
...
}:
{
programs = {
kate = {
enable = true;
editor = {
brackets = {
automaticallyAddClosing = true;
highlightMatching = true;
};
font = {
family = "Hack";
pointSize = 14;
};
};
};
plasma = {
enable = true;
overrideConfig = false;
configFile = {
dolphinrc = {
"General" = {
"RememberOpenedTabs" = true;
};
"DetailsMode" = {
"ExpandableFolders" = false;
"PreviewSize" = 32;
"IconSize" = 32;
};
};
"katerc" = {
"KTextEditor View" = {
"Scroll Bar MiniMap" = false;
"Scroll Bar Preview" = false;
};
};
};
input = {
# /proc/bus/input/devices
mice = [
{
acceleration = -0.2;
accelerationProfile = "none";
enable = true;
leftHanded = false;
middleButtonEmulation = false;
name = "Logitech USB Receiver Mouse";
naturalScroll = false;
productId = "c548";
scrollSpeed = 1;
vendorId = "046d";
}
];
touchpads = [
{
accelerationProfile = "none";
disableWhileTyping = true;
enable = true;
leftHanded = true;
middleButtonEmulation = false;
name = "ELAN1203:00 04F3:307A Touchpad";
naturalScroll = true;
pointerSpeed = 0;
productId = "307a";
rightClickMethod = "bottomRight";
scrollMethod = "twoFingers";
tapDragLock = false;
tapToClick = true;
twoFingerTap = "rightClick";
vendorId = "04f3";
}
];
keyboard = {
switchingPolicy = "global";
# options = [
# "altshift"
# ];
layouts = [
{
layout = "us";
}
{
layout = "ru";
}
];
};
};
workspace = {
#clickItemTo = "open"; # If you liked the click-to-open default from plasma 5
lookAndFeel = "com.github.vinceliuice.WhiteSur-alt";
colorScheme = "WhiteSurAlt";
theme = "WhiteSur-Alt";
iconTheme = "WhiteSur";
cursor = {
theme = "Qogir";
size = 24;
};
#wallpaper = "${config.home.homeDirectory}//Misc/Desktops/Wallpapers/Desktop/END_Circle_7.png";
#windowDecorations = {
# library = "org.kde.kwin.aurorae";
# theme = "__aurorae__svg__WhiteSur";
#};
};
kwin = {
edgeBarrier = 0; # Disables the edge-barriers introduced in plasma 6.1
cornerBarrier = false;
#scripts.polonium.enable = true;
nightLight = {
enable = true;
mode = "constant";
temperature.night = 5800;
};
effects.shakeCursor.enable = false;
virtualDesktops = {
number = 2;
rows = 1;
};
};
};
};
}
+81
View File
@@ -0,0 +1,81 @@
{
config,
lib,
pkgs,
xlib,
...
}:
{
imports = [
./minimal.nix
./modules/dconf.nix
./modules/packages.nix
./modules/plasma-manager.nix
./modules/external.nix
];
xdg = {
enable = true;
autostart.enable = true;
configFile = {
"beets" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/beets";
target = "beets";
};
"ludusavi" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/ludusavi/cfg";
target = "ludusavi";
};
"solaar" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/solaar";
target = "solaar";
};
"easyeffects" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/easyeffects";
target = "easyeffects";
};
"keepassxc" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/KeePassXC";
target = "keepassxc";
};
};
dataFile = {
"v2rayN" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.user-storage}/v2rayN";
target = "v2rayN";
};
};
userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.xdg.dataHome}/desktop";
documents = null;
download = "${config.home.homeDirectory}/Downloads";
music = "${config.home.homeDirectory}/Music";
pictures = "${config.home.homeDirectory}/Pictures";
publicShare = "${config.home.homeDirectory}/Misc/Public";
templates = null;
videos = "${config.home.homeDirectory}/Pictures/Videos";
};
};
home = {
file = {
"External" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.therima-drive}";
target = "External";
};
"LM Studio" = {
source = config.lib.file.mkOutOfStoreSymlink "${xlib.dirs.soptur-drive}/AI/LM Studio";
target = ".lmstudio";
};
};
pointerCursor = {
enable = true;
x11.enable = true;
gtk.enable = true;
size = 24;
name = "Qogir";
package = pkgs.qogir-icon-theme;
};
};
}
+52
View File
@@ -0,0 +1,52 @@
{
config,
lib,
pkgs,
xlib,
...
}:
let
# Paths
beetsPath = "${xlib.dirs.storage}/beets/linux";
sshPath = "${xlib.dirs.storage}/ssh/${xlib.device.hostname}";
musicPath = "${config.home.homeDirectory}/External/Music";
in
{
# imports = [
# ./minimal.nix
# ];
xdg = {
configFile = {
"beets" = {
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
target = "beets";
};
};
enable = true;
autostart.enable = true;
userDirs = {
enable = true;
createDirectories = false;
desktop = null;
documents = null;
download = null;
music = null;
pictures = null;
publicShare = null;
templates = null;
videos = null;
};
};
home = {
file = {
".ssh" = {
source = config.lib.file.mkOutOfStoreSymlink sshPath;
target = ".ssh";
};
"Music" = {
source = config.lib.file.mkOutOfStoreSymlink musicPath;
target = "${config.home.homeDirectory}/Music";
};
};
};
}
+27
View File
@@ -0,0 +1,27 @@
{
config,
pkgs,
xlib,
...
}:
{
imports = [
./minimal.nix
];
xdg = {
enable = true;
autostart.enable = true;
userDirs = {
enable = true;
createDirectories = false;
desktop = null;
documents = null;
download = null;
music = null;
pictures = null;
publicShare = null;
templates = null;
videos = null;
};
};
}
+53
View File
@@ -0,0 +1,53 @@
{
config,
pkgs,
xlib,
inputs,
...
}:
let
# Paths
beetsPath = "${xlib.dirs.wsl-storage}/beets/linux";
externalPath = "${xlib.dirs.wsl-home}";
musicPath = "${config.home.homeDirectory}/External/Music";
in
{
imports = [
./apps
./minimal.nix
];
xdg = {
enable = true;
autostart.enable = true;
configFile = {
"beets" = {
source = config.lib.file.mkOutOfStoreSymlink beetsPath;
target = "beets";
};
};
userDirs = {
enable = true;
createDirectories = false;
desktop = null;
documents = null;
download = null;
music = null;
pictures = null;
publicShare = null;
templates = null;
videos = null;
};
};
home = {
file = {
"External" = {
source = config.lib.file.mkOutOfStoreSymlink externalPath;
target = "External";
};
"Music" = {
source = config.lib.file.mkOutOfStoreSymlink musicPath;
target = "${config.home.homeDirectory}/Music";
};
};
};
}