mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Install flox on a NixOS system too
This also adds the recommended extra nix settings to darwin
This commit is contained in:
parent
e449b45e2b
commit
bd78fa0a1e
4 changed files with 15 additions and 2 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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 = ''
|
||||||
|
|
|
||||||
|
|
@ -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}" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue