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 {
|
lib.mkIf osConfig.programs.firefox.enable {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
# Installed by nixpkgs module
|
||||||
|
package = null;
|
||||||
profiles.nico = {
|
profiles.nico = {
|
||||||
name = "Nico";
|
name = "Nico";
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
set-background = pkgs.writers.writeFishBin "set-background" (
|
set-background = pkgs.writers.writeFishBin "set-background" (
|
||||||
builtins.readFile (
|
builtins.readFile (
|
||||||
pkgs.fetchurl {
|
pkgs.fetchurl {
|
||||||
|
@ -28,4 +29,6 @@
|
||||||
);
|
);
|
||||||
|
|
||||||
nixedit = pkgs.writers.writeFishBin "nixedit" "env --chdir ~/.nixconf $EDITOR .";
|
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
|
./ssh
|
||||||
./git
|
./git
|
||||||
./fish
|
./fish
|
||||||
|
./btop.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,11 +3,16 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
addKeysToAgent = "confirm";
|
addKeysToAgent = "confirm";
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"deck" = {
|
deck = {
|
||||||
hostname = "steamdeck";
|
hostname = "steamdeck";
|
||||||
user = "deck";
|
user = "deck";
|
||||||
port = 22;
|
port = 22;
|
||||||
};
|
};
|
||||||
|
dockervm = {
|
||||||
|
hostname = "192.168.178.67";
|
||||||
|
user = "nydragon";
|
||||||
|
port = 22;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
fsType = "btrfs";
|
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
|
# 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
|
# (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.gnome.gnome-keyring.enable = true;
|
||||||
|
|
||||||
services.flatpak.enable = true;
|
services.flatpak.enable = true;
|
||||||
|
|
|
@ -1,9 +1,15 @@
|
||||||
# References:
|
# References:
|
||||||
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265
|
||||||
# https://github.com/gvolpe/nix-config/blob/6feb7e4f47e74a8e3befd2efb423d9232f522ccd/home/programs/browsers/firefox.nix
|
# https://github.com/gvolpe/nix-config/blob/6feb7e4f47e74a8e3befd2efb423d9232f522ccd/home/programs/browsers/firefox.nix
|
||||||
{ lib, config, ... }:
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
lib.mkIf config.programs.firefox.enable {
|
lib.mkIf config.programs.firefox.enable {
|
||||||
programs.firefox = {
|
programs.firefox = {
|
||||||
|
package = pkgs.firefox-bin;
|
||||||
preferencesStatus = "locked";
|
preferencesStatus = "locked";
|
||||||
preferences = {
|
preferences = {
|
||||||
"browser.bookmarks.restore_default_bookmarks" = false;
|
"browser.bookmarks.restore_default_bookmarks" = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue