nod: First attempt

This commit is contained in:
Geoffrey Frogeye 2023-12-25 11:04:01 +01:00
parent ec1d120f12
commit f94e741948
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
5 changed files with 40 additions and 6 deletions

View file

@ -521,11 +521,6 @@ in
"${config.home.sessionVariables.GOPATH}" "${config.home.sessionVariables.GOPATH}"
(builtins.toString ./scripts) (builtins.toString ./scripts)
]; ];
file = { # TODO Way to automatically setup an home-manager install
".face" = { # TODO Doesn't show on NixOS. See https://wiki.archlinux.org/title/LightDM#Changing_your_avatar ?
source = pkgs.runCommand "face.png" { } "${pkgs.inkscape}/bin/inkscape ${./face.svg} -w 1024 -o $out";
};
};
# FIXME .config/home-manager/home.nix link. Using hostname?
}; };
} }

View file

@ -650,6 +650,11 @@ in
}; };
home = { home = {
file = {
".face" = { # TODO Only works on pindakaas? See https://wiki.archlinux.org/title/LightDM#Changing_your_avatar
source = pkgs.runCommand "face.png" { } "${pkgs.inkscape}/bin/inkscape ${./face.svg} -w 1024 -o $out";
};
};
packages = with pkgs; [ packages = with pkgs; [
pavucontrol # Because can't use Win+F1X on Pinebook 🙃 pavucontrol # Because can't use Win+F1X on Pinebook 🙃

22
nod/common/default.nix Normal file
View file

@ -0,0 +1,22 @@
{ pkgs, ... }:
{
environment.motd = "";
home-manager = {
useGlobalPkgs = true;
config = {}: {
imports = [ ../hm ];
home.file = {
".ssh/authorized_keys" = {
# TODO Make an option and reuse at other places
text = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPE41gxrO8oZ5n3saapSwZDViOQphm6RzqgsBUyA88pU geoffrey@frogeye.fr";
};
};
};
};
system.stateVersion = "23.11";
terminal.font = "${
pkgs.nerdfonts.override {
fonts = [ "DejaVuSansMono" ];
}}/share/fonts/truetype/NerdFonts/DejaVuSansMNerdFont-Regular.ttf";
time.timeZone = "Europe/Amsterdam";
}

6
nod/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
./common
];
}

6
sprinkles/nod.nix Normal file
View file

@ -0,0 +1,6 @@
{ ... }:
{
imports = [
../nod
];
}