Consolidate firefox to be owned by HM
Move Nix settings to system-level only Dedupe user packages
This commit is contained in:
parent
5686a17acb
commit
e71a510163
|
|
@ -3,10 +3,12 @@
|
|||
lib,
|
||||
pkgs,
|
||||
profile,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let gpgCfg = config.modules.gpg;
|
||||
let
|
||||
gpgCfg = config.modules.gpg;
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
|
|
@ -19,8 +21,8 @@ in
|
|||
modules.shell.defaultShell = "zsh";
|
||||
|
||||
home = {
|
||||
username = "josh";
|
||||
homeDirectory = "/home/josh";
|
||||
inherit username;
|
||||
homeDirectory = "/home/${username}";
|
||||
stateVersion = "25.11";
|
||||
|
||||
packages = with pkgs; [
|
||||
|
|
@ -50,24 +52,4 @@ in
|
|||
|
||||
# Let Home Manager install and manage itself
|
||||
programs.home-manager.enable = true;
|
||||
|
||||
nix = {
|
||||
package = mkDefault pkgs.nix;
|
||||
settings = {
|
||||
allowed-users = [ "josh" ];
|
||||
trusted-users = [ "root" "@wheel" "josh" ];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
extra-substituters = [
|
||||
"https://walker.cachix.org"
|
||||
"https://walker-git.cachix.org"
|
||||
];
|
||||
extra-trusted-public-keys = [
|
||||
"walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM="
|
||||
"walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM="
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@
|
|||
{
|
||||
imports = [
|
||||
./boot.nix
|
||||
./firefox.nix
|
||||
./fonts.nix
|
||||
./gdm.nix
|
||||
./gnomeBoxes.nix
|
||||
|
|
|
|||
|
|
@ -1,22 +0,0 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
pipewireCfg = config.modules.pipewire;
|
||||
in
|
||||
{
|
||||
# Add wayland screensharing support if PipeWire is enabled
|
||||
environment.systemPackages =
|
||||
with pkgs;
|
||||
[ ]
|
||||
++ (
|
||||
if pipewireCfg.enable then
|
||||
[ (wrapFirefox (firefox-unwrapped.override { pipewireSupport = true; }) { }) ]
|
||||
else
|
||||
[ firefox ]
|
||||
);
|
||||
}
|
||||
|
|
@ -1,18 +1,5 @@
|
|||
{
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
{
|
||||
programs = {
|
||||
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
git
|
||||
home-manager
|
||||
tldr
|
||||
tmux
|
||||
vim-full
|
||||
wl-clipboard
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -8,10 +9,23 @@ in
|
|||
{
|
||||
nix = {
|
||||
settings = {
|
||||
allowed-users = [ username ];
|
||||
trusted-users = [
|
||||
"@wheel"
|
||||
username
|
||||
];
|
||||
experimental-features = [
|
||||
"nix-command"
|
||||
"flakes"
|
||||
];
|
||||
extra-substituters = [
|
||||
"https://walker.cachix.org"
|
||||
"https://walker-git.cachix.org"
|
||||
];
|
||||
extra-trusted-public-keys = [
|
||||
"walker.cachix.org-1:fG8q+uAaMqhsMxWjwvk0IMb4mFPFLqHjuvfwQxE4oJM="
|
||||
"walker-git.cachix.org-1:vmC0ocfPWh0S/vRAQGtChuiZBTAe4wiKDeyyXM0/7pM="
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue