hosts/shinmyoumaru: Move to cross-compilation

This commit is contained in:
kat witch 2021-09-02 23:49:14 +01:00
parent f9c42b57ab
commit 78ea6db567
No known key found for this signature in database
GPG key ID: 1B477797DCA5EC72
5 changed files with 22 additions and 10 deletions

View file

@ -3,16 +3,28 @@
{
# Imports
imports = [
imports = with meta; [
profiles.base
./image.nix
];
home-manager.users.kat.programs.neovim.enable = mkForce false;
# Weird Shit
nixpkgs.localSystem = systems.examples.raspberryPi // {
nixpkgs.crossSystem = systems.examples.raspberryPi // {
system = "armv6l-linux";
};
environment.noXlibs = true;
documentation.info.enable = false;
documentation.man.enable = false;
programs.command-not-found.enable = false;
security.polkit.enable = false;
security.audit.enable = false;
services.udisks2.enable = false;
boot.enableContainers = false;
nix = {
binaryCaches = lib.mkForce [ "https://app.cachix.org/cache/thefloweringash-armv7" ];
binaryCachePublicKeys = [ "thefloweringash-armv7.cachix.org-1:v+5yzBD2odFKeXbmC+OPWVqx4WVoIVO6UXgnSAWFtso=" ];

View file

@ -1,5 +1,5 @@
{ config, pkgs, ... }:
{
environment.systemPackages = [ pkgs.kitty.terminfo ];
environment.systemPackages = [ pkgs.buildPackages.buildPackages.kitty.terminfo ];
}

View file

@ -5,8 +5,6 @@
smartmontools
hddtemp
lm_sensors
pinentry-curses
gnupg
foot.terminfo
];
] ++ (lib.optional config.programs.gnupg.agent.enable pinentry-curses);
}

View file

@ -17,9 +17,6 @@ in
genmac = ''
nix run nixpkgs.openssl -c openssl rand -hex 6 | sed 's/\(..\)\(..\)\(..\)\(..\)\(..\)\(..\)/\1:\2:\3:\4:\5:\6/'
'';
nano = ''
${pkgs.kitty}/bin/kitty +kitten icat ${./nano.png}
'';
getAlias = ''
printf '%s\n' $aliases[$1]
'';

View file

@ -1,6 +1,11 @@
{ config, lib, ... }: with lib;
{ config, lib, pkgs, ... }: with lib;
{
home.shell.functions = {
nano = ''
${pkgs.kitty}/bin/kitty +kitten icat ${./nano.png}
'';
};
programs.zsh = {
shellAliases = mapListToAttrs (attr: nameValuePair "abby${attr}" "mpv $(bitw get secrets/abby -f ${attr})") ["radio" "tv"];
};