This commit is contained in:
Steph 2024-12-10 15:03:39 +01:00
parent bdc6978952
commit 8d8bb26d7f
4 changed files with 17 additions and 4 deletions

View File

@ -13,10 +13,16 @@
config = { config = {
home.stateVersion = "22.05"; home.stateVersion = "22.05";
programs.home-manager.enable = true; programs.home-manager.enable = true;
programs.direnv = {
enable = true;
enableBashIntegration = true; # see note on other shells below
nix-direnv.enable = true;
};
nixpkgs = { nixpkgs = {
config.allowUnfree = true; config.allowUnfree = true;
overlays = [ inputs.nur.overlay ]; overlays = [ inputs.nur.overlays.default ];
}; };
fonts.fontconfig.enable = true; fonts.fontconfig.enable = true;

View File

@ -61,7 +61,7 @@
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
}; };
hardware.opengl = { hardware.graphics = {
enable = true; enable = true;
extraPackages = with pkgs; [ extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD intel-media-driver # LIBVA_DRIVER_NAME=iHD

View File

@ -33,6 +33,7 @@
zotero zotero
signal-desktop signal-desktop
freetube freetube
inputs.nixpkgs-2405.legacyPackages.${system}.cura
]; ];
dconf.settings = { dconf.settings = {

View File

@ -46,13 +46,19 @@
tolower = "tr [:upper:] [:lower:]"; tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then '' rebuild = if (os == "linux") then ''
cd $HOME/.local/os && cd $HOME/.local/os &&
nix flake update --commit-lock-file nix flake update --commit-lock-file &&
nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo && nixos-rebuild switch --flake "path:$HOME/.local/os#" --use-remote-sudo &&
git add . &&
git commit -m "update" &&
git push &&
cd - cd -
'' else '' '' else ''
cd $HOME/.local/os && cd $HOME/.local/os &&
nix flake update --commit-lock-file nix flake update --commit-lock-file &&
home-manager switch && home-manager switch &&
git add . &&
git commit -m "update" &&
git push &&
cd - cd -
''; '';
":r" = "!!"; ":r" = "!!";