-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,166 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ pkgs, ... }: | ||
|
||
{ | ||
imports = [ | ||
./hardware-configuration.nix | ||
]; | ||
|
||
networking.hostName = "portatilo"; | ||
|
||
hardware.opengl = { | ||
enable = true; | ||
extraPackages = with pkgs; [ | ||
intel-media-driver | ||
]; | ||
}; | ||
|
||
services.xserver.displayManager.autoLogin = { | ||
enable = true; | ||
user = "billy"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Do not modify this file! It was generated by ‘nixos-generate-config’ | ||
# and may be overwritten by future invocations. Please make changes | ||
# to /etc/nixos/configuration.nix instead. | ||
{ config, lib, pkgs, modulesPath, ... }: | ||
|
||
{ | ||
imports = | ||
[ | ||
(modulesPath + "/installer/scan/not-detected.nix") | ||
]; | ||
|
||
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" ]; | ||
boot.initrd.kernelModules = [ ]; | ||
boot.kernelModules = [ "kvm-intel" ]; | ||
boot.extraModulePackages = [ ]; | ||
|
||
fileSystems."/" = | ||
{ | ||
device = "/dev/disk/by-uuid/3200a97f-37c7-4b82-bcfb-76a04d0997cb"; | ||
fsType = "ext4"; | ||
}; | ||
|
||
boot.initrd.luks.devices."luks-58babcf8-8b63-41ad-a052-5ba95810a8a4".device = "/dev/disk/by-uuid/58babcf8-8b63-41ad-a052-5ba95810a8a4"; | ||
|
||
fileSystems."/boot" = | ||
{ | ||
device = "/dev/disk/by-uuid/0247-0569"; | ||
fsType = "vfat"; | ||
}; | ||
|
||
swapDevices = [ ]; | ||
|
||
# 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 | ||
# still possible to use this option, but it's recommended to use it in conjunction | ||
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`. | ||
networking.useDHCP = lib.mkDefault true; | ||
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true; | ||
|
||
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; | ||
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ ... }: | ||
{ | ||
imports = [ ./firefox-based ]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ ... }@args: | ||
let | ||
aboutConfig = { | ||
# Lets be honest, this is more annoying than useful | ||
"webgl.disabled" = false; | ||
"privacy.resistFingerprinting" = false; | ||
"extensions.pocket.enabled" = false; | ||
|
||
# Keep history | ||
"privacy.clearOnShutdown.history" = false; | ||
"privacy.clearOnShutdown.downloads" = false; | ||
|
||
# Firefox Sync | ||
"identity.fxaccounts.enabled" = true; | ||
|
||
# Autoscroll | ||
"middlemouse.paste" = false; | ||
"general.autoScroll" = true; | ||
|
||
# Search engine | ||
"browser.search.separatePrivateDefault" = false; | ||
"browser.search.suggest.enabled" = true; | ||
"browser.urlbar.suggest.searches" = true; | ||
|
||
"browser.aboutConfig.showWarning" = false; | ||
"browser.bookmarks.addedImportButton" = true; | ||
"browser.topsites.contile.cachedTiles" = ""; | ||
"browser.uiCustomization.state" = builtins.readFile ./ui-state.json; | ||
}; | ||
in | ||
{ | ||
imports = [ | ||
(import ./firefox.nix (args // { inherit aboutConfig; })) | ||
# (import ./librewolf.nix (args // {inherit aboutConfig;})) | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ aboutConfig, user, ... }: | ||
{ | ||
programs.firefox = { | ||
enable = true; | ||
profiles.${user.username} = { | ||
id = 0; | ||
search = { | ||
default = "Brave Search"; | ||
engines = { | ||
"Brave Search" = { | ||
urls = [{ template = "https://search.brave.com/search?q={searchTerms}"; }]; | ||
iconUpdateURL = "https://brave.com/static-assets/images/brave-logo-sans-text.svg"; | ||
updateInterval = 24 * 60 * 60 * 1000; # every day | ||
}; | ||
}; | ||
force = true; | ||
}; | ||
settings = aboutConfig; | ||
}; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ aboutConfig, ... }: | ||
|
||
{ | ||
programs.librewolf = { | ||
enable = true; | ||
|
||
# https://librewolf.net/docs/settings | ||
settings = aboutConfig; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"placements": { | ||
"widget-overflow-fixed-list": [], | ||
"unified-extensions-area": [ | ||
"sponsorblocker_ajay_app-browser-action", | ||
"_cb31ec5d-c49a-4e5a-b240-16c767444f62_-browser-action", | ||
"_aecec67f-0d10-4fa7-b7c7-609a2db280cf_-browser-action", | ||
"_a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7_-browser-action", | ||
"idcac-pub_guus_ninja-browser-action", | ||
"_e7625f06-e252-479d-ac7a-db68aeaff2cb_-browser-action", | ||
"addon_fastforward_team-browser-action", | ||
"canvasblocker_kkapsner_de-browser-action", | ||
"firefoxcolor_mozilla_com-browser-action", | ||
"tab-session-manager_sienori-browser-action", | ||
"savepage-we_dw-dev-browser-action", | ||
"_74145f27-f039-47ce-a470-a662b129930a_-browser-action", | ||
"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action", | ||
"gdpr_cavi_au_dk-browser-action", | ||
"jid1-y3wfe7td45awdw_jetpack-browser-action", | ||
"_278b0ae0-da9d-4cc6-be81-5aa7f3202672_-browser-action" | ||
], | ||
"nav-bar": [ | ||
"back-button", | ||
"forward-button", | ||
"stop-reload-button", | ||
"urlbar-container", | ||
"save-to-pocket-button", | ||
"downloads-button", | ||
"unified-extensions-button", | ||
"ublock0_raymondhill_net-browser-action", | ||
"addon_darkreader_org-browser-action", | ||
"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action" | ||
], | ||
"toolbar-menubar": ["menubar-items"], | ||
"TabsToolbar": ["tabbrowser-tabs", "new-tab-button", "alltabs-button"], | ||
"PersonalToolbar": ["personal-bookmarks"] | ||
}, | ||
"seen": [ | ||
"developer-button", | ||
"_cb31ec5d-c49a-4e5a-b240-16c767444f62_-browser-action", | ||
"_aecec67f-0d10-4fa7-b7c7-609a2db280cf_-browser-action", | ||
"_a6c4a591-f1b2-4f03-b3ff-767e5bedf4e7_-browser-action", | ||
"addon_darkreader_org-browser-action", | ||
"idcac-pub_guus_ninja-browser-action", | ||
"ublock0_raymondhill_net-browser-action", | ||
"_446900e4-71c2-419f-a6a7-df9c091e268b_-browser-action", | ||
"_e7625f06-e252-479d-ac7a-db68aeaff2cb_-browser-action", | ||
"addon_fastforward_team-browser-action", | ||
"canvasblocker_kkapsner_de-browser-action", | ||
"firefoxcolor_mozilla_com-browser-action", | ||
"tab-session-manager_sienori-browser-action", | ||
"savepage-we_dw-dev-browser-action", | ||
"_74145f27-f039-47ce-a470-a662b129930a_-browser-action", | ||
"_7a7a4a92-a2a0-41d1-9fd7-1e92480d612d_-browser-action", | ||
"sponsorblocker_ajay_app-browser-action", | ||
"gdpr_cavi_au_dk-browser-action", | ||
"jid1-y3wfe7td45awdw_jetpack-browser-action", | ||
"_278b0ae0-da9d-4cc6-be81-5aa7f3202672_-browser-action" | ||
], | ||
"dirtyAreaCache": [ | ||
"nav-bar", | ||
"PersonalToolbar", | ||
"unified-extensions-area", | ||
"TabsToolbar" | ||
], | ||
"currentVersion": 20, | ||
"newElementCount": 4 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.