flakelight | 38 Members | |
| https://github.com/nix-community/flakelight | 12 Servers |
| Sender | Message | Time |
|---|---|---|
| 1 May 2024 | ||
* i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix and it is instead in e.g. shadowfang/default.nix | 19:16:34 | |
* i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix and it is instead in e.g. shadowfang/default.nix, but it still doesn't import home.nix | 19:17:27 | |
* i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix and e.g. shadowfang/default.nix doesn't import home.nix | 19:17:40 | |
* i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix and e.g. shadowfang/default.nix doesn't include home.nix as a module | 19:17:59 | |
| still studying the repo, I'm trying to emulate it as best I can | 20:09:58 | |
just to be sure: when a lone .nix file is found in a directory, it is imported as is, otherwise, the mode of importing a .nix file is defined in that directories' default.nix, correct? | 20:10:33 | |
| Yes, on last part. For package key, assuming using ./nix, if ./nix/package.nix exists it is imported, else if ./nix/package/default.nix exists, it is imported, else if ./nix/package/ is a directory its nix files are loaded as an attrset | 22:23:20 | |
| For home-manager in NixOS, let me get the links of where I set that | 22:25:19 | |
for shadowfang:./nix/nixos/shadowfang/default.nix imports configuration.nix: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixos/shadowfang/default.nix#L4Then that imports the desktop module which is common dev machine setup ( ./nix/nixosModules/desktop.nix): https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixos/shadowfang/configuration.nix#L5And that configures home-manager: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixosModules/desktop.nix#L86-L91 | 22:31:16 | |
For the home-manager module it uses ./nix/homeModules/nixos.nix which is the root home-manger config module for my NixOS systems | 22:32:27 | |
| that configures home-manager on NixOS specific stuff and pulls in other home-manager modules for other stuff | 22:32:56 | |
| LMK if that helps | 22:33:18 | |
* for shadowfang:./nix/nixos/shadowfang/default.nix imports ./nix/nixos/shadowfang/configuration.nix: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixos/shadowfang/default.nix#L4Then that imports the desktop module which is common dev machine setup ( ./nix/nixosModules/desktop.nix): https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixos/shadowfang/configuration.nix#L5And that configures home-manager: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixosModules/desktop.nix#L86-L91 | 22:35:54 | |
| When I get some more time, I'll probably add some templates for various kinds of flakes that might be a good starting point | 22:40:03 | |
In reply to @accelbread:matrix.orgI see! | 22:50:21 | |
In reply to @accelbread:matrix.orgfantastic! thank you so much for taking the time, these comments are super helpful | 22:50:34 | |
| 6 May 2024 | ||
| Sorry to bother accelbread, but I'm trying to grasp how you managed to make options in
in your config in having looked at other peoples' configs I notice it is in Or declared in the file sshd_config.. how did you get it to be declarable as an option in openssh.settings ? | 02:09:12 | |
Download image.png | 02:10:13 | |
thats probably since openssh.settings is a newer option | 02:10:23 | |
| even saved all the options for openssh to try and learn more about it x) unless mynixos doesn't have it all | 02:10:31 | |
| https://search.nixos.org/options?channel=23.11&show=services.openssh.settings&from=0&size=50&sort=relevance&type=packages&query=openssh.settings | 02:10:44 | |
It used to be that you had to use openssh.extra-config but iirc some time between 23.05 and 23.11 it was updated | 02:11:20 | |
| strange, i'm on 24.05 | 02:12:06 | |
Ah you do have it correct;openssh.settings is freeform | 02:12:56 | |
| Ahhhh | 02:13:13 | |
| so the documented suboptions, are those that are explicitly defined | 02:13:17 | |
| but not all settings are defined in the Nix code but you can still use them | 02:13:39 | |
| hm thought so, I'm sure they'd show up by looking into the source | 02:14:11 | |
| I thought you were defining it somewhere couldn't figure it out haha | 02:14:34 | |
| Yeah, for this one you'd have to look at openssh docs to see all available settings | 02:14:57 | |