add firefox config

This commit is contained in:
jopejoe1 2024-12-10 23:00:15 +01:00
parent a4f943e1b0
commit d789843e8c
2 changed files with 45 additions and 16 deletions

View file

@ -1,13 +1,17 @@
{ {
pkgs, pkgs,
lib, lib,
config,
... ...
}: { }:
system.stateVersion = "24.11"; let
nixpkgs.hostPlatform = { lock = value: {
system = "x86-64-linux"; Value = value;
config = "x86_64-unknown-linux-gnu"; Status = "locked";
}; };
in
{
system.stateVersion = "24.11";
networking.hostName = "c3terminal"; networking.hostName = "c3terminal";
time.timeZone = "Europe/Berlin"; time.timeZone = "Europe/Berlin";
facter.reportPath = ./facter.json; facter.reportPath = ./facter.json;
@ -20,24 +24,47 @@
"networkmanager" "networkmanager"
]; ];
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh jopejoe1_2@joens.email" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB8oyMzoom.minPercentpS2hK3gQXyHIIVS6oilgMpemLmfhKKJ6RBMwUh jopejoe1_2@joens.email"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3pKtvhOOjG1pGJq7cVHS5uWy5IP8y1Ra/ENpmJcqOe jopejoe1@zap" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIP3pKtvhOOjG1pGJq7cVHS5uWy5IP8y1Ra/ENpmJcqOe jopejoe1@zap"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEcNAVRN66mfKmaCpxs++0094Eh4mqXkUwDPZPkIIBB jopejoe1@joens.email" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFEcNAVRN66mfKmaCpxs++0094Eh4mqXkUwDPZPkIIBB jopejoe1@joens.email"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFZDUoC+1lNR2JTY1Q+vhXpuLmKMdVl2OMFLVbQ3cGkw jopejoe1@kuraokami" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFZDUoC+1lNR2JTY1Q+vhXpuLmKMdVl2OMFLVbQ3cGkw jopejoe1@kuraokami"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKm2igbJ+Ke+dJO3r7wp5ZTreHqC39Sjctca119Bl2yc jopejoe1@zap" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKm2igbJ+Ke+dJO3r7wp5ZTreHqC39Sjctca119Bl2yc jopejoe1@zap"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPHns90pKP8pDOKM7ziCiG7ZjO3kFvScnbq7uBlUWG5H n0th1ng" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPHns90pKP8pDOKM7ziCiG7ZjO3kFvScnbq7uBlUWG5H n0th1ng"
]; ];
packages = with pkgs; [ };
firefox
]; home-manager.users.c3terminal = {
home = {
username = config.users.users.c3terminal.name;
homeDirectory = config.users.users.c3terminal.home;
stateVersion = config.system.stateVersion;
};
programs = {
firefox = {
enable = true;
package = pkgs.firefox-esr;
policies = {
SupportMenu = {
Title = "Config";
URL = "https://git.hamburg.ccc.de/jopejoe1/c3terminal";
};
BlockAboutConfig = true;
Preferences = {
"browser.ssb.enabled" = lock true;
"ui.osk.detected_physical_keyboard" = lock false;
"browser.gesture.pinch.in" = lock false;
"browser.gesture.pinch.out" = lock false;
"zoom.maxPercent" = lock 100;
"zoom.minPercent" = lock 100;
};
};
};
};
}; };
users.users.demo = { users.users.demo = {
isNormalUser = true; isNormalUser = true;
password = "test"; password = "test";
packages = with pkgs; [
firefox
];
}; };
users.users.root = { users.users.root = {
@ -55,9 +82,6 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKm2igbJ+Ke+dJO3r7wp5ZTreHqC39Sjctca119Bl2yc jopejoe1@zap" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKm2igbJ+Ke+dJO3r7wp5ZTreHqC39Sjctca119Bl2yc jopejoe1@zap"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPHns90pKP8pDOKM7ziCiG7ZjO3kFvScnbq7uBlUWG5H n0th1ng" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPHns90pKP8pDOKM7ziCiG7ZjO3kFvScnbq7uBlUWG5H n0th1ng"
]; ];
packages = with pkgs; [
firefox
];
}; };
boot = { boot = {
@ -67,7 +91,6 @@
}; };
efi = { efi = {
canTouchEfiVariables = true; canTouchEfiVariables = true;
#efiSysMountPoint = "/boot";
}; };
}; };
}; };

View file

@ -13,6 +13,10 @@
url = "github:nix-community/disko"; url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = args@{ outputs = args@{
@ -21,6 +25,7 @@
nixos-generators, nixos-generators,
nixos-facter-modules, nixos-facter-modules,
disko, disko,
home-manager,
... ...
}: { }: {
nixosConfigurations.c3terminal = nixpkgs.lib.nixosSystem rec { nixosConfigurations.c3terminal = nixpkgs.lib.nixosSystem rec {
@ -31,6 +36,7 @@
nixos-generators.nixosModules.all-formats nixos-generators.nixosModules.all-formats
nixos-facter-modules.nixosModules.facter nixos-facter-modules.nixosModules.facter
disko.nixosModules.disko disko.nixosModules.disko
home-manager.nixosModules.home-manager
]; ];
}; };
}; };