mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 15:04:59 +08:00
block social media
This commit is contained in:
parent
4548d99a0a
commit
848de7051a
4 changed files with 29 additions and 6 deletions
23
features/block-socialmedia.nix
Normal file
23
features/block-socialmedia.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
networking.extraHosts =
|
||||
''
|
||||
127.0.0.1 reddit.com
|
||||
127.0.0.1 www.reddit.com
|
||||
127.0.0.1 old.reddit.com
|
||||
127.0.0.1 www.old.reddit.com
|
||||
|
||||
127.0.0.1 news.ycombinator.com
|
||||
127.0.0.1 hckrnews.com
|
||||
|
||||
127.0.0.1 lobste.rs
|
||||
127.0.0.1 www.lobste.rs
|
||||
|
||||
127.0.0.1 twitter.com
|
||||
127.0.0.1 www.twitter.com
|
||||
|
||||
127.0.0.1 facebook.com
|
||||
127.0.0.1 www.facebook.com
|
||||
'';
|
||||
}
|
||||
8
flake.lock
generated
8
flake.lock
generated
|
|
@ -167,17 +167,17 @@
|
|||
},
|
||||
"nixpkgs_4": {
|
||||
"locked": {
|
||||
"lastModified": 1618343055,
|
||||
"narHash": "sha256-yux3woyNtMt6ynYRq7+DYe19CC+SoI/LJW+zSJd0UOs=",
|
||||
"lastModified": 1618447066,
|
||||
"narHash": "sha256-2f9ydxgdW2igSIe1vmV8buTEpAVQPVhV+OxvlFRTA+Y=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e019872af81e4013fd518fcacfba74b1de21a50e",
|
||||
"rev": "dcdf30a78a523296b5f9d44fb67afac485b64737",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "e019872af81e4013fd518fcacfba74b1de21a50e",
|
||||
"rev": "dcdf30a78a523296b5f9d44fb67afac485b64737",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
# https://status.nixos.org/
|
||||
#
|
||||
# This ensures that we always use the official # cache.
|
||||
nixpkgs.url = "github:nixos/nixpkgs/e019872af81e4013fd518fcacfba74b1de21a50e";
|
||||
nixpkgs.url = "github:nixos/nixpkgs/dcdf30a78a523296b5f9d44fb67afac485b64737";
|
||||
|
||||
nixos-hardware.url = github:NixOS/nixos-hardware/master;
|
||||
home-manager.url = "github:nix-community/home-manager";
|
||||
|
|
@ -62,6 +62,7 @@
|
|||
./hosts/x1c7.nix
|
||||
[
|
||||
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-x1-7th-gen
|
||||
./features/block-socialmedia.nix
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
1
home.nix
1
home.nix
|
|
@ -19,7 +19,6 @@ in
|
|||
tig
|
||||
gh
|
||||
procs # no more: ps -ef | grep
|
||||
ytop
|
||||
tealdeer
|
||||
# ^ easy to forget these; write SRS?
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue