!yUrHuDcxUngfTlDbiy:matrix.org

flakelight

38 Members
https://github.com/nix-community/flakelight12 Servers

Load older messages


SenderMessageTime
1 May 2024
@nrs-status:matrix.orgthirdofmay18081814goya * I'm sure it'll get adopted quick04:04:23
@nrs-status:matrix.orgthirdofmay18081814goyaI think it's my home-manager config that's not written right; I'll work a bit more on this and I'll get back to you04:27:54
@nrs-status:matrix.orgthirdofmay18081814goyathanks for the help! will be back soon, really want to implement this heheh04:28:04
@accelbread:matrix.orgaccelbread you're welcome! one thing thats usually useful for figuring out that stuff is nix repl; can run :lf . to load the flake and poke around at values 04:30:33
@mjolnir:nixos.orgNixOS Moderation Botchanged room power levels.15:06:08
@nrs-status:matrix.orgthirdofmay18081814goyahey! back to working on this18:59:29
@nrs-status:matrix.orgthirdofmay18081814goyaam looking at your flake-config18:59:35
@nrs-status:matrix.orgthirdofmay18081814goya where do you define the home-manager config that gets imported by the first flake.nix? 19:00:13
@nrs-status:matrix.orgthirdofmay18081814goya * am looking at your config-flake19:07:00
@nrs-status:matrix.orgthirdofmay18081814goya i think there are two candidates under config-flake/nix/nixos but they don't both get imported right? 19:12:23
@nrs-status:matrix.orgthirdofmay18081814goya i ask because i'm not seeing any sort of modules = ... home.nix ... going on 19:14:10
@nrs-status:matrix.orgthirdofmay18081814goya * i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix 19:14:17
@nrs-status:matrix.orgthirdofmay18081814goya * i ask because i'm not seeing any sort of modules = ... home.nix ... going on in flake.nix and it is instead in same dir's default.nix 19:16:10
@nrs-status:matrix.orgthirdofmay18081814goya * 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
@nrs-status:matrix.orgthirdofmay18081814goya * 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
@nrs-status:matrix.orgthirdofmay18081814goya * 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
@nrs-status:matrix.orgthirdofmay18081814goya * 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
@nrs-status:matrix.orgthirdofmay18081814goyastill studying the repo, I'm trying to emulate it as best I can20:09:58
@nrs-status:matrix.orgthirdofmay18081814goya 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
@accelbread:matrix.orgaccelbread 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
@accelbread:matrix.orgaccelbreadFor home-manager in NixOS, let me get the links of where I set that22:25:19
@accelbread:matrix.orgaccelbread for shadowfang:
./nix/nixos/shadowfang/default.nix imports configuration.nix: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixos/shadowfang/default.nix#L4
Then 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#L5
And that configures home-manager: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixosModules/desktop.nix#L86-L91
22:31:16
@accelbread:matrix.orgaccelbread 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
@accelbread:matrix.orgaccelbreadthat configures home-manager on NixOS specific stuff and pulls in other home-manager modules for other stuff22:32:56
@accelbread:matrix.orgaccelbreadLMK if that helps22:33:18
@accelbread:matrix.orgaccelbread * 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#L4
Then 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#L5
And that configures home-manager: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixosModules/desktop.nix#L86-L91
22:35:54
@accelbread:matrix.orgaccelbreadWhen I get some more time, I'll probably add some templates for various kinds of flakes that might be a good starting point22:40:03
@nrs-status:matrix.orgthirdofmay18081814goya
In reply to @accelbread:matrix.org
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
I see!
22:50:21
@nrs-status:matrix.orgthirdofmay18081814goya
In reply to @accelbread:matrix.org
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#L4
Then 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#L5
And that configures home-manager: https://github.com/accelbread/config-flake/blob/11360f5278e8972c4f1978392028e8a595291a1c/nix/nixosModules/desktop.nix#L86-L91
fantastic! thank you so much for taking the time, these comments are super helpful
22:50:34
6 May 2024
@maka_77x:matrix.orgmaka_77x

Sorry to bother accelbread, but I'm trying to grasp how you managed to make options in openssh show up where they did

TrustedUserCAKeys = "${self + /misc/ssh_ca_user_key.pub}";
HostCertificate = "/persist/state/sshd/ssh_host_ed25519_key-cert.pub";

in your config in ../nix/nixosModules/common.nix

having looked at other peoples' configs I notice it is in
openssh.extraconfig = '' HostCertificate = blah/path''

Or declared in the file sshd_config.. how did you get it to be declarable as an option in openssh.settings ?

02:09:12

Show newer messages


Back to Room ListRoom Version: 10