misc: various additions including a firefox fix

This commit is contained in:
Nydragon 2024-08-08 13:28:33 +02:00
parent 300c34bdf1
commit 4b8ce88a8a
Signed by: nydragon
SSH key fingerprint: SHA256:iQnIC12spf4QjWSbarmkD2No1cLMlu6TWoV7K6cYF5g
8 changed files with 25 additions and 14 deletions

View file

@ -7,6 +7,8 @@
lib.mkIf osConfig.programs.firefox.enable {
programs.firefox = {
enable = true;
# Installed by nixpkgs module
package = null;
profiles.nico = {
name = "Nico";
isDefault = true;

View file

@ -18,6 +18,7 @@
fi
'';
};
set-background = pkgs.writers.writeFishBin "set-background" (
builtins.readFile (
pkgs.fetchurl {
@ -28,4 +29,6 @@
);
nixedit = pkgs.writers.writeFishBin "nixedit" "env --chdir ~/.nixconf $EDITOR .";
getext = pkgs.writeScriptBin "ls | grep -E \"\.[a-zA-Z0-9]+$\" --only-matching | sort | uniq";
}

5
home/terminal/btop.nix Normal file
View file

@ -0,0 +1,5 @@
{
programs.btop = {
enable = true;
};
}

View file

@ -4,5 +4,6 @@
./ssh
./git
./fish
./btop.nix
];
}

View file

@ -3,11 +3,16 @@
enable = true;
addKeysToAgent = "confirm";
matchBlocks = {
"deck" = {
deck = {
hostname = "steamdeck";
user = "deck";
port = 22;
};
dockervm = {
hostname = "192.168.178.67";
user = "nydragon";
port = 22;
};
};
};
}

View file

@ -43,7 +43,7 @@
fsType = "btrfs";
};
swapDevices = [ { device = "/dev/disk/by-uuid/fb751a3f-929b-4b33-baba-d65a9caaaa59"; } ];
swapDevices = [ { device = "/dev/disk/by-uuid/2f655287-02bd-4bd7-b16c-3bdb882536e0"; } ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's

View file

@ -137,17 +137,6 @@
};
};
services.greetd = {
enable = true;
settings = rec {
initial_session = {
command = "${pkgs.greetd.greetd}/bin/agreety --cmd ${pkgs.sway}/bin/sway";
user = "${username}";
};
default_session = initial_session;
};
};
services.gnome.gnome-keyring.enable = true;
services.flatpak.enable = true;

View file

@ -1,9 +1,15 @@
# References:
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
# https://github.com/gvolpe/nix-config/blob/6feb7e4f47e74a8e3befd2efb423d9232f522ccd/home/programs/browsers/firefox.nix
{ lib, config, ... }:
{
pkgs,
lib,
config,
...
}:
lib.mkIf config.programs.firefox.enable {
programs.firefox = {
package = pkgs.firefox-bin;
preferencesStatus = "locked";
preferences = {
"browser.bookmarks.restore_default_bookmarks" = false;