!UUqahLbShAYkkrXmKs:matrix.org

DevOS

37 Members
Seeking help and geeking out together on https://github.com/divnix/devos & https://github.com/divnix/digga10 Servers

Load older messages


SenderMessageTime
30 Dec 2021
@teutat3s:pub.solar@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@teutat3s:pub.solarThat line 19 is the one22:46:44
@pachumicchu:myrdd.infoPacman99 You can try Channels.nixos.nix-direnv.override.__functionArgs in bud repl 22:52:26
@teutat3s:pub.solar@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@teutat3s:pub.solar
❯ nix flake metadata --json | jq .locks.nodes.nixos.locked.rev
"c7295777c97308ba7b0399c23d1e8bf15a1c7815"
23:44:38
@pachumicchu:myrdd.infoPacman99Ohh got it, I think I was on the wrong nixpkgs branch then23:53:47
@pachumicchu:myrdd.infoPacman99Uhh I think I can just remove the line altogether, since nix-direnv gets nixUnstable with the nix_2_4 argument23:54:15
4 Jan 2022
@cw:kernelpanic.cafe@cw:kernelpanic.cafeAnybody up? I'd like to take another swing at this devos thing00:42:33
@cw:kernelpanic.cafe@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@cw:kernelpanic.cafeDoes a user need to be explicitly defined in here?00:49:02
@cw:kernelpanic.cafe@cw:kernelpanic.cafe When that line is commented out, my users/cw/default.nix fails 00:49:43
@cw:kernelpanic.cafe@cw:kernelpanic.cafe which I thought was what digga.lib.rakeLeaves was doing? 00:50:06
@cw:kernelpanic.cafe@cw:kernelpanic.cafeRedacted or Malformed Event00:51:18
@cw:kernelpanic.cafe@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
@pachumicchu:myrdd.infoPacman99 Yeah users shouldn't need to be set 00:51:56
@pachumicchu:myrdd.infoPacman99 I think thats only important for homeConfigurations or portableHomeConfigurations 00:52:13
@cw:kernelpanic.cafe@cw:kernelpanic.cafe I get error: attribute 'cw' missing, at when I don't set user in flake.nix 00:52:57
@pachumicchu:myrdd.infoPacman99Uhh wait nvm I might be wrong00:53:01
@cw:kernelpanic.cafe@cw:kernelpanic.cafeat line 3 in the second comment00:53:04
@cw:kernelpanic.cafe@cw:kernelpanic.cafe home-manager.users = { inherit (hmUsers) cw; }; 00:53:10
@cw:kernelpanic.cafe@cw:kernelpanic.cafe * at line 3 in users/cw/default.nix 00:54:05
@cw:kernelpanic.cafe@cw:kernelpanic.cafeI get it building (seemingly) fine and can enter nix-shell when I set user00:54:37
@cw:kernelpanic.cafe@cw:kernelpanic.cafeI'm just trying to understand how the pieces fit together00:54:54
@pachumicchu:myrdd.infoPacman99 So the idea is digga can create home-manager users for you and gives it to your nixos profiles as hmUsers 00:56:59
@pachumicchu:myrdd.infoPacman99 So yeah you do need the home.users line 00:57:09
@cw:kernelpanic.cafe@cw:kernelpanic.cafeWhy not just have digga look at home.users and go from there?00:59:59
@cw:kernelpanic.cafe@cw:kernelpanic.cafe Or rake users/alice/default.nix into home.users? 01:00:39
@cw:kernelpanic.cafe@cw:kernelpanic.cafeIs 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@cw:kernelpanic.cafeRedacted or Malformed Event02:41:03
@pachumicchu:myrdd.infoPacman99 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

Show newer messages


Back to Room ListRoom Version: 6