Compare commits

..

19 commits

Author SHA1 Message Date
7ebfaa1de8 WIP: flake: home-manager: export NixOS homes
All checks were successful
ci/woodpecker/push/check Pipeline was successful
WIP: this does not take into account the `profiles` which *also* setup
home-manager modules...

And here is what the last few commits were building up to.

This is neat, but won't be useful *very* often.
2024-01-03 17:56:53 +00:00
7bd06002de flake: home-manager: refactor 'mkHome'
This will allow making a similar function for NixOS homes.
2024-01-03 17:56:53 +00:00
d6e3f20208 flake: home-manager: use 'hosts' option 2024-01-03 17:55:36 +00:00
437b8b8b17 flake: nixos: use 'hosts' option 2024-01-03 17:55:35 +00:00
9b68905c26 flake: add hosts
This will allow other modules to cross-reference which hosts exist on
which system.

My main use-case is to automatically declare home-manager configuration
for the home configuration of NixOS hosts.

I also include Darwin in case I ever want to use that in the future,
though that is unlikely for the moment.
2024-01-03 17:55:35 +00:00
f5e24b5db8 hosts: nixos: porthos: add profiles 2024-01-03 17:55:35 +00:00
37cfcadfc6 fixup! nixos: home: forward profile configurations 2024-01-03 17:50:47 +00:00
fefd405e08 fixup! nixos: home: import common modules 2024-01-03 17:48:44 +00:00
2d3add3536 nixos: home: forward profile configurations
Now that we migrated them all
2024-01-03 17:48:44 +00:00
198b8e7e0a common: profiles: migrate X 2024-01-03 17:48:44 +00:00
e4b7d562a4 common: profiles: migrate wm 2024-01-03 17:36:19 +00:00
7884ef1047 common: profiles: migrate laptop 2024-01-03 17:29:18 +00:00
6088f85bec common: profiles: migrate gtk 2024-01-03 17:29:18 +00:00
1d888f68e3 common: profiles: migrate devices 2024-01-03 17:29:18 +00:00
42cbe79cae common: profiles: migrate bluetooth 2024-01-03 17:29:18 +00:00
ef55541337 common: add profiles
I will be migrating each sub-module one by one.
2024-01-03 17:28:01 +00:00
8dcbd6e850 flake: nixos: import common modules 2024-01-03 16:54:05 +00:00
e9abcb0307 flake: home-manager: import common modules 2024-01-03 16:54:05 +00:00
c27b83652a nixos: home: import common modules 2024-01-03 16:51:38 +00:00
2 changed files with 8 additions and 14 deletions

View file

@ -1,5 +1,5 @@
# Configuration that spans accross system and home, or are almagations of modules
{ config, lib, type, ... }:
{ ... }:
{
imports = [
./bluetooth
@ -9,17 +9,4 @@
./wm
./x
];
config = lib.mkMerge [
# Transparently enable home-manager profiles as well
(lib.optionalAttrs (type == "nixos") {
home-manager.users.${config.my.user.name} = {
config = {
my = {
inherit (config.my) profiles;
};
};
};
})
];
}

View file

@ -19,6 +19,13 @@ in
"${inputs.self}/modules/common"
"${inputs.self}/modules/home"
];
config = {
my = {
# Transparently enable home-manager profiles as well
inherit (config.my) profiles;
};
};
};
# Nix Flakes compatibility