Skip to content

Commit

Permalink
Merge branch 'master' of github.com:pniedzwiedzinski/dots
Browse files Browse the repository at this point in the history
  • Loading branch information
pniedzwiedzinski committed Oct 30, 2024
2 parents a15e92f + cd22698 commit b813c1f
Show file tree
Hide file tree
Showing 7 changed files with 178 additions and 20 deletions.
145 changes: 131 additions & 14 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
disko.url = "github:nix-community/disko";
disko.inputs.nixpkgs.follows = "nixpkgs";
impermanence.url = "github:nix-community/impermanence";
agenix.url = "github:ryantm/agenix";
nix-ld.url = "github:Mic92/nix-ld";
nix-ld.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, ... }@inputs:
Expand Down Expand Up @@ -54,6 +57,8 @@
inputs.nixos-hardware.nixosModules.lenovo-thinkpad-t14-amd-gen2
inputs.home-manager.nixosModules.default
inputs.nix-index-database.nixosModules.nix-index
inputs.agenix.nixosModules.default
inputs.nix-ld.nixosModules.nix-ld
{
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
Expand Down
15 changes: 11 additions & 4 deletions home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,17 @@ in
home.username = "pn";
home.homeDirectory = "/home/pn";

programs.chromium.enable = true;
programs.chromium.extensions = [
{ id = "fjcldmjmjhkklehbacihaiopjklihlgg"; }
];
programs.brave = {
enable = false;
package = pkgs.brave.overrideAttrs (oldAttrs: {
commandLineArgs = [
"--profile-directory=${config.home.homeDirectory}/.config/BraveSoftware/Brave-Browser/Default"
];
});
extensions = [
{ id = "fjcldmjmjhkklehbacihaiopjklihlgg"; }
];
};

xdg.userDirs = {
enable = true;
Expand Down
2 changes: 1 addition & 1 deletion machines/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
environment.systemPackages = with pkgs; [
wget vim curl htop file
stdenv git zip unzip
dnsutils ripgrep jq
dnsutils ripgrep
any-nix-shell fd fzf
translate-shell
];
Expand Down
12 changes: 12 additions & 0 deletions machines/t14/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
../x220-gnome/pass.nix
./hardware-configuration.nix
../x220-gnome/pn.nix
../../modules/appset-dev.nix
];

# Enable networking
Expand Down Expand Up @@ -53,6 +54,11 @@
# enableSSHSupport = true;
# };

services.locate = {
enable = true;
package = pkgs.plocate;
};

services.printing.drivers = with pkgs; [ cnijfilter2 ];
services.printing.logLevel = "debug";
services.avahi.enable = true;
Expand All @@ -62,6 +68,12 @@
services.udev.packages = [ pkgs.sane-airscan ];
hardware.sane.disabledDefaultBackends = [ "escl" ];

programs.nix-ld.dev = {
enable = true;
libraries = [
pkgs.libgcc.lib
];
};

programs.appimage = {
enable = true;
Expand Down
10 changes: 10 additions & 0 deletions modules/appset-dev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
vscode
vim
jq
python3
nodejs
];
}
9 changes: 8 additions & 1 deletion modules/gnome.nix
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,14 @@ in
gnome.gnome-boxes
gnome.file-roller
gnomeExtensions.hibernate-status-button
brave
#brave #specified in home.nix
(pkgs.brave.overrideAttrs (oldAttrs: {
installPhase = oldAttrs.installPhase + ''
substituteInPlace $out/share/applications/brave-browser.desktop \
--replace %U "--profile-directory=Default %U"
'';
}))

newsflash
spotify
fragments
Expand Down

0 comments on commit b813c1f

Please sign in to comment.