I don’t use nixOS. I’m using Archlinux. For example, there are no problems for Git, but there are problems for Niri and Nekoray. I didn’t find a similar issue because everyone uses nixOS. They are told that they need to override coniguration.nix, but I don’t have such a file (it’s clear why). But maybe someone can help me with this?
#home.nix
{ lib, pkgs, ... }:
{
home = {
packages = with pkgs; [
jetbrains-mono # fonts
ghostty
librewolf
helix
git
gnumake
obsidian
rofi
vscodium
nekoray
niri
# не разобрался как работает пока
# zapret
# nftables
# obs-studio
];
username = "vch";
homeDirectory = "/home/vch";
stateVersion = "25.05";
};
# programs.xserver.enable = true;
# services.xserver.windowManager.niri.enable = true;
#programs.nekoray = {
# enable = true;
# tunMode.enable = true; # Enable tunnel mode; adjust as needed
#};
programs.git = {
enable = true;
userEmail = "slav.subocheff@yandex.ru";
userName = "Vy4cheSlave";
};
programs.niri.enable = true;
#programs.bash.enable = true;
targets.genericLinux.enable = true; # ENABLE THIS ON NON NIXOS
programs.home-manager.enable = true;
manual.html.enable = true;
}
# flake.nix
{
description = "Home Manager Configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
# INFO NOT TESTED
system-manager = {
url = "github:numtide/system-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
nix-system-graphics = {
url = "github:soupglasses/nix-system-graphics";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, ... }@inputs:
let
username = "vch";
lib = nixpkgs.lib;
system = "x86_64-linux";
pkgs = import nixpkgs { system = "x86_64-linux"; config.allowUnfree = true; };
in {
systemConfigs.default = inputs.system-manager.lib.makeSystemConfig {
modules = [
inputs.nix-system-graphics.systemModules.default
({
config = {
nixpkgs.hostPlatform = "${system}";
system-manager.allowAnyDistro = true;
system-graphics.enable = true;
};
})
];
};
devShells."${system}".default = pkgs.mkShellNoCC {
packages = [
inputs.system-manager.packages."${system}".default
];
};
homeConfigurations = {
"${username}" = inputs.home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
./home.nix
({
home.packages = [ inputs.system-manager.packages."${system}".default ];
})
];
};
};
};
}