Codroipo (again)

This commit is contained in:
Andrea Ciceri 2023-01-05 11:35:48 +01:00
parent b9980587cf
commit e90d83f78f
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
11 changed files with 66 additions and 10 deletions

View file

@ -53,3 +53,4 @@
(package! dirvish) (package! dirvish)
(package! git-auto-commit-mode) (package! git-auto-commit-mode)
(package! polymode) (package! polymode)
(package! atomic-chrome)

16
flake.lock generated
View file

@ -590,6 +590,21 @@
"type": "github" "type": "github"
} }
}, },
"nur": {
"locked": {
"lastModified": 1672393622,
"narHash": "sha256-sa12NfBKaXs4o65/p9S/PB4GygzrBVIpWib+VYKfpTw=",
"owner": "nix-community",
"repo": "NUR",
"rev": "1b7d2861b3939da8ef61ea4cd57b12456d32bfd1",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "NUR",
"type": "github"
}
},
"ob-racket": { "ob-racket": {
"flake": false, "flake": false,
"locked": { "locked": {
@ -737,6 +752,7 @@
"nixosHardware": "nixosHardware", "nixosHardware": "nixosHardware",
"nixpkgsStable": "nixpkgsStable", "nixpkgsStable": "nixpkgsStable",
"nixpkgsUnstable": "nixpkgsUnstable", "nixpkgsUnstable": "nixpkgsUnstable",
"nur": "nur",
"preCommitHooks": "preCommitHooks", "preCommitHooks": "preCommitHooks",
"rock5b": "rock5b" "rock5b": "rock5b"
} }

View file

@ -9,6 +9,7 @@
url = "github:nix-community/home-manager"; url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgsUnstable"; inputs.nixpkgs.follows = "nixpkgsUnstable";
}; };
nur.url = "github:nix-community/NUR";
preCommitHooks.url = "github:cachix/pre-commit-hooks.nix"; preCommitHooks.url = "github:cachix/pre-commit-hooks.nix";
agenix.url = "github:ryantm/agenix"; agenix.url = "github:ryantm/agenix";
doomEmacs.url = "github:nix-community/nix-doom-emacs"; doomEmacs.url = "github:nix-community/nix-doom-emacs";

View file

@ -1,11 +1,32 @@
{pkgs, ...}: { {pkgs, ...}: {
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = pkgs.wrapFirefox pkgs.firefox-unwrapped { package =
(pkgs.wrapFirefox pkgs.firefox-unwrapped {
extraPolicies = { extraPolicies = {
ExtensionSettings = {}; ExtensionSettings = {};
}; };
})
.override {
cfg = {
enableTridactylNative = true;
enableBrowserpass = true;
enableFXCastBridge = true;
}; };
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
https-everywhere
privacy-badger
ublock-origin
tridactyl
octotree
octolinker
org-capture
browserpass
bypass-paywalls-clean
ghosttext # or edit-with-emacs?
# fx_cast # TODO make PR to rycee NUR repo
];
profiles.ccr = { profiles.ccr = {
settings = { settings = {
"browser.startup.homepage" = "https://google.it"; "browser.startup.homepage" = "https://google.it";

View file

@ -41,7 +41,7 @@
modifier = modifier; modifier = modifier;
menu = "${pkgs.fuzzel}/bin/fuzzel --background-color=253559cc --border-radius=5 --border-width=0"; menu = "${pkgs.fuzzel}/bin/fuzzel --background-color=253559cc --border-radius=5 --border-width=0";
output = let output = let
bg = "${./wallpaper.png} fill"; bg = "${./wallpaper.svg} fill";
in { in {
DP-1 = { DP-1 = {
pos = "0 0"; pos = "0 0";

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 303 KiB

View file

@ -1,4 +1,15 @@
{ {
xdg.enable = true; xdg = {
xdg.mimeApps.enable = true; enable = true;
mimeApps.enable = true;
desktopEntries = {
org-protocol = {
name = "org-protocol";
genericName = "Org protocol";
exec = "emacsclient -- %u";
terminal = false;
mimeType = ["x-scheme-handler/org-protocol"];
};
};
};
} }

View file

@ -157,8 +157,8 @@
# services.openssh.enable = true; # services.openssh.enable = true;
# Open ports in the firewall. # Open ports in the firewall.
# networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedTCPPorts = [ 5000];
# networking.firewall.allowedUDPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ 5000 ];
# Or disable the firewall altogether. # Or disable the firewall altogether.
# networking.firewall.enable = false; # networking.firewall.enable = false;

View file

@ -6,4 +6,7 @@
}: { }: {
virtualisation.docker.enable = true; virtualisation.docker.enable = true;
users.users.ccr.extraGroups = ["docker"]; users.users.ccr.extraGroups = ["docker"];
environment.systemPackages = with pkgs; [
docker-compose
];
} }

View file

@ -5,6 +5,7 @@
homeManager, homeManager,
nixosHardware, nixosHardware,
nixpkgsUnstable, nixpkgsUnstable,
nur,
preCommitHooks, preCommitHooks,
rock5b, rock5b,
self, self,
@ -42,7 +43,7 @@
value.file = ./.. + "/${name}"; value.file = ./.. + "/${name}";
}) (import ../secrets); }) (import ../secrets);
}; };
nixpkgs.overlays = [agenix.overlay comma.overlays.default]; nixpkgs.overlays = [agenix.overlay comma.overlays.default nur.overlay];
} }
(../hosts + "/${name}") (../hosts + "/${name}")
homeManager.nixosModule homeManager.nixosModule