pinwheel: Move firefox module to pinwheel host

This commit is contained in:
Alexander Heldt
2023-08-19 11:08:22 +02:00
parent 2b58418093
commit 0bf0c08c33
3 changed files with 18 additions and 18 deletions

View File

@@ -11,6 +11,7 @@
./modules/age ./modules/age
./modules/ssh ./modules/ssh
./modules/syncthing ./modules/syncthing
./modules/firefox
]; ];
nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.experimental-features = [ "nix-command" "flakes" ];

View File

@@ -4,10 +4,6 @@
home.username = "alex"; home.username = "alex";
home.homeDirectory = "/home/alex"; home.homeDirectory = "/home/alex";
imports = [
./../../modules/firefox
];
home.packages = with pkgs; [ home.packages = with pkgs; [
vim vim

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }: { home-manager, pkgs, ... }:
let let
wrapped = pkgs.wrapFirefox pkgs.firefox-devedition-unwrapped { wrapped = pkgs.wrapFirefox pkgs.firefox-devedition-unwrapped {
extraPolicies = { extraPolicies = {
@@ -34,23 +34,26 @@ let
}; };
in in
{ {
programs.firefox = { home-manager.users.alex = {
enable = true; programs.firefox = {
enable = true;
package = wrapped; package = wrapped;
profiles = { profiles = {
alex = { alex = {
id = 0; id = 0;
name = "alex"; name = "alex";
}; };
work = { work = {
id = 1; id = 1;
name = "work"; name = "work";
};
}; };
}; };
};
home.packages = [ ff ]; home.packages = [ ff ];
};
} }