| 12 Sep 2022 |
k0kada (he/him) | (Also, please fix the indentation) | 21:41:35 |
k0kada (he/him) | On system | 21:41:40 |
ckie (they/them) | doomPrivateDir = true? | 21:41:45 |
ckie (they/them) | yawot? | 21:41:48 |
k0kada (he/him) | If you set it to false, your doom config is now public to everyone | 21:42:22 |
ckie (they/them) | missing semi on L29 | 21:42:23 |
ribosomerocker | oops, typo | 21:42:23 |
ckie (they/them) | k0kada: aha | 21:42:32 |
ribosomerocker | In reply to@k0kada:matrix.org On system how should it be indented? | 21:43:13 |
ckie (they/them) | i think it might be worth it to write a little nix-doctest check in the main flake | 21:43:27 |
ckie (they/them) | (though it might have to not be in the flake since theres no rec-Nix yet) | 21:44:00 |
ckie (they/them) | * (though it might have to not be in the flake since theres no rec-Nix yet) | 21:44:18 |
k0kada (he/him) | In reply to @mon:tchncs.de
i have the nixos+hm flake.nix as
{
inputs = {
home-manager.url = "github:nix-community/home-manager";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self,
nixpkgs,
lib,
home-manager,
nix-doom-emacs,
...
}:
let
system = "x86_64-linux";
in {
nixosConfigurations.exampleHost = lib.nixosSystem {
inherit system;
modules = [
./default.nix
home-manager.nixosModules.home-manager
{
home-manager.users.exampleUser = { ... }: {
imports = [ nix-doom-emacs.hmModule ]
programs.doom-emacs = {
enable = true;
doomPrivateDir = true;
}
};
}
];
};
};
}
Also, remove the ./default.nix | 21:44:19 |
k0kada (he/him) | In reply to @mon:tchncs.de how should it be indented? system = "x86_64-linux"; | 21:44:34 |
k0kada (he/him) | Actually, even this let is unnecessary there | 21:44:59 |
k0kada (he/him) | Let me format it a little | 21:45:07 |
ribosomerocker | {
inputs = {
home-manager.url = "github:nix-community/home-manager";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self,
nixpkgs,
lib,
home-manager,
nix-doom-emacs,
...
}: {
nixosConfigurations.exampleHost = lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager.users.exampleUser = { ... }: {
imports = [ nix-doom-emacs.hmModule ];
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./doom; # Directory containing your config.el, init.el
# and packages.el files
};
};
}
];
};
};
}
is this better? | 21:48:12 |
k0kada (he/him) | In reply to @mon:tchncs.de
{
inputs = {
home-manager.url = "github:nix-community/home-manager";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self,
nixpkgs,
lib,
home-manager,
nix-doom-emacs,
...
}: {
nixosConfigurations.exampleHost = lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager.users.exampleUser = { ... }: {
imports = [ nix-doom-emacs.hmModule ];
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./doom; # Directory containing your config.el, init.el
# and packages.el files
};
};
}
];
};
};
}
is this better? Almost | 21:48:46 |
k0kada (he/him) | lib doesn't exist as an input | 21:48:56 |
k0kada (he/him) | Remove it and change to nixpkgs.lib | 21:49:04 |
k0kada (he/him) | In reply to @ckie:ckie.dev we should try pairing sometime, could be interesting Yeah | 21:53:12 |
k0kada (he/him) | In reply to @mon:tchncs.de
{
inputs = {
home-manager.url = "github:nix-community/home-manager";
nix-doom-emacs.url = "github:nix-community/nix-doom-emacs";
};
outputs = {
self,
nixpkgs,
lib,
home-manager,
nix-doom-emacs,
...
}: {
nixosConfigurations.exampleHost = lib.nixosSystem {
system = "x86_64-linux";
modules = [
home-manager.nixosModules.home-manager
{
home-manager.users.exampleUser = { ... }: {
imports = [ nix-doom-emacs.hmModule ];
programs.doom-emacs = {
enable = true;
doomPrivateDir = ./doom; # Directory containing your config.el, init.el
# and packages.el files
};
};
}
];
};
};
}
is this better? Ok, this is not working, let me fix it | 21:54:16 |
k0kada (he/him) | Just realized that my NixOS config became what I didn't want it to become | 21:55:10 |
k0kada (he/him) | A very abstract mess | 21:55:15 |
ckie (they/them) | k0kada: mine is quite flat | 21:57:03 |
ckie (they/them) | the most is a machine can have desktop | 21:57:21 |
k0kada (he/him) | In reply to @ckie:ckie.dev k0kada: mine is quite flat Mine used to be | 21:57:21 |
ckie (they/them) | everything else is either autodetected defaults or manually enabled in the hosts/* | 21:57:48 |
k0kada (he/him) | But you know, it is always that "ohh, there is so many repetition here. I know, I will create an abstraction" | 21:57:48 |
ckie (they/them) | * everything else is either autodetected defaults or manually enabled in the hosts/*/default.nix | 21:57:50 |