mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
hosts/shinmyoumaru: Move to cross-compilation
This commit is contained in:
parent
f9c42b57ab
commit
78ea6db567
5 changed files with 22 additions and 10 deletions
|
|
@ -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=" ];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = [ pkgs.kitty.terminfo ];
|
||||
environment.systemPackages = [ pkgs.buildPackages.buildPackages.kitty.terminfo ];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
smartmontools
|
||||
hddtemp
|
||||
lm_sensors
|
||||
pinentry-curses
|
||||
gnupg
|
||||
foot.terminfo
|
||||
];
|
||||
] ++ (lib.optional config.programs.gnupg.agent.enable pinentry-curses);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
'';
|
||||
|
|
|
|||
|
|
@ -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"];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue