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 = {
home.stateVersion = "22.05";
programs.home-manager.enable = true;
programs.direnv = {
enable = true;
enableBashIntegration = true; # see note on other shells below
nix-direnv.enable = true;
};
nixpkgs = {
config.allowUnfree = true;
overlays = [ inputs.nur.overlay ];
overlays = [ inputs.nur.overlays.default ];
};
fonts.fontconfig.enable = true;

View File

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

View File

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

View File

@ -46,13 +46,19 @@
tolower = "tr [:upper:] [:lower:]";
rebuild = if (os == "linux") then ''
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 &&
git add . &&
git commit -m "update" &&
git push &&
cd -
'' else ''
cd $HOME/.local/os &&
nix flake update --commit-lock-file
nix flake update --commit-lock-file &&
home-manager switch &&
git add . &&
git commit -m "update" &&
git push &&
cd -
'';
":r" = "!!";