| 30 Dec 2021 |
@teutat3s:pub.solar | How do I check for that nix argument?
bud repl
:lf
…hostname.pkgs.nix-direnv.nix
? | 22:45:47 |
@teutat3s:pub.solar | That line 19 is the one | 22:46:44 |
Pacman99 | You can try Channels.nixos.nix-direnv.override.__functionArgs in bud repl | 22:52:26 |
@teutat3s:pub.solar | nix-repl> Channels.nixos.nix-direnv.override.__functionArgs
{ enableFlakes = true; fetchFromGitHub = false; gnugrep = false; lib = false; nixStable = false; nix_2_4 = false; stdenv = false; }
| 23:43:33 |
@teutat3s:pub.solar | ❯ nix flake metadata --json | jq .locks.nodes.nixos.locked.rev
"c7295777c97308ba7b0399c23d1e8bf15a1c7815"
| 23:44:38 |
Pacman99 | Ohh got it, I think I was on the wrong nixpkgs branch then | 23:53:47 |
Pacman99 | Uhh I think I can just remove the line altogether, since nix-direnv gets nixUnstable with the nix_2_4 argument | 23:54:15 |
| 4 Jan 2022 |
@cw:kernelpanic.cafe | Anybody up? I'd like to take another swing at this devos thing | 00:42:33 |
@cw:kernelpanic.cafe | home = {
imports = [ (digga.lib.importExportableModules ./users/modules) ];
modules = [ ];
importables = rec {
profiles = digga.lib.rakeLeaves ./users/profiles;
suites = with profiles; rec {
base = [ direnv git ];
};
};
users = {
cw = { suites, ... }: { imports = suites.base; };
}; # digga.lib.importers.rakeLeaves ./users/hm;
};
| 00:48:52 |
@cw:kernelpanic.cafe | Does a user need to be explicitly defined in here? | 00:49:02 |
@cw:kernelpanic.cafe | When that line is commented out, my users/cw/default.nix fails | 00:49:43 |
@cw:kernelpanic.cafe | which I thought was what digga.lib.rakeLeaves was doing? | 00:50:06 |
@cw:kernelpanic.cafe | Redacted or Malformed Event | 00:51:18 |
@cw:kernelpanic.cafe | { hmUsers, lib, ... }:
{
home-manager.users = { inherit (hmUsers) cw; };
users.users.cw = {
uid = lib.mkDefault 1000;
password.hashedPassword = "$6$password_hash_here/";
description = "I run this bitch.";
isNormalUser = true;
extraGroups = [ "wheel" ];
openssh.authorizedKeys.keyFiles = [
/home/cw/.ssh/id_nixos.pub
];
};
}
| 00:51:45 |
Pacman99 | Yeah users shouldn't need to be set | 00:51:56 |
Pacman99 | I think thats only important for homeConfigurations or portableHomeConfigurations | 00:52:13 |
@cw:kernelpanic.cafe | I get error: attribute 'cw' missing, at when I don't set user in flake.nix | 00:52:57 |
Pacman99 | Uhh wait nvm I might be wrong | 00:53:01 |
@cw:kernelpanic.cafe | at line 3 in the second comment | 00:53:04 |
@cw:kernelpanic.cafe | home-manager.users = { inherit (hmUsers) cw; }; | 00:53:10 |
@cw:kernelpanic.cafe | * at line 3 in users/cw/default.nix | 00:54:05 |
@cw:kernelpanic.cafe | I get it building (seemingly) fine and can enter nix-shell when I set user | 00:54:37 |
@cw:kernelpanic.cafe | I'm just trying to understand how the pieces fit together | 00:54:54 |
Pacman99 | So the idea is digga can create home-manager users for you and gives it to your nixos profiles as hmUsers | 00:56:59 |
Pacman99 | So yeah you do need the home.users line | 00:57:09 |
@cw:kernelpanic.cafe | Why not just have digga look at home.users and go from there? | 00:59:59 |
@cw:kernelpanic.cafe | Or rake users/alice/default.nix into home.users? | 01:00:39 |
@cw:kernelpanic.cafe | Is there a way to add the user to home.users from the default.nix file so I don't need to manage the user in both places? | 01:02:59 |
@cw:kernelpanic.cafe | Redacted or Malformed Event | 02:41:03 |
Pacman99 | Well I think you could just set your user profile in users/cw/default.nix, like remove the inherite (hmUsers) cw and move the stuff from the flake.nix home.users to home-manager.sers.cw = | 05:41:23 |