Use Nixos modules for home manager configurations
All checks were successful
/ build-all (push) Successful in 54s

This commit is contained in:
ant 2026-03-12 23:32:44 +01:00
parent 632061ac61
commit 85e75928dc
10 changed files with 65 additions and 91 deletions

View file

@ -1,4 +1,8 @@
{ config, lib, pkgs, ... }: {
nix.package = pkgs.nixVersions.latest;
home.homeDirectory = "/home/${config.home.username}";
nixpkgs.config = { allowUnfree = true; };
programs.fish = {
loginShellInit = ''
source ${pkgs.nix}/etc/profile.d/nix.fish

View file

@ -1,13 +1,10 @@
{ inputs, config, lib, pkgs, pkgs-unstable, ... }:
{ system, inputs, config, lib, pkgs, ... }:
{
imports = [
./fish.nix
];
nix.package = pkgs.nixVersions.latest;
home.homeDirectory = "/home/${config.home.username}";
home.stateVersion = "23.05"; # Please read the comment before changing.
home.packages = with pkgs; [
@ -92,7 +89,7 @@
enable = true;
viAlias = true;
defaultEditor = true;
package = pkgs-unstable.neovim-unwrapped;
package = inputs.unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system}.neovim-unwrapped;
extraPackages = with pkgs; [
gcc
];

View file

@ -1,5 +1,4 @@
{ lib, config, pkgs, ... }: {
nixpkgs.config = { allowUnfree = true; };
home.packages = with pkgs; [
lutris

View file

@ -1,4 +1,4 @@
{ lib, config, pkgs, pkgs-unstable, ... }:
{ lib, config, pkgs, ... }:
{
imports = [
./base.nix

View file

@ -21,7 +21,7 @@ in
config = {
home.packages = with pkgs; [
inputs.st-flexipatch.packages.${system}.st
inputs.st-flexipatch.packages.${pkgs.stdenv.hostPlatform.system}.st
gentium
nerd-fonts.noto
@ -54,11 +54,6 @@ in
})
];
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
"joypixels"
];
nixpkgs.config.joypixels.acceptLicense = true;
home.file = {
".config/kitty/light.conf".source = dotfiles/kitty/light.conf;