This commit is contained in:
TheK0tYaRa 2026-02-26 16:34:55 +02:00
parent 6b5b149c04
commit 68d49d0c1e
7 changed files with 545 additions and 329 deletions

View file

@ -6,47 +6,45 @@
inputs.nixpkgs.follows = "nixpkgs";
};
ragenix.url = "github:yaxitech/ragenix/2025.03.09";
niri.url = "github:YaLTeR/niri/v25.11";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
ghostty.url = "github:ghostty-org/ghostty/tip";
# ghostty.url = [
# "github:ghostty-org/ghostty/1.3.0"
# "github:ghostty-org/ghostty/tip"
# ];
nix-index-database = {
url = "github:nix-community/nix-index-database";
inputs.nixpkgs.follows = "nixpkgs";
};
niri-flake = {
url = "github:sodiboo/niri-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
dw-proton.url = "github:imaviso/dwproton-flake";
intel-hw.url = "github:MordragT/nixos";
#
};
outputs =
inputs@{
# self,
nixpkgs,
mypkgs,
ragenix,
home-manager,
ghostty,
nix-index-database,
niri-flake,
intel-hw,
...
}:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
# pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.${system}.default = pkgs.mkShell {
packages = [
ragenix.packages.x86_64-linux.default
];
};
nixosConfigurations.testenv = nixpkgs.lib.nixosSystem {
inherit system;
#
specialArgs = { inherit inputs; };
modules = [
ragenix.nixosModules.default
niri-flake.nixosModules.niri
nix-index-database.nixosModules.default
(
{
pkgs,
@ -59,9 +57,9 @@
};
nixpkgs.overlays = [
intel-hw.overlays.default
# (import ./custom/overlays/default.nix)
mypkgs.overlays.default
(import ./custom/override.nix)
niri-flake.overlays.niri
];
# boot.kernelPatches = [
# {
@ -161,6 +159,7 @@
polkit = {
enable = true;
};
rtkit.enable = true;
sudo = {
extraRules = [
{
@ -175,13 +174,12 @@
];
};
};
# virtualisation.qemu = {
# options = [
# ];
# };
programs = {
# amnezia-vpn.enable = true;
ccache.enable = true;
niri = {
enable = true;
package = pkgs.niri-stable;
};
nix-ld = {
enable = true;
libraries = with pkgs; [
@ -251,8 +249,7 @@
useUserPackages = true;
extraSpecialArgs = {
inherit system;
inherit ghostty;
inherit inputs;
};
users.thek0tyara = ./home.nix;