1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-05-13 05:55:16 +00:00

xlib merged with nixpkgs lib, wipe all modules and idk

This commit is contained in:
nixzoid 2025-02-15 23:22:58 +09:00
parent b5d7b5524f
commit 333055b6a8
164 changed files with 877 additions and 531 deletions

View file

@ -76,31 +76,33 @@
### GUIDE FOR CREATE OWN MACHINE & HOME
1. Create directory with your [hostName](./machines/jetpure) in [flakeDir](./)
1. Add your config for machine in [hostDir](./machines/default.nix)
2. Create [default.nix](./machines/jetpure/default.nix) in [flakeDir/hostName](./machines/jetpure)
```nix
{
jetpure = {
path = {
flakeDir = "/persist/flake";
pass = "/persist/vault/passwords.kdbx";
};
sys = {
hostName = "jetpure";
userName = "nixzoid";
is = "desktop";
platform = "x86_64-linux";
ver = "24.05";
};
styl = {
theme = "paradise";
image = "lampa";
};
};
}
```
- Fill it with: [example](./machines/embrace/default.nix)
2. Create directory with your [hostName](./machines/jetpure) in [flakeDir](./)
```nix
{ inputs, lib, ... }:
{
flake = import ../../libx {
inherit inputs lib;
# variables
hostName = "pantheon"; # hostName is ~/flakeDir/hostName
userName = "arthemida"; # userName
flakeDir = "/persist/flake"; # flakeDir
is = "desktop"; # for laptop | desktop | server
# ricing
theme = "chanivibes"; # from inputs.design.base16
image = "default"; # from inputs.design.wallpapers
# sys
plfrm = "x86_64-linux"; # your architecture
ver = "24.05"; # stateVersion
};
}
```
3. Create in [./machines/hostName] directories [home](./machines/jetpure/home) and [host](./machines/jetpure/host)
### PREVIEW
@ -112,4 +114,9 @@
![nill kiggers](https://git.sr.ht/~neverness/design/blob/wallpapers/dotfiles/misc.jpg)
> thanks for [hezaki](https://codeberg.org/Hezaki/Touka), [maxmurr](https://github.com/TheMaxMur/NixOS-Configuration), [artem](https://github.com/ArtemChandragupta/NixFlake)
- thanks for
- [hezaki](https://codeberg.org/Hezaki/Touka)
- [maxmurr](https://github.com/TheMaxMur/NixOS-Configuration)
- [artem](https://github.com/ArtemChandragupta/NixFlake)
- [luis](https://github.com/luishfonseca/nixos-config)
- [roman](https://github.com/nullptroma/nixos-configuration)

283
flake.lock generated
View file

@ -3,11 +3,11 @@
"base16": {
"flake": false,
"locked": {
"lastModified": 1737970797,
"narHash": "sha256-DKIKUaDMzkbep7LTDQALR3N5WF8y0DbdH3Lqr2Sf8dc=",
"lastModified": 1738717251,
"narHash": "sha256-UoN/Emfd0yK6qqK8aJzXzVhtiGq1PotPnM94Rhy1K0E=",
"owner": "~neverness",
"repo": "design",
"rev": "9964adcc5735142f7f4a0b033a77d12f898dc9df",
"rev": "44a4184c255822e7a90fa4474a23f86f3ad78f0d",
"type": "sourcehut"
},
"original": {
@ -111,11 +111,11 @@
]
},
"locked": {
"lastModified": 1738148035,
"narHash": "sha256-KYOATYEwaKysL3HdHdS5kbQMXvzS4iPJzJrML+3TKAo=",
"lastModified": 1739598710,
"narHash": "sha256-x5sK19938Qsi1eWRjQrH/oSN3wT0jSVE2ZJRwDTyojs=",
"owner": "nix-community",
"repo": "disko",
"rev": "18d0a984cc2bc82cf61df19523a34ad463aa7f54",
"rev": "5d6c85c1d0bd634d46a9604e93bce935a06e033b",
"type": "github"
},
"original": {
@ -141,19 +141,17 @@
}
},
"flake-compat": {
"flake": false,
"locked": {
"lastModified": 1733328505,
"narHash": "sha256-NeCCThCEP3eCl2l/+27kNNK7QrwZB1IJCrXfrbv5oqU=",
"owner": "edolstra",
"repo": "flake-compat",
"rev": "ff81ac966bb2cae68946d5ed5fc4994f96d0ffec",
"type": "github"
"lastModified": 1696426674,
"narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
"rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
"revCount": 57,
"type": "tarball",
"url": "https://api.flakehub.com/f/pinned/edolstra/flake-compat/1.0.1/018afb31-abd1-7bff-a5e4-cff7e18efb7a/source.tar.gz"
},
"original": {
"owner": "edolstra",
"repo": "flake-compat",
"type": "github"
"type": "tarball",
"url": "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"
}
},
"flake-compat_2": {
@ -234,11 +232,11 @@
},
"flatpak": {
"locked": {
"lastModified": 1738175805,
"narHash": "sha256-fPjaARmK522JLJ7wxFebxG4eE/3HHSmuAA78iAZ+A7g=",
"lastModified": 1739444422,
"narHash": "sha256-iAVVHi7X3kWORftY+LVbRiStRnQEob2TULWyjMS6dWg=",
"owner": "gmodena",
"repo": "nix-flatpak",
"rev": "d4c75a33c4a7a16bf87cfd804fb5444a1ec53d49",
"rev": "5e54c3ca05a7c7d968ae1ddeabe01d2a9bc1e177",
"type": "github"
},
"original": {
@ -268,15 +266,14 @@
"flake-parts": "flake-parts",
"nixpkgs": [
"nixpkgs"
],
"umu": "umu"
]
},
"locked": {
"lastModified": 1738460253,
"narHash": "sha256-ksCksa9r66Abrk2UWQac0QLV8hUmlr3zdhLlSKvHj3k=",
"lastModified": 1739497168,
"narHash": "sha256-gKF/ZZRAHYvCXwZRDopPfy/kQrL1W7HqiAjjnDn3WSo=",
"owner": "fufexan",
"repo": "nix-gaming",
"rev": "5542800ed394225b5560a25e7fb92455bdcf5b85",
"rev": "78c53283c9c7a4f1ac83ac0354e5f74ef8eacc01",
"type": "github"
},
"original": {
@ -352,11 +349,11 @@
},
"hardware": {
"locked": {
"lastModified": 1738471961,
"narHash": "sha256-cgXDFrplNGs7bCVzXhRofjD8oJYqqXGcmUzXjHmip6Y=",
"lastModified": 1738816619,
"narHash": "sha256-5yRlg48XmpcX5b5HesdGMOte+YuCy9rzQkJz+imcu6I=",
"owner": "NixOS",
"repo": "nixos-hardware",
"rev": "537286c3c59b40311e5418a180b38034661d2536",
"rev": "2eccff41bab80839b1d25b303b53d339fbb07087",
"type": "github"
},
"original": {
@ -366,18 +363,18 @@
"type": "github"
}
},
"home-manager": {
"home": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1738448366,
"narHash": "sha256-4ATtQqBlgsGqkHTemta0ydY6f7JBRXz4Hf574NHQpkg=",
"lastModified": 1739571712,
"narHash": "sha256-0UdSDV/TBY+GuxXLbrLq3l2Fq02ciyKCIMy4qmnfJXQ=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "18fa9f323d8adbb0b7b8b98a8488db308210ed93",
"rev": "6d3163aea47fdb1fe19744e91306a2ea4f602292",
"type": "github"
},
"original": {
@ -386,7 +383,7 @@
"type": "github"
}
},
"home-manager_2": {
"home-manager": {
"inputs": {
"nixpkgs": [
"stylix",
@ -394,11 +391,11 @@
]
},
"locked": {
"lastModified": 1736785676,
"narHash": "sha256-TY0jUwR3EW0fnS0X5wXMAVy6h4Z7Y6a3m+Yq++C9AyE=",
"lastModified": 1737630279,
"narHash": "sha256-wJQCxyMRc4P26zDrHmZiRD5bbfcJpqPG3e2djdGG3pk=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "fc52a210b60f2f52c74eac41a8647c1573d2071d",
"rev": "0db5c8bfcce78583ebbde0b2abbc95ad93445f7c",
"type": "github"
},
"original": {
@ -422,18 +419,39 @@
"type": "github"
}
},
"nixpkgs": {
"nixcord": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": "nixpkgs",
"systems": "systems",
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1738410390,
"narHash": "sha256-xvTo0Aw0+veek7hvEVLzErmJyQkEcRk6PSR4zsRQFEc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3a228057f5b619feb3186e986dbe76278d707b6e",
"lastModified": 1739408191,
"narHash": "sha256-r0662zux0hM5OTdEMR3DLE6MlFNK9Xya8wmwRyKWCO0=",
"owner": "kaylorben",
"repo": "nixcord",
"rev": "13e0ab2cc99c9fd26121c50b7e75bda5745f17cf",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"owner": "kaylorben",
"repo": "nixcord",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1737003892,
"narHash": "sha256-RCzJE9wKByLCXmRBp+z8LK9EgdW+K+W/DXnJS4S/NVo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "ae06b9c2d83cb5c8b12d7d0e32692e93d1379713",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
@ -450,25 +468,13 @@
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
}
},
"nixpkgs-lib_2": {
"locked": {
"lastModified": 1738452942,
"narHash": "sha256-vJzFZGaCpnmo7I6i416HaBLpC+hvcURh/BQwROcGIp8=",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
},
"original": {
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/072a6db25e947df2f31aab9eccd0ab75d5b2da11.tar.gz"
}
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1738579205,
"narHash": "sha256-o6BeeanSUALvz8oL2CHOikVjCf7j+HqlA0WGvKOUX3Q=",
"lastModified": 1739578539,
"narHash": "sha256-jGiez5BtGGJUB/LXzRa+4AQurMO9acc1B69kBfgQhJc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "be5cf18b3d26ba2db938a72ade93ac8a9a7462ff",
"rev": "30d4471a8a2a13b716530d3aad60b9846ea5ff83",
"type": "github"
},
"original": {
@ -479,6 +485,38 @@
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1735554305,
"narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1739446958,
"narHash": "sha256-+/bYK3DbPxMIvSL4zArkMX0LQvS7rzBKXnDXLfKyRVc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "2ff53fe64443980e139eaa286017f53f88336dd0",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1736798957,
"narHash": "sha256-qwpCtZhSsSNQtK4xYGzMiyEDhkNzOCz/Vfu4oL2ETsQ=",
@ -500,14 +538,14 @@
"nixpkgs": [
"nixpkgs"
],
"treefmt-nix": "treefmt-nix"
"treefmt-nix": "treefmt-nix_2"
},
"locked": {
"lastModified": 1738362438,
"narHash": "sha256-EO2dVkMVLThWqv4hobEZEZGWBEuH2Z9SYqQDrbLSclU=",
"lastModified": 1739605281,
"narHash": "sha256-DOtdpYbXNoPt23DxyJo3jPv07tK4BvwoYEDFW2bSxkM=",
"owner": "nix-community",
"repo": "NUR",
"rev": "95ddad0ff0e67c90314c6ca46324dce5f9a910d2",
"rev": "cb61452a3950fa7dc9987e908cffe63da16ed93b",
"type": "github"
},
"original": {
@ -516,24 +554,6 @@
"type": "github"
}
},
"parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib_2"
},
"locked": {
"lastModified": 1738453229,
"narHash": "sha256-7H9XgNiGLKN1G1CgRh0vUL4AheZSYzPm+zmZ7vxbJdo=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "32ea77a06711b758da0ad9bd6a844c5740a87abd",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"root": {
"inputs": {
"base16": "base16",
@ -542,12 +562,12 @@
"flatpak": "flatpak",
"gaming": "gaming",
"hardware": "hardware",
"home-manager": "home-manager",
"home": "home",
"impermanence": "impermanence",
"nixpkgs": "nixpkgs",
"nixcord": "nixcord",
"nixpkgs": "nixpkgs_3",
"nixpkgs-stable": "nixpkgs-stable",
"nur": "nur",
"parts": "parts",
"spicetify": "spicetify",
"stylix": "stylix",
"wallpapers": "wallpapers"
@ -555,18 +575,17 @@
},
"spicetify": {
"inputs": {
"flake-compat": "flake-compat",
"nixpkgs": [
"nixpkgs"
],
"systems": "systems"
"systems": "systems_2"
},
"locked": {
"lastModified": 1738580832,
"narHash": "sha256-xgF3wq6cFYtsgHFNQw8NL6fb+bkeM7LmdNpdp/KTt3Y=",
"lastModified": 1739223162,
"narHash": "sha256-YrbYTM0CkZQG38Ysr2gF4BYdsQDNQtQ4YdQTDgw/zWM=",
"owner": "Gerg-L",
"repo": "spicetify-nix",
"rev": "fb1d78cbac7ceafa01cd8ddddcc1315781852056",
"rev": "dea717737d04a2a3e877c082bfd2c7f91c1a33ff",
"type": "github"
},
"original": {
@ -586,20 +605,21 @@
"flake-utils": "flake-utils",
"git-hooks": "git-hooks",
"gnome-shell": "gnome-shell",
"home-manager": "home-manager_2",
"nixpkgs": "nixpkgs_2",
"systems": "systems_2",
"home-manager": "home-manager",
"nixpkgs": "nixpkgs_4",
"systems": "systems_3",
"tinted-foot": "tinted-foot",
"tinted-kitty": "tinted-kitty",
"tinted-schemes": "tinted-schemes",
"tinted-tmux": "tinted-tmux",
"tinted-zed": "tinted-zed"
},
"locked": {
"lastModified": 1738278499,
"narHash": "sha256-q1SUyXSQ9znHTME53/vPLe+Ga3V1wW3X3gWfa8JsBUM=",
"lastModified": 1739375014,
"narHash": "sha256-0fNbvZ1Dod4rDIfwGnC7CzJ3wRFSF1v5AvNCmNkVgXo=",
"owner": "danth",
"repo": "stylix",
"rev": "b00c9f46ae6c27074d24d2db390f0ac5ebcc329f",
"rev": "e86de61bb8f5f2b6459d0be3e3291ad16db4b777",
"type": "github"
},
"original": {
@ -609,6 +629,20 @@
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"id": "systems",
"type": "indirect"
}
},
"systems_2": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -623,7 +657,7 @@
"type": "github"
}
},
"systems_2": {
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
@ -672,6 +706,22 @@
"type": "github"
}
},
"tinted-schemes": {
"flake": false,
"locked": {
"lastModified": 1737565458,
"narHash": "sha256-y+9cvOA6BLKT0WfebDsyUpUa/YxKow9hTjBp6HpQv68=",
"owner": "tinted-theming",
"repo": "schemes",
"rev": "ae31625ba47aeaa4bf6a98cf11a8d4886f9463d9",
"type": "github"
},
"original": {
"owner": "tinted-theming",
"repo": "schemes",
"type": "github"
}
},
"tinted-tmux": {
"flake": false,
"locked": {
@ -705,6 +755,24 @@
}
},
"treefmt-nix": {
"inputs": {
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1737103437,
"narHash": "sha256-uPNWcYbhY2fjY3HOfRCR5jsfzdzemhfxLSxwjXYXqNc=",
"owner": "numtide",
"repo": "treefmt-nix",
"rev": "d1ed3b385f8130e392870cfb1dbfaff8a63a1899",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "treefmt-nix",
"type": "github"
}
},
"treefmt-nix_2": {
"inputs": {
"nixpkgs": [
"nur",
@ -725,31 +793,6 @@
"type": "github"
}
},
"umu": {
"inputs": {
"nixpkgs": [
"gaming",
"nixpkgs"
]
},
"locked": {
"dir": "packaging/nix",
"lastModified": 1738306689,
"narHash": "sha256-g1p++aLe6q6OdGy3K91uyCjAeBUkkT4uoItSFQT+PJw=",
"ref": "refs/heads/main",
"rev": "7a71163b79e56222fe3f3097d1e71208a91a1a3b",
"revCount": 917,
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
},
"original": {
"dir": "packaging/nix",
"submodules": true,
"type": "git",
"url": "https://github.com/Open-Wine-Components/umu-launcher/?dir=packaging/nix"
}
},
"wallpapers": {
"flake": false,
"locked": {

View file

@ -1,18 +1,19 @@
{
description = ''
_ _ _ ___ ___ __ _ _
| \| |(_)__ __ / _ \ / __| / _|| | __ _ | |__ ___
| .` || |\ \ /| (_) |\__ \ | _|| |/ _` || / // -_)
|_|\_||_|/_\_\ \___/ |___/ |_| |_|\__,_||_\_\\___|
_ _ _ ___ ___ __ _ _
| \| |(_)__ __ / _ \ / __| / _|| | __ _ | |__ ___
| .` || |\ \ /| (_) |\__ \ | _|| |/ _` || / // -_)
|_|\_||_|/_\_\ \___/ |___/ |_| |_|\__,_||_\_\\___|
'';
outputs = args: import ./lib args;
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-stable.url = "github:nixos/nixpkgs/release-24.11";
impermanence.url = "github:nix-community/impermanence";
hardware.url = "github:NixOS/nixos-hardware/master";
parts.url = "github:hercules-ci/flake-parts";
flatpak.url = "github:gmodena/nix-flatpak";
stylix.url = "github:danth/stylix";
@ -24,7 +25,7 @@
url = "github:nix-community/NUR";
inputs.nixpkgs.follows = "nixpkgs";
};
home-manager = {
home = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
@ -36,12 +37,14 @@
url = "github:Gerg-L/spicetify-nix";
inputs.nixpkgs.follows = "nixpkgs";
};
nixcord = {
url = "github:kaylorben/nixcord";
};
cursors = {
url = "github:LilleAila/nix-cursors";
inputs.nixpkgs.follows = "nixpkgs";
};
# design
base16 = {
url = "sourcehut:~neverness/design/base16";
flake = false;
@ -51,11 +54,4 @@
flake = false;
}; # wallpapers
};
outputs =
inputs:
inputs.parts.lib.mkFlake { inherit inputs; } {
systems = [ "x86_64-linux" ]; # system arch
imports = [ ./machines ]; # machines
};
}

92
lib/builder/default.nix Normal file
View file

@ -0,0 +1,92 @@
{
self,
inputs,
...
}:
let
inherit (inputs) nixpkgs home nixcord;
# make configuration
mkMachine =
dirName:
{
path ? {
pass = null;
flakeDir = "/etc/nixos";
},
sys ? {
hostName = "starship";
userName = "amogus";
is = null;
platform = "x86_64-linux";
ver = "24.05";
},
styl ? {
theme = "horizon-dark";
image = "train";
},
}:
let
pkgs = nixpkgs.legacyPackages.${sys.platform};
spArgs = { inherit inputs; };
lib = inputs.nixpkgs.lib.extend (
final: prev: {
x =
{
inherit path styl sys;
}
// import ./options.nix { inherit self pkgs lib; }
// import ./mkOpt.nix { inherit lib; };
}
);
# dirs
modulesDir = "${self}/modules";
machineDir = "${self}/machines/${sys.hostName}";
# make nixossystem/home manager
mkSystem =
n:
let
mod = "${modulesDir}/${n}";
modEx = builtins.pathExists mod;
mac = "${machineDir}/${type}";
macEx = builtins.pathExists mac;
type =
if n == "nixos" then
"host"
else if n == "home" then
"home"
else
"";
in
[ ] ++ lib.optional modEx mod ++ lib.optional macEx mac;
in
lib.nixosSystem {
inherit lib;
specialArgs = spArgs;
modules = [
home.nixosModules.home-manager
{
home-manager = {
sharedModules = [ nixcord.homeManagerModules.nixcord ];
backupFileExtension = "backup";
extraSpecialArgs = spArgs;
useGlobalPkgs = true;
useUserPackages = true;
users.${sys.userName} = {
imports = mkSystem "home";
home = {
username = sys.userName;
stateVersion = sys.ver;
homeDirectory = "/home/${sys.userName}";
};
};
};
}
] ++ mkSystem "nixos";
};
in
builtins.mapAttrs mkMachine

View file

@ -1,8 +1,13 @@
{ lib, ... }:
{
lib,
...
}:
with lib;
let
nu = types.nullOr;
in
rec {
# types and mk*
mkOpt = type: default: mkOption { inherit type default; };

View file

@ -1,22 +1,23 @@
{
inputs,
self,
pkgs,
lib,
...
}:
with lib;
with lib.types;
import ./nixpkgs
// {
stable = inputs.nixpkgs-stable.legacyPackages.x86_64-linux;
with types;
{
# ylib & stylix
customPkgs = name: pkgs.callPackage ../pkgs/${name};
customPkgs = name: pkgs.callPackage "${self}/pkgs/${name}";
umport = import ./umport.nix { inherit lib; };
# enable = true; ++ enable = false;
on.enable = true;
off.enable = false;
# for programs
gen = type: text: lib.generators.${toString type} { } text;
wm.workspaces =
with builtins;
@ -33,3 +34,4 @@ import ./nixpkgs
) 10
));
}
// import ./nixpkgs

View file

@ -2,6 +2,7 @@
lib,
...
}:
let
umport =
{

13
lib/default.nix Normal file
View file

@ -0,0 +1,13 @@
{
self,
...
}@inputs:
let
build = import ./builder { inherit self inputs; };
in
{
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
nixosConfigurations = build (import "${self}/machines");
}

View file

@ -1,76 +0,0 @@
{
inputs,
path ? {
pass = null;
flakeDir = "/etc/nixos";
},
sys ? {
hostName = "starship";
userName = "amogus";
is = null;
platform = "x86_64-linux";
ver = "24.05";
},
styl ? {
theme = "horizon-dark";
image = "train";
},
...
}:
let
# inherits and pkgs/lib
pkgs = nixpkgs.legacyPackages.${sys.platform};
inherit (inputs) home-manager nixpkgs;
inherit (nixpkgs) lib;
# base, foundament
args = { inherit x inputs; };
x =
{
inherit path sys styl;
}
// import ./options.nix { inherit inputs pkgs lib; }
// import ./mkOpt.nix { inherit lib; };
mk =
n:
let
mod = ../modules/${n};
modEx = builtins.pathExists mod;
mac = ../machines/${sys.hostName}/${type};
macEx = builtins.pathExists mac;
type =
if n == "nixos" then
"host"
else if n == "home" then
"home"
else
"";
in
[ ] ++ lib.optional modEx mod ++ lib.optional macEx mac;
in
# configurations
{
formatter = pkgs.nixfmt-rfc-style;
nixosConfigurations.${sys.hostName} = lib.nixosSystem {
specialArgs = args;
modules = [
home-manager.nixosModules.home-manager
{
home-manager = {
backupFileExtension = "backup";
extraSpecialArgs = args;
useGlobalPkgs = true;
useUserPackages = true;
users.${sys.userName} = {
imports = mk "home";
home = {
username = sys.userName;
stateVersion = sys.ver;
homeDirectory = "/home/${sys.userName}";
};
};
};
}
] ++ mk "nixos";
};
}

View file

@ -1,6 +1,36 @@
{
imports = [
./embrace
./jetpure
];
jetpure = {
path = {
flakeDir = "/persist/flake";
pass = "/persist/vault/passwords.kdbx";
};
sys = {
hostName = "jetpure";
userName = "nixzoid";
is = "desktop";
platform = "x86_64-linux";
ver = "24.05";
};
styl = {
theme = "paradise";
image = "lampa";
};
};
embrace = {
path = {
flakeDir = "/persist/flake";
pass = "/persist/vault/passwords.kdbx";
};
sys = {
hostName = "embrace";
userName = "huggyer";
is = "laptop";
platform = "x86_64-linux";
ver = "24.05";
};
styl = {
theme = "neo-gen";
image = "town";
};
};
}

View file

@ -1,21 +0,0 @@
{ inputs, ... }:
{
flake = import ../../libx {
inherit inputs;
path = {
flakeDir = "/persist/flake";
pass = "/persist/vault/passwords.kdbx";
};
sys = {
hostName = "embrace";
userName = "huggyer";
is = "laptop";
platform = "x86_64-linux";
ver = "24.05";
};
styl = {
theme = "neo-gen";
image = "town";
};
};
}

View file

@ -1,7 +1,9 @@
{ x, config, ... }:
{ lib, ... }:
let
inherit (x) on off umport;
inherit (lib.x) on off umport;
in
{
imports = umport {
path = ./.;

View file

@ -1,11 +1,13 @@
{
x,
pkgs,
lib,
...
}:
let
inherit (x) customPkgs;
inherit (lib.x) customPkgs;
in
{
module.programs = {
gui.pkgs = with pkgs; [

View file

@ -1,6 +1,6 @@
{ x, ... }:
{ lib, ... }:
let
inherit (x) on off umport;
inherit (lib.x) on off umport;
in
{
imports = umport {

View file

@ -1,8 +1,9 @@
{
x,
lib,
inputs,
...
}:
{
imports = with inputs; [ impermanence.nixosModules.impermanence ];
environment.persistence."/persist/system" = {
@ -26,7 +27,7 @@
}
];
files = [ "/etc/machine-id" ];
users.${x.userName} = {
users.${lib.x.sys.userName} = {
directories =
let
mode = "0777";

View file

@ -1,21 +0,0 @@
{ inputs, ... }:
{
flake = import ../../libx {
inherit inputs;
path = {
flakeDir = "/persist/flake";
pass = "/persist/vault/passwords.kdbx";
};
sys = {
hostName = "jetpure";
userName = "nixzoid";
is = "desktop";
platform = "x86_64-linux";
ver = "24.05";
};
styl = {
theme = "paradise";
image = "lampa";
};
};
}

View file

@ -1,7 +1,9 @@
{ x, ... }:
{ lib, ... }:
let
inherit (x) on off umport;
inherit (lib.x) on off umport;
in
{
imports = umport {
path = ./.;
@ -36,6 +38,7 @@ in
amberol = off;
spotify = on;
};
nixcord = on;
swayimg = on;
syncthing = on;
telegram = {

View file

@ -1,16 +1,17 @@
{
x,
pkgs,
lib,
...
}:
let
inherit (x) customPkgs;
inherit (lib.x) customPkgs;
in
{
module.programs = {
gui.pkgs = with pkgs; [
portablemc
vesktop
qbittorrent-enhanced
filezilla
libreoffice-fresh
@ -31,6 +32,7 @@ in
optipng
lutgen
cachix
wyvern
hut
sd

View file

@ -1,11 +1,12 @@
{
x,
lib,
...
}:
{
xdg = {
dataFile = {
"bottles/data.yml".text = x.gen "toYAML" {
"bottles/data.yml".text = lib.x.gen "toYAML" {
custom_bottles_path = "/mnt/HDD/Bottles";
};
};

View file

@ -1,7 +1,9 @@
{ x, ... }:
{ lib, ... }:
let
inherit (x) on off umport;
inherit (lib.x) on off umport;
in
{
imports = umport {
path = ./.;

View file

@ -1,4 +1,9 @@
{ inputs, device, ... }:
{
inputs,
device,
...
}:
{
imports = with inputs; [ disko.nixosModules.default ];
disko.devices.disk.main = {

View file

@ -9,6 +9,7 @@ let
];
};
in
{
fileSystems = {
"/mnt/HDD" = def // {

View file

@ -1,6 +1,6 @@
{ x, ... }:
{ lib, ... }:
{
imports = x.umport {
imports = lib.x.umport {
path = ./.;
include = [
./programs/gui/qutebrowser/default.nix

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.misc.dconf;
in
{
options.module.misc.dconf = {
enable = mkBool false;

View file

@ -4,11 +4,13 @@
config,
...
}:
let
inherit (pkgs) libnotify;
dag = lib.hm.dag.entryAfter [ "" ];
papirus = config.stylix.iconTheme.package;
in
{
home.activation.rebuildFinish = dag ''
run ${libnotify}/bin/notify-send "Home-Manager rebuild finished" -t 1500 -i "${papirus}/share/icons/Papirus-Dark/64x64/apps/nix-snowflake.svg"

View file

@ -1,8 +1,10 @@
{
x,
lib,
...
}:
with x;
with lib.x;
{
news.display = "silent";
programs.man = off;

View file

@ -1,8 +1,12 @@
{
x,
lib,
...
}:
with x;
let
inherit (lib) x;
in
{
nix = {
settings = {
@ -12,7 +16,7 @@ with x;
"flakes"
];
trusted-users = [
"${sys.userName}"
"${x.sys.userName}"
"@wheel"
];
extra-substituters = x.nix.substituters;

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
hmdir = config.home.homeDirectory;
in
{
options.module.misc.xdg = {
mime.enable = mkBool false;

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.archivers;
in
{
options = {
module.programs.cli.archivers = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.bat;
in
{
options = {
module.programs.cli.bat = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.cava;
in
{
options = {
module.programs.cli.cava = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.common;
in
{
options = {
module.programs.cli.common = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.eza;
in
{
options = {
module.programs.cli.eza = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.fd;
in
{
options = {
module.programs.cli.fd = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.fetch;
in
{
options = {
module.programs.cli.fetch = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.figlet;
in
{
options = {
module.programs.cli.figlet = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.fzf;
in
{
options = {
module.programs.cli.fzf = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.git;
in
{
options = {
module.programs.cli.git = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.helix;
in
{
options = {
module.programs.cli.helix = {

View file

@ -3,16 +3,18 @@
lib,
...
}:
with pkgs;
let
inherit (lib) getExe;
inherit (pkgs.nodePackages_latest) prettier;
inherit (nodePackages_latest) prettier;
indent = {
tab-width = 2;
unit = " ";
};
auto-format = true;
in
with pkgs;
{
language = [
{

View file

@ -3,7 +3,9 @@
config,
...
}:
with config.lib.stylix.colors.withHashtag;
lib.mkForce {
themo =
let

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.joshuto;
in
{
options = {
module.programs.cli.joshuto = {

View file

@ -2,7 +2,9 @@
config,
...
}:
with config.lib.stylix.colors;
{
lscolors_enabled = true;
tabs.styles = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.legendary;
in
{
options = {
module.programs.cli.legendary = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.lsd;
in
{
options = {
module.programs.cli.lsd = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.micro;
in
{
options = {
module.programs.cli.micro = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.ncmpcpp;
in
{
options = {
module.programs.cli.ncmpcpp = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli;
in
{
options = {
module.programs.cli = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.ripgrep;
in
{
options = {
module.programs.cli.ripgrep = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.rustmission;
in
{
options = {
module.programs.cli.rustmission = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.top;
in
{
options = {
module.programs.cli.top = {

View file

@ -1,8 +1,10 @@
{
x,
lib,
...
}:
with x;
with lib.x;
{
manager = {
prepend_keymap = [
@ -17,6 +19,11 @@ with x;
run = "plugin smart-enter";
desc = "Enter/open";
}
{
on = [ "F" ];
run = "plugin jump-to-char";
desc = "Jump to char";
}
{
on = [ "!" ];
run = "shell '$SHELL' --block --confirm";
@ -276,6 +283,11 @@ with x;
'';
desc = "Yank files systemly";
}
{
on = [ "U" ];
run = "plugin wl-clipboard";
desc = "Yank files to wl-clip";
}
# paste
{
@ -300,7 +312,15 @@ with x;
"f"
];
run = "plugin paste-file";
desc = "Create new file from clipboard";
desc = "Paste file";
}
{
on = [
"p"
"F"
];
run = "plugin paste-file --args='quiet'";
desc = "Paste file quiet";
}
{
on = [

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.yazi;
in
{
options = {
module.programs.cli.yazi = {
@ -23,7 +24,7 @@ in
// import ./sets.nix
// import ./plugins.nix { inherit pkgs; }
// {
keymap = import ./binds.nix { inherit x; };
keymap = import ./binds.nix { inherit lib; };
initLua = import ./lua.nix { inherit config; };
theme = import ./theme.nix { inherit lib config; };
};

View file

@ -2,13 +2,12 @@
config,
...
}:
with config.lib.stylix.colors.withHashtag;
# lua
''
require("archivemount"):setup()
require("full-border"):setup { type = ui.Border.ROUNDED, }
require("yatline-githead"):setup()
require("yatline"):setup({
section_separator = { open = "", close = "" },
part_separator = { open = "", close = "" },

View file

@ -2,76 +2,61 @@
pkgs,
...
}:
with pkgs;
let
mk = name: { ${name} = "${yazi-plugins}/${name}.yazi"; };
plugin = name: text: {
"${name}" = toString (writeTextDir "${name}.yazi/init.lua" text) + "/${name}.yazi";
};
plugin = n: t: { "${n}" = toString (writeTextDir "${n}.yazi/main.lua" t) + "/${n}.yazi"; };
yazi-plugins = fetchFromGitHub {
owner = "yazi-rs";
repo = "plugins";
rev = "71c4fc2e6fa1d6f70c85bf525842d6888d1ffa46";
hash = "sha256-X3R5bsnzGv1TVXOKdhAyspDMguVAyc9tvCxJlypUUAA=";
rev = "beb586aed0d41e6fdec5bba7816337fdad905a33";
hash = "sha256-enIt79UvQnKJalBtzSEdUkjNHjNJuKUWC4L6QFb3Ou4=";
};
in
{
plugins =
# builtin
(mk "max-preview")
// (mk "hide-preview")
(mk "chmod")
// (mk "max-preview")
// (mk "smart-enter")
// (mk "full-border")
// (mk "chmod")
// (mk "hide-preview")
// {
# fetched
yatline = fetchFromGitHub {
owner = "imsi32";
owner = "not-mln";
repo = "yatline.yazi";
rev = "600ed1fb1d04e1292da04280a65f8deca04dc36a";
hash = "sha256-oHCRScbahGaX8MTVNalNXlxQ7NJN5QKvGHbTXreAWFM=";
};
yatline-githead = fetchFromGitHub {
owner = "imsi32";
repo = "yatline-githead.yazi";
rev = "a6377a8b190a8563645e79c6d71e7f398e516c52";
hash = "sha256-SH2BDk8sHZT1L12gJjVbVBipiTwF/KARkuaJfNGdGXg=";
rev = "655facb7c31ddcf96a05185c65dd5b89d5954f2b";
hash = "sha256-fjapFEaM5ORoJJivrzKxwPM9pe6B9UkVqPfOsUPxpEg=";
};
ouch = fetchFromGitHub {
owner = "ndtoan96";
repo = "ouch.yazi";
rev = "b8698865a0b1c7c1b65b91bcadf18441498768e6";
hash = "sha256-eRjdcBJY5RHbbggnMHkcIXUF8Sj2nhD/o7+K3vD3hHY=";
};
archivemount = fetchFromGitHub {
owner = "AnirudhG07";
repo = "archivemount.yazi";
rev = "d4f3e6a41f955a1e821305ddbc16e571917511f4";
hash = "sha256-YoEpAQKXBH/W+IUTWaTZU/Q94Dp5mbLxcGuUi9FezYA=";
rev = "ce6fb75431b9d0d88efc6ae92e8a8ebb9bc1864a";
hash = "sha256-oUEUGgeVbljQICB43v9DeEM3XWMAKt3Ll11IcLCS/PA=";
};
mdcat = fetchFromGitHub {
owner = "GrzegorzKozub";
owner = "xmozoid";
repo = "mdcat.yazi";
rev = "d3d5089d06fe4ed14504726722f89c977f9eb54a";
hash = "sha256-F6rNLWJxMmTOOlna6lev4m1h559BWftfy6pNoTqVGKw=";
rev = "fc6dc5ed991ac650c26aecdf760dfb174d0fb212";
hash = "sha256-lrPFBZASnBkjfJBeQmZizllMr+IoT0Ws+Axa0FBzR0o=";
};
paste = fetchFromGitHub {
owner = "crawraps";
owner = "xmozoid";
repo = "paste-file.yazi";
rev = "e59d60cb82ad8d81268b93d20804c44701eca61c";
hash = "sha256-dV59B5UBBK59TiMv6wfG1EHx9bk3HmpYrQYND1qayTY=";
rev = "ad339a798a09452aed5c3067b4ab66cf3ce63f2e";
hash = "sha256-1nFc1CvM671aTSyIBjWpxDCuxa8T84j4B5jdXhUgkXA=";
};
wl-clipboard = fetchFromGitHub {
owner = "xmozoid";
repo = "wl-clipboard.yazi";
rev = "e3eb54b8d7d2e79d53db90bdb509211d7bceae2f";
hash = "sha256-7eJjNJyC6q+foCF48lwtjCt8fKqHfRWebbp7ymEb5NE=";
};
}
# custom
// (plugin "smart-enter" # lua
''
--- @sync entry
local function setup(self, opts) self.open_multi = opts.open_multi end
local function entry(self)
local h = cx.active.current.hovered
ya.manager_emit(h and h.cha.is_dir and "enter" or "open", { hovered = not self.open_multi })
end return { entry = entry, setup = setup }
''
)
// (plugin "smart-paste" # lua
''
--- @sync entry

View file

@ -3,10 +3,12 @@
config,
...
}:
with config.lib.stylix.colors.withHashtag;
let
fg = "${base06}";
in
lib.mkForce {
manager = {
cwd = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.cli.zoxide;
in
{
options = {
module.programs.cli.zoxide = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.chromium;
in
{
options = {
module.programs.gui.chromium = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.keepass;
in
{
options = {
module.programs.gui.keepass = {

View file

@ -1,10 +1,10 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
@ -16,6 +16,7 @@ let
temurin-jre-bin-8
];
in
{
options = {
module.programs.gui.minecraft = {

View file

@ -1,5 +1,10 @@
{ pkgs, ... }:
{
pkgs,
...
}:
with pkgs;
''
CTRL+1 no-osd change-list glsl-shaders set "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode A (HQ)"
CTRL+2 no-osd change-list glsl-shaders set "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_Soft_VL.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_VL.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl"; show-text "Anime4K: Mode B (HQ)"

View file

@ -1,5 +1,10 @@
{ pkgs, ... }:
{
pkgs,
...
}:
with pkgs;
''
CTRL+1 no-osd change-list glsl-shaders set "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_M.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode A (Fast)"
CTRL+2 no-osd change-list glsl-shaders set "${anime4k}/Anime4K_Clamp_Highlights.glsl:${anime4k}/Anime4K_Restore_CNN_Soft_M.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_M.glsl:${anime4k}/Anime4K_AutoDownscalePre_x2.glsl:${anime4k}/Anime4K_AutoDownscalePre_x4.glsl:${anime4k}/Anime4K_Upscale_CNN_x2_S.glsl"; show-text "Anime4K: Mode B (Fast)"

View file

@ -1,16 +1,17 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
inherit (pkgs) mpvScripts anime4k;
cfg = config.module.programs.gui.mpv;
in
{
options = {
module.programs.gui.mpv = {

View file

@ -1,11 +1,11 @@
{
x,
inputs,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
@ -15,6 +15,7 @@ let
font = config.stylix.fonts;
spicePkgs = inputs.spicetify.legacyPackages.${system};
in
{
options = {
module.programs.gui.music = {

View file

@ -0,0 +1,46 @@
{
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.nixcord;
in
{
options = {
module.programs.gui.nixcord = {
enable = mkBool false;
};
};
config = mkIf cfg.enable {
programs.nixcord = on // {
discord = off;
vesktop = on;
config = {
useQuickCss = true;
frameless = true;
plugins = {
alwaysAnimate = on;
alwaysExpandRoles = on;
betterGifPicker = on;
betterNotesBox = on;
betterRoleDot = on;
betterUploadButton = on;
copyEmojiMarkdown = on;
dearrow = on;
decor = on;
fakeNitro = on;
openInApp = on;
translate = on;
youtubeAdblock = on;
hideAttachments = on;
};
};
};
};
}

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.obs;
in
{
options = {
module.programs.gui.obs = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui;
in
{
options = {
module.programs.gui = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.qbittorrent;
in
{
options = {
module.programs.gui.qbittorrent = {

View file

@ -1,11 +1,14 @@
{
x,
lib,
...
}:
let
inherit (lib) x;
tranPopup = x.customPkgs "qute/tranPopup.nix" { };
translate = x.customPkgs "qute/translate.nix" { };
in
{
normal = {
# move tabs

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.qutebrowser;
in
{
options = {
module.programs.gui.qutebrowser = {
@ -31,7 +32,7 @@ in
on
// import ./sets.nix { inherit lib config; }
// {
keyBindings = import ./binds.nix { inherit x; };
keyBindings = import ./binds.nix { inherit lib; };
greasemonkey = import ./plugins.nix { inherit pkgs; };
};
};

View file

@ -2,9 +2,11 @@
pkgs,
...
}:
let
inherit (pkgs) fetchurl;
in
[
(fetchurl {
url = "https://raw.githubusercontent.com/afreakk/greasemonkeyscripts/refs/heads/master/youtube_sponsorblock.js";

View file

@ -2,6 +2,7 @@
config,
...
}:
{
module.programs.gui.qutebrowser = {
quickmarks = {
@ -12,6 +13,8 @@
# nix
nixpkgs = "search.nixos.org/packages?channel=unstable";
homemanager = "home-manager-options.extranix.com/?query=&release=master";
hydra = "hydra.nixos.org";
prTracker = "nixpk.gs/pr-tracker.html";
# git
ultima = "git.sr.ht/~neverness/ultima";
# social
@ -23,7 +26,7 @@
mastodonMl = "mastodon.ml";
vk = "vk.com";
# anime etc
animeGo = "animego.me";
animeGo = "animego.me/index";
mangaLib = "mangalib.me";
urusai = "urusai.social";
# torrents

View file

@ -1,8 +1,13 @@
{ lib, config }:
{
lib,
config,
}:
let
cfg = config.module.programs.gui.qutebrowser;
f = lib.mkForce;
in
{
quickmarks = cfg.quickmarks;
settings = {

View file

@ -4,6 +4,7 @@
config,
...
}:
let
inherit (pkgs) writeTextFile;
inherit (lib) types mkOption concatMapStringsSep;
@ -36,6 +37,7 @@ let
);
};
in
{
options = {
module.programs.gui.qutebrowser = {

View file

@ -1,12 +1,13 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.swayimg;
font = config.stylix.fonts;

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.syncthing;
in
{
options = {
module.programs.gui.syncthing = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.telegram;
in
{
options = {
module.programs.gui.telegram = {

View file

@ -2,7 +2,9 @@
config,
...
}:
with config.lib.stylix.colors.withHashtag;
# css
''
base00: ${base00};

View file

@ -3,6 +3,7 @@
config,
...
}:
pkgs.writeShellApplication {
name = "walogram";
runtimeInputs = with pkgs; [

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.programs.gui.zathura;
in
{
options = {
module.programs.gui.zathura = {

View file

@ -4,9 +4,11 @@
config,
...
}:
let
inherit (lib) getExe;
in
{
home.shellAliases = with pkgs; {
rebuild = "nh os switch";

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.bash;
in
{
options = {
module.shells.bash = {

View file

@ -27,6 +27,7 @@ let
${pag}_progress ${bg}=magenta black
'';
in
''
${colors}
${pager}

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.fish;
in
{
options = {
module.shells.fish = {

View file

@ -2,7 +2,9 @@
pkgs,
...
}:
with pkgs.fishPlugins;
[
{
name = "grc";

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.nushell;
in
{
options = {
module.shells.nushell = {

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.starship;
in
{
options = {
module.shells.starship = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.tmux;
in
{
options = {
module.shells.tmux = {
@ -19,7 +20,7 @@ in
config = mkIf cfg.enable {
programs.tmux = on // {
shell = pkgs: "${fish}/bin/fish";
shell = "${getExe fish}";
clock24 = true;
keyMode = "vi";
disableConfirmationPrompt = true;

View file

@ -1,14 +1,15 @@
{
x,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.translate;
in
{
options = {
module.shells.translate = {

View file

@ -1,16 +1,17 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.shells.zsh;
abbrs = config.module.shells.abbrs;
in
{
options = {
module.shells.zsh = {
@ -21,7 +22,7 @@ in
config = mkIf cfg.enable {
programs.zsh =
let
plug = import ./plugins.nix { inherit x pkgs; };
plug = import ./plugins.nix { inherit lib pkgs; };
in
with pkgs;
on

View file

@ -1,11 +1,13 @@
{
x,
pkgs,
lib,
...
}:
with pkgs;
{
ohMyZsh = x.on // {
ohMyZsh = lib.x.on // {
plugins = [
"git"
"eza"

View file

@ -1,12 +1,13 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.themes.gtk;
font = config.stylix.fonts;
@ -22,6 +23,7 @@ let
gtk-enable-input-feedback-sounds = 0;
};
in
{
options = {
module.themes.gtk = {

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.themes.kvantum;
in
{
options = {
module.themes.kvantum = {

View file

@ -1,5 +1,5 @@
{
x,
lib,
config,
...
}:
@ -7,7 +7,7 @@
with config.lib.stylix.colors;
let
mk = {
text = x.gen "toINI" {
text = lib.x.gen "toINI" {
ColorScheme = {
active_colors = "#ff${base05}, #ff${base01}, #ff${base01}, #ff${base05}, #ff${base03}, #ff${base04}, #ff${base05}, #ff${base06}, #ff${base05}, #ff${base01}, #ff${base00}, #ff${base03}, #ff${base02}, #ff${base05}, #ff${base09}, #ff${base08}, #ff${base02}, #ff${base05}, #ff${base01}, #ff${base0E}, #8f${base0E}";
inactive_colors = "#ff${base04}, #ff${base01}, #ff${base01}, #ff${base05}, #ff${base03}, #ff${base04}, #ff${base04}, #ff${base04}, #ff${base04}, #ff${base01}, #ff${base00}, #ff${base03}, #ff${base02}, #ff${base05}, #ff${base09}, #ff${base08}, #ff${base02}, #ff${base05}, #ff${base01}, #ff${base0E}, #8f${base0E}";

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.themes.qt;
in
{
options = {
module.themes.qt = {
@ -20,7 +21,7 @@ in
config = mkIf cfg.enable {
xdg.configFile =
import ./qtct.nix { inherit pkgs config; }
// import ./color.nix { inherit x config; };
// import ./color.nix { inherit lib config; };
qt = on // {
platformTheme.name = "qtct";
};

View file

@ -3,6 +3,7 @@
config,
...
}:
let
inherit (config.home) homeDirectory;
inherit (pkgs.libsForQt5) qt5ct;
@ -45,6 +46,7 @@ let
ignored_applications=@Invalid()
'';
in
{
"qt5ct/qt5ct.conf".text = mk qt5ct "qt5ct";
"qt6ct/qt6ct.conf".text = mk qt6ct "qt6ct";

View file

@ -1,16 +1,17 @@
{
x,
pkgs,
lib,
config,
inputs,
...
}:
with lib;
with x;
let
cfg = config.module.themes.stylix;
in
{
options = {
module.themes.stylix = {
@ -113,6 +114,8 @@ in
zathura = on;
qutebrowser = on;
firefox = on;
floorp = on;
halloy = on;
gtk = on;
};
};

View file

@ -1,17 +1,18 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
let
inherit (lib) x getExe;
cfg = config.module.wm.hyprland;
tee = "${pkgs.uutils-coreutils-noprefix}/bin/tee";
pic = "$(xdg-user-dir PICTURES)/$(date +'scr_%d-%m-%y|%H:%M:%S.png')";
mic = ''fixf4=$(cat /sys/class/leds/platform\:\:micmute/brightness); echo $((1-fixf4)) | sudo ${tee} /sys/class/leds/platform\:\:micmute/brightness; wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle'';
in
{
# shortcuts
"$m" = "SUPER";

View file

@ -1,15 +1,16 @@
{
x,
pkgs,
lib,
config,
...
}:
with lib;
with x;
let
cfg = config.module.wm.hyprland;
in
{
options = {
module.wm.hyprland = {
@ -26,7 +27,6 @@ in
settings =
import ./binds.nix {
inherit
x
pkgs
lib
config
@ -35,7 +35,6 @@ in
// import ./rules.nix { inherit config; }
// import ./sets.nix {
inherit
x
pkgs
lib
config

Some files were not shown because too many files have changed in this diff Show more