Merge pull request #137 from ryan4yin/update

Update dependencies
This commit is contained in:
Ryan Yin
2024-07-20 12:14:05 +08:00
committed by GitHub
10 changed files with 194 additions and 467 deletions

607
flake.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,13 +17,11 @@
# substituers will be appended to the default substituters when fetching packages
extra-substituters = [
"https://anyrun.cachix.org"
"https://hyprland.cachix.org"
"https://nix-gaming.cachix.org"
# "https://nixpkgs-wayland.cachix.org"
];
extra-trusted-public-keys = [
"anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s="
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
# "nixpkgs-wayland.cachix.org-1:3lwxaILxMRkVhehr5StQprHdEo4IrE8sRho9R9HOLYA="
];
@@ -36,9 +34,9 @@
# which represents the GitHub repository URL + branch/commit-id/tag.
# Official NixOS package source, using nixos's unstable branch by default
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixos-unstable-small";
# nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.05";
# for macos
nixpkgs-darwin.url = "github:nixos/nixpkgs/nixpkgs-24.05-darwin";
@@ -50,8 +48,8 @@
# home-manager, used for managing user configuration
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
# url = "github:nix-community/home-manager/master";
url = "github:nix-community/home-manager/master";
# url = "github:nix-community/home-manager/release-24.05";
# The `follows` keyword in inputs is used for inheritance.
# Here, `inputs.nixpkgs` of home-manager is kept consistent with the `inputs.nixpkgs` of the current flake,
@@ -60,17 +58,12 @@
};
lanzaboote = {
url = "github:nix-community/lanzaboote/v0.3.0";
url = "github:nix-community/lanzaboote/v0.4.1";
inputs.nixpkgs.follows = "nixpkgs";
};
impermanence.url = "github:nix-community/impermanence";
hyprland = {
url = "github:hyprwm/Hyprland/v0.39.1";
inputs.nixpkgs.follows = "nixpkgs";
};
# community wayland nixpkgs
# nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";
# anyrun - a wayland launcher

View File

@@ -27,7 +27,6 @@ return {
"kdl",
"csv",
"xml",
"vhdl",
---- Misc
"diff",

View File

@@ -62,7 +62,7 @@
lldb
#-- python
nodePackages.pyright # python language server
pyright # python language server
(python311.withPackages (
ps:
with ps; [

View File

@@ -1,5 +1,5 @@
{pkgs, ...}: {
home.packages = with pkgs; [
{pkgs-stable, ...}: {
home.packages = with pkgs-stable; [
# https://joplinapp.org/help/
joplin # joplin-cli
joplin-desktop

View File

@@ -1,5 +1,9 @@
#!/usr/bin/env bash
## Fix anyrun
## https://github.com/anyrun-org/anyrun/issues/153
ln -s $XDG_RUNTIME_DIR/hypr /tmp/hypr
## Autostart Programs
# Kill already running process

View File

@@ -1,11 +1,10 @@
{
pkgs,
lib,
hyprland,
nur-ryan4yin,
...
}: let
package = hyprland.packages.${pkgs.system}.hyprland;
package = pkgs.hyprland;
in {
# NOTE:
# We have to enable hyprland/i3's systemd user service in home-manager,
@@ -30,7 +29,10 @@ in {
};
extraConfig = builtins.readFile ../conf/hyprland.conf;
# gammastep/wallpaper-switcher need this to be enabled.
systemd.enable = true;
systemd = {
enable = true;
variables = ["--all"];
};
};
# NOTE: this executable is used by greetd to start a wayland session when system boot up

View File

@@ -41,12 +41,10 @@ in {
};
virtualisation.docker.enableNvidia = true; # for nvidia-docker
hardware.opengl = {
hardware.graphics = {
enable = true;
# if hardware.opengl.driSupport is enabled, mesa is installed and provides Vulkan for supported hardware.
driSupport = true;
# needed by nvidia-docker
driSupport32Bit = true;
enable32Bit = true;
};
# This value determines the NixOS release from which the default

View File

@@ -24,8 +24,6 @@
};
# rtkit is optional but recommended
security.rtkit.enable = true;
# Remove sound.enable or turn it off if you had it set previously, it seems to cause conflicts with pipewire
sound.enable = false;
# Disable pulseaudio, it conflicts with pipewire too.
hardware.pulseaudio.enable = false;

View File

@@ -21,11 +21,11 @@
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
# pkgs-stable = import inputs.nixpkgs-stable {
# inherit system;
# # To use chrome, we need to allow the installation of non-free software
# config.allowUnfree = true;
# };
pkgs-stable = import inputs.nixpkgs-stable {
inherit system;
# To use chrome, we need to allow the installation of non-free software
config.allowUnfree = true;
};
};
# This is the args for all the haumea modules in this folder.