completely ripping off fufexan in hopes of fixing things

This commit is contained in:
cnst
2024-07-30 21:41:28 +02:00
parent d0cf745c41
commit 7e6787ff38
17 changed files with 549 additions and 249 deletions

36
home/cnst.nix Normal file
View File

@@ -0,0 +1,36 @@
{
lib,
self,
inputs,
...
}: {
imports = [
# inputs.matugen.nixosModules.default
# inputs.nix-index-db.hmModules.nix-index
# inputs.tailray.homeManagerModules.default
# self.nixosModules.theme
];
home = {
username = "cnst";
homeDirectory = "/home/cnst";
stateVersion = "23.11";
extraOutputsToInstall = ["doc" "devdoc"];
};
# disable manuals as nmd fails to build often
manual = {
html.enable = false;
json.enable = false;
manpages.enable = false;
};
# let HM manage itself when in standalone mode
programs.home-manager.enable = true;
nixpkgs.overlays = [
(final: prev: {
lib = prev.lib // {colors = import "${self}/lib/colors" lib;};
})
];
}

View File

@@ -1,36 +0,0 @@
{
inputs,
lib,
config,
pkgs,
...
}: {
imports = [
./imports.nix
];
nix = {
package = lib.mkDefault pkgs.nix;
settings = {
experimental-features = [
"nix-command"
"flakes"
];
warn-dirty = false;
};
};
# TODO: Set your username
home = {
username = "cnst";
homeDirectory = "/home/cnst";
};
programs.home-manager.enable = true;
# Nicely reload system units when changing configs
systemd.user.startServices = "sd-switch";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
home.stateVersion = "23.11";
}

49
home/users/default.nix Normal file
View File

@@ -0,0 +1,49 @@
{
self,
inputs,
...
}: let
# get these into the module system
extraSpecialArgs = {inherit inputs self;};
homeImports = {
"cnst@cnix" = [
../cnst.nix
./cnst
];
"adam@adampad" = [
../adam.nix
./adam
];
"toothpick@toothpc" = [
../toothpick.nix
./toothpick
];
};
inherit (inputs.hm.lib) homeManagerConfiguration;
pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
in {
# we need to pass this to NixOS' HM module
_module.args = {inherit homeImports;};
flake = {
homeConfigurations = {
"cnst_cnix" = homeManagerConfiguration {
modules = homeImports."cnst@cnix";
inherit pkgs extraSpecialArgs;
};
"adam_adampad" = homeManagerConfiguration {
modules = homeImports."adam@adampad";
inherit pkgs extraSpecialArgs;
};
"toothpick_toothpc" = homeManagerConfiguration {
modules = homeImports."toothpick@toothpc";
inherit pkgs extraSpecialArgs;
};
};
};
}