This commit is contained in:
2026-03-03 00:35:35 +01:00
parent 8fe8a25615
commit e959d13d90
5 changed files with 71 additions and 15 deletions

View File

@@ -0,0 +1,23 @@
{ inputs, config, ...}:
let
home-manager-config =
{ lib, ... }:
{
home-manager = {
verbose = true;
useUserPackages = true;
useGlobalPkgs = true;
backupFileExtension = "backup";
backupCommand = "rm";
overwriteBackup = true;
};
};
in
{
flake.nixosModules.home-manager = {
imports = [
inputs.home-manager.nixosModules.home-manager
home-manager-config
];
};
}

View File

@@ -1,20 +1,17 @@
{ inputs, ... }: {
config = {
systems = [
"aarch64-linux"
"x86_64-linux"
];
systems = [
"x86_64-linux"
];
perSystem = { pkgs, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
perSystem = { system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
config.allowUnfree = true;
};
_module.args.pkgs-unstable = import inputs.nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
}