Release Ver 1.2.0

This commit is contained in:
Peritia 2025-08-13 11:40:03 +02:00
parent 7f73899c91
commit 89600ebb06
25 changed files with 1862 additions and 57 deletions

View file

@ -9,27 +9,69 @@ in {
################################################################
imports = [
# Home Manager integration
inputs.home-manager.nixosModules.home-manager
# Host-specific hardware configuration (autogenerated)
./hardware-configuration.nix
# Nyx
inputs.nyx.nixosModules.default
# Other imports:
# ......
];
################################################################
# Nyx Tools Configuration
################################################################
nyx = {
# Global settings
enable = true;
username = username;
nixDirectory = nixDirectory;
logDir = "/home/${username}/.nyx/logs";
autoPush = false;
# Tool-specific settings
nyx-rebuild = {
enable = true;
formatter = "alejandra";
enableFormatting = false;
editor = "nvim";
startEditor = false;
enableAlias = false;
};
nyx-cleanup = {
enable = true;
keepGenerations = 5;
enableAlias = false;
};
nyx-tui = {
enable = true;
enableAlias = false;
};
nyx-tool = {
enable = true; # must be enabled for others
};
};
################################################################
# Home Manager Configuration
################################################################
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
backupFileExtension = "delme-HMbackup";
# Please use this backup File Extension to ensure that the bug won't cause any problems
# nyx-rebuild deletes the backups on each rebuild before rebuilding
# HM Bug: https://discourse.nixos.org/t/nixos-rebuild-fails-on-backup-up-config-file-by-home-manager/45992
users.${username} = import ./home.nix;
extraSpecialArgs = {
inherit inputs nixDirectory username;
};
};
# you don't need this but i recommend using Homemanager:
# home-manager = {
# useGlobalPkgs = true;
# useUserPackages = true;
# backupFileExtension = "delme-HMbackup";
# # Please use this backup File Extension to ensure that the bug won't cause any problems
# # nyx-rebuild deletes the backups on each rebuild before rebuilding
# # HM Bug: https://discourse.nixos.org/t/nixos-rebuild-fails-on-backup-up-config-file-by-home-manager/45992
# users.${username} = import ./home.nix;
#
# extraSpecialArgs = {
# inherit inputs nixDirectory username;
# };
# };
################################################################
# System Version
################################################################

View file

@ -3,9 +3,15 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";
nyx.url = "github:Peritia-System/Nyx-Tools";
nyx.inputs.nixpkgs.follows = "nixpkgs";
# Optional but i recommend it:
# home-manager.url = "github:nix-community/home-manager";
# home-manager.inputs.nixpkgs.follows = "nixpkgs";
};
outputs = inputs @ {
nixpkgs,

View file

@ -1,56 +0,0 @@
{ config, nixDirectory, username, pkgs, inputs, ... }:
{
################################################################
# Module Imports
################################################################
imports = [
# Other Home Manager Modules
# ......
inputs.nyx.homeManagerModules.default
];
################################################################
# Nyx Tools Configuration
################################################################
nyx = {
enable = true;
inherit username nixDirectory;
logDir = "/home/${username}/.nyx/logs";
autoPush = false;
nyx-rebuild = {
enable = true;
editor = "nvim";
formatter = "alejandra";
enableAlias = false;
startEditor = false;
};
nyx-cleanup = {
enable = true;
keepGenerations = 5;
enableAlias = false;
};
nyx-tool = {
enable = true;
};
nyx-tui = {
enable = true;
enableAlias = false;
};
}
################################################################
# Basic Home Manager Setup
################################################################
home.username = username;
home.homeDirectory = "/home/${username}";
home.stateVersion = "25.05";
}