Install flox on a NixOS system too

This also adds the recommended extra nix settings to darwin
This commit is contained in:
Gene Liverman 2024-03-21 18:51:17 -04:00
parent e449b45e2b
commit bd78fa0a1e
4 changed files with 15 additions and 2 deletions

View file

@ -89,7 +89,7 @@
# creates a nixos system config
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs username hostname;
specialArgs = { inherit inputs username hostname flox-flake;
pkgs = import nixpkgs {
inherit system;
config = {

View file

@ -1,4 +1,4 @@
{ config, pkgs, username, ... }: {
{ config, flox-flake, pkgs, username, ... }: {
imports = [
./hardware-configuration.nix
../../../system/common/linux/flatpaks.nix
@ -18,6 +18,7 @@
# host specific apps
boinc
brightnessctl
flox-flake.packages.${pkgs.system}.default
gnome.gnome-tweaks
gnome.nautilus
gnomeExtensions.dash-to-panel

View file

@ -92,6 +92,12 @@
"nix-command"
"repl-flake"
];
extra-trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
];
extra-trusted-substituters = [
"https://cache.flox.dev"
];
trusted-users = [ "@admin" "${username}" ];
};
extraOptions = ''

View file

@ -41,6 +41,12 @@
"flakes"
"nix-command"
];
extra-trusted-public-keys = [
"flox-cache-public-1:7F4OyH7ZCnFhcze3fJdfyXYLQw/aV7GEed86nQ7IsOs="
];
extra-trusted-substituters = [
"https://cache.flox.dev"
];
trusted-users = [ "${username}" ];
};