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 # creates a nixos system config
nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem { nixosHostConfig = system: hostname: username: nixpkgs.lib.nixosSystem {
specialArgs = { inherit inputs username hostname; specialArgs = { inherit inputs username hostname flox-flake;
pkgs = import nixpkgs { pkgs = import nixpkgs {
inherit system; inherit system;
config = { config = {

View file

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

View file

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

View file

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