diff --git a/hm/common.nix b/hm/common.nix index d98920a..0834dfd 100644 --- a/hm/common.nix +++ b/hm/common.nix @@ -521,11 +521,6 @@ in "${config.home.sessionVariables.GOPATH}" (builtins.toString ./scripts) ]; - file = { - ".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? + # TODO Way to automatically setup an home-manager install }; } diff --git a/hm/desktop.nix b/hm/desktop.nix index 50ce109..2aaed43 100644 --- a/hm/desktop.nix +++ b/hm/desktop.nix @@ -650,6 +650,11 @@ in }; 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; [ pavucontrol # Because can't use Win+F1X on Pinebook 🙃 diff --git a/nod/common/default.nix b/nod/common/default.nix new file mode 100644 index 0000000..88865d7 --- /dev/null +++ b/nod/common/default.nix @@ -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"; +} diff --git a/nod/default.nix b/nod/default.nix new file mode 100644 index 0000000..dbb001d --- /dev/null +++ b/nod/default.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ./common + ]; +} diff --git a/sprinkles/nod.nix b/sprinkles/nod.nix new file mode 100644 index 0000000..98387b2 --- /dev/null +++ b/sprinkles/nod.nix @@ -0,0 +1,6 @@ +{ ... }: +{ + imports = [ + ../nod + ]; +}