misc: various additions including a firefox fix
This commit is contained in:
parent
300c34bdf1
commit
4b8ce88a8a
8 changed files with 25 additions and 14 deletions
|
@ -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;
|
||||
|
|
|
@ -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
5
home/terminal/btop.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
programs.btop = {
|
||||
enable = true;
|
||||
};
|
||||
}
|
|
@ -4,5 +4,6 @@
|
|||
./ssh
|
||||
./git
|
||||
./fish
|
||||
./btop.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue