treewide: upstreaming changes

Signed-off-by: s0me1newithhand7s <117505144+s0me1newithhand7s@users.noreply.github.com>
This commit is contained in:
s0me1newithhand7s 2025-10-24 20:48:35 +03:00
parent d159232b37
commit e4e1b03c7e
No known key found for this signature in database
160 changed files with 3408 additions and 5474 deletions

741
flake.nix
View file

@ -1,25 +1,20 @@
{
description = "main flake.";
description = "hand7s'es flake";
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
agenix = {
flake = true;
type = "github";
owner = "yaxitech";
repo = "ragenix";
};
nixos-hardware = {
url = "github:nixos/nixos-hardware";
};
agenix-rekey = {
flake = true;
type = "github";
owner = "oddlama";
repo = "agenix-rekey";
nixgl = {
url = "github:nix-community/nixGL";
};
nur = {
url = "github:nix-community/NUR";
};
nixos-generators = {
url = "github:nix-community/nixos-generators";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -27,25 +22,41 @@
};
};
nixos-anywhere = {
url = "github:nix-community/nixos-anywhere";
ayugram-desktop = {
flake = true;
type = "github";
owner = "ndfined-crp";
repo = "ayugram-desktop";
};
impermanence = {
url = "github:nix-community/impermanence";
chaotic = {
flake = true;
type = "github";
owner = "chaotic-cx";
repo = "nyx";
ref = "nyxpkgs-unstable";
};
home-manager = {
url = "github:nix-community/home-manager/";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
deploy-rs = {
flake = true;
type = "github";
owner = "serokell";
repo = "deploy-rs";
};
devshell = {
flake = true;
type = "github";
owner = "numtide";
repo = "devshell";
};
disko = {
url = "github:nix-community/disko";
flake = true;
type = "github";
owner = "nix-community";
repo = "disko";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -53,8 +64,68 @@
};
};
flake-parts = {
flake = true;
type = "github";
owner = "hercules-ci";
repo = "flake-parts";
};
freesm = {
flake = true;
type = "github";
owner = "freesmteam";
repo = "freesmlauncher";
};
home-manager = {
flake = true;
type = "github";
owner = "nix-community";
repo = "home-manager";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
homebrew-bundle = {
flake = false;
type = "github";
owner = "homebrew";
repo = "homebrew-bundle";
};
homebrew-cask = {
flake = false;
type = "github";
owner = "homebrew";
repo = "homebrew-cask";
};
homebrew-core = {
flake = false;
type = "github";
owner = "homebrew";
repo = "homebrew-core";
};
hyprland = {
flake = true;
type = "github";
owner = "hyprwm";
repo = "Hyprland";
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.4.2";
flake = true;
type = "github";
owner = "nix-community";
repo = "lanzaboote";
ref = "v0.4.2";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -62,12 +133,52 @@
};
};
vscserver = {
url = "github:nix-community/nixos-vscode-server";
nekoflake = {
flake = true;
type = "github";
owner = "s0me1newithhand7s";
repo = "nekoflake";
};
nix-darwin = {
flake = true;
type = "github";
owner = "LnL7";
repo = "nix-darwin";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
nix-homebrew = {
flake = true;
type = "github";
owner = "zhaofengli";
repo = "nix-homebrew";
};
nix-index-database = {
flake = true;
type = "github";
owner = "nix-community";
repo = "nix-index-database";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
nix-on-droid = {
url = "github:nix-community/nix-on-droid/master";
flake = true;
type = "github";
owner = "nix-community";
repo = "nix-on-droid";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -79,24 +190,19 @@
};
};
stylix = {
url = "github:nix-community/stylix";
nixos-anywhere = {
flake = true;
type = "github";
owner = "nix-community";
repo = "nixos-anywhere";
};
freesm = {
url = "github:FreesmTeam/FreesmLauncher";
};
nixos-generators = {
flake = true;
type = "github";
owner = "nix-community";
repo = "nixos-generators";
agenix = {
url = "github:ryantm/agenix";
};
chaotic = {
url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
};
nix-darwin = {
url = "github:LnL7/nix-darwin/master";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -104,102 +210,56 @@
};
};
nix-homebrew = {
url = "github:zhaofengli-wip/nix-homebrew";
nixpkgs = {
flake = true;
type = "github";
owner = "nixos";
repo = "nixpkgs";
ref = "nixos-unstable";
};
homebrew-core = {
url = "github:homebrew/homebrew-core";
flake = false;
noctalia = {
flake = true;
type = "github";
owner = "noctalia-dev";
repo = "noctalia-shell";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
quickshell = {
follows = "quickshell";
};
};
};
homebrew-cask = {
url = "github:homebrew/homebrew-cask";
flake = false;
};
quickshell = {
flake = true;
type = "git";
url = "https://git.outfoxxed.me/outfoxxed/quickshell";
homebrew-bundle = {
url = "github:homebrew/homebrew-bundle";
flake = false;
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
sops-nix = {
url = "github:Mic92/sops-nix";
};
ayugram-desktop = {
url = "github:ndfined-crp/ayugram-desktop/";
};
hyprland = {
url = "github:hyprwm/Hyprland";
};
hyprplugs = {
url = "github:hyprwm/hyprland-plugins";
inputs = {
hyprland = {
follows = "hyprland";
};
};
};
hyprsplit = {
url = "github:Duckonaut/split-monitor-workspaces";
inputs = {
hyprland = {
follows = "hyprland";
};
};
};
hyprpanel = {
url = "github:hyprwm/Hyprland/v0.49.0";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
hypremot = {
url = "github:zakk4223/hyprland-easymotion";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
hyprcurs = {
url = "github:VirtCode/hypr-dynamic-cursors";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
hyprspace = {
url = "github:KZDKM/Hyprspace";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
hyprgrass = {
url = "github:horriblename/hyprgrass";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
flake = true;
type = "github";
owner = "Mic92";
repo = "sops-nix";
};
spicetify-nix = {
url = "github:Gerg-L/spicetify-nix";
flake = true;
type = "github";
owner = "Gerg-L";
repo = "spicetify-nix";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -207,8 +267,46 @@
};
};
stylix = {
flake = true;
type = "github";
owner = "nix-community";
repo = "stylix";
};
system-manager = {
flake = true;
type = "github";
owner = "numtide";
repo = "system-manager";
inputs = {
nixpkgs = {
follows = "nixpkgs";
};
};
};
treefmt-nix = {
flake = true;
type = "github";
owner = "numtide";
repo = "treefmt-nix";
};
vscserver = {
flake = true;
type = "github";
owner = "nix-community";
repo = "nixos-vscode-server";
};
zen-browser = {
url = "github:youwen5/zen-browser-flake";
flake = true;
type = "github";
owner = "youwen5";
repo = "zen-browser-flake";
inputs = {
nixpkgs = {
follows = "nixpkgs";
@ -217,161 +315,242 @@
};
};
outputs = {
outputs = inputs @ {
flake-parts,
self,
nixpkgs,
home-manager,
...
} @ inputs: let
pkgs = self.inputs.nixpkgs.legacyPackages.x86_64-linux;
in {
formatter = {
x86_64-linux = self.packages.x86_64-linux.hand7sfmt;
};
}:
flake-parts.lib.mkFlake {
inherit
inputs
self
;
} {
systems = [
"x86_64-linux"
"aarch64-linux"
];
packages = {
x86_64-linux = {
hand7sfmt = pkgs.writeShellApplication {
name = "hand7sfmt";
runtimeInputs = with pkgs; [
alejandra
statix
deadnix
imports = [
# modules
inputs.devshell.flakeModule
inputs.treefmt-nix.flakeModule
inputs.home-manager.flakeModules.home-manager
];
flake = {
homeConfigurations = {
"hand7s" = inputs.home-manager.lib.homeManagerConfiguration {
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/hand7s/standalone.nix"
inputs.spicetify-nix.homeManagerModules.default
inputs.hyprland.homeManagerModules.default
inputs.chaotic.homeManagerModules.default
inputs.sops-nix.homeManagerModules.sops
inputs.nix-index-database.homeModules.nix-index
inputs.noctalia.homeModules.default
];
};
};
nixosConfigurations = {
"s0mePC-nix" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0mePC-nix/"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index
];
};
"s0melapt0p-nix" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0melapt0p-nix/"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.home-manager
inputs.lanzaboote.nixosModules.lanzaboote
inputs.nix-index-database.nixosModules.nix-index
];
};
"s0mev1rtn0de-nix" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0mev1rtn0de-nix/"
inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.default
inputs.sops-nix.nixosModules.sops
inputs.nix-index-database.nixosModules.nix-index
];
};
"s0meMiniPC-nix" = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0meMiniPC-nix"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index
];
};
};
nixOnDroidConfigurations = {
n0thing-3a = inputs.nix-on-droid.lib.nixOnDroidConfiguration {
pkgs = import inputs.nixpkgs {
system = "aarch64-linux";
overlays = [
inputs.nix-on-droid.overlays.default
];
};
extraSpecialArgs = {
inherit
inputs
self
;
};
modules = [
inputs.home-manager.nixOnDroidModules.default
];
};
};
systemConfigs = {
s0mePC = inputs.system-manager.lib.makeSystemConfig {
extraSpecialArgs = {
inherit
inputs
self
;
};
modules = [
# "${self}/s0mePC/"
inputs.home-manager.nixosModules.default
{
nixpkgs.hostPlatform = "x86_64-linux";
}
];
};
};
deploy = {
user = "hand7s";
interactiveSudo = true;
autoRollback = true;
magicRollback = true;
remoteBuild = false;
sshOpts = [
"-p"
"6969"
];
text = ''
${nixpkgs.lib.getExe pkgs.alejandra} \
--experimental-config \
${pkgs.writeText "alejandra.toml" ''
indentation = "FourSpaces"
''} \
--check \
${self}; \
${nixpkgs.lib.getExe pkgs.statix} \
check \
--config \
${pkgs.writeText "statix.toml" ''
disabled = [
nodes = {
"s0mev1rtn0de-nix" = {
hostname = "90.156.226.152";
profiles = {
main = {
path = inputs.deploy-rs.lib.x86_64-linux.activate.nixos self.nixosConfigurations.s0mev1rtn0de-nix;
profilePath = "/nix/var/nix/profiles/system";
};
};
};
};
};
};
perSystem = {...}: {
treefmt = {
flakeFormatter = true;
flakeCheck = false;
enableDefaultExcludes = true;
programs = {
statix = {
enable = true;
priority = 1;
includes = [
"*.nix"
];
disabled-lints = [
"empty_pattern"
]
''} \
${self}; \
${nixpkgs.lib.getExe pkgs.deadnix} \
--fail \
${self};
'';
];
};
deadnix = {
enable = true;
priority = 2;
includes = [
"*.nix"
];
};
};
settings = {
global = {
on-unmatched = "fatal";
excludes = [
"secrets/*"
".sops.yaml"
".gitignore"
];
};
};
};
};
};
devShells = {
x86_64-linux = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
alejandra
statix
deadnix
];
};
};
};
homeConfigurations = {
hand7s = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/hand7s/standalone.nix"
inputs.stylix.homeManagerModules.stylix
inputs.chaotic.homeManagerModules.default
inputs.sops-nix.homeManagerModules.sops
inputs.spicetify-nix.homeManagerModules.default
inputs.hyprland.homeManagerModules.default
];
};
};
nixosConfigurations = {
s0mePC-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0mePC-nix/default.nix"
"${self}/s0mePC-nix/disko.nix"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.default
];
};
s0meMiniPC-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0meMiniPC-nix/default.nix"
"${self}/s0meMiniPC-nix/disko.nix"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.lanzaboote.nixosModules.lanzaboote
inputs.home-manager.nixosModules.default
];
};
s0men0de-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit inputs self;
};
modules = [
"${self}/s0men0de-nix/default.nix"
"${self}/s0men0de-nix/disko.nix"
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.default
];
};
s0melapt0p-nix = nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = {
inherit
inputs
self
;
};
modules = [
"${self}/s0melapt0p-nix/default.nix"
"${self}/s0melapt0p-nix/disko.nix"
inputs.chaotic.nixosModules.default
inputs.stylix.nixosModules.stylix
inputs.sops-nix.nixosModules.sops
inputs.disko.nixosModules.disko
inputs.home-manager.nixosModules.home-manager
inputs.lanzaboote.nixosModules.lanzaboote
];
};
};
};
}