DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Idle settings wrong

Open yebei199 opened this issue 1 year ago • 4 comments

Compositor

  • [x] niri
  • [ ] Hyprland
  • [ ] other

Distribution

OS: NixOS 25.11 (Xantusia) x86_64

dms version

qs --version quickshell 0.2.1, revision tag-v0.2.1, distributed by: Nixpkgs

Description

Idle settings wrong, I have the latest version qs , but it still ask me install newer qs

Solutions Tried

# flake.nix

 {
  description = "My NixOS configuration";

  inputs = {

    nixpkgs.url = "https://mirrors.ustc.edu.cn/nix-channels/nixos-unstable/nixexprs.tar.xz";
    #    nixpkgs.url = "github:NixOS/nixpkgs";

    chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; # IMPORTANT
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    niri = {
      url = "github:sodiboo/niri-flake";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    noctalia = {
      url = "github:noctalia-dev/noctalia-shell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell"; # Use same quickshell version
    };

    quickshell = {
      #      url = "git+https://git.outfoxxed.me/outfoxxed/quickshell?ref=master&rev=3e2ce40b18af943f9ba370ed73565e9f487663ef";
      url = "github:outfoxxed/quickshell";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    dgop = {
      url = "github:AvengeMedia/dgop";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dms-cli = {
      url = "github:AvengeMedia/danklinux";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dankMaterialShell = {
      url = "github:AvengeMedia/DankMaterialShell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell"; # Use same quickshell version
      inputs.dgop.follows = "dgop";
      inputs.dms-cli.follows = "dms-cli";
    };

    vicinae = {
      url = "github:vicinaehq/vicinae"; # tell Nixos where to get Vicinae
      inputs.nixpkgs.follows = "nixpkgs";
    };

  };

  outputs =
    inputs@{
      self,
      vicinae,
      nixpkgs,
      chaotic,
      quickshell,
      home-manager,
      dankMaterialShell,
      niri,
      ...
    }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs {
        inherit system;
        overlays = [
          (final: prev: {
            quickshell = quickshell.packages.${system}.quickshell;
          })
        ];
      };
      lib = pkgs.lib;
    in

    {
      nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
        system = system;
        specialArgs = { inherit inputs; }; # 显式传入
        modules = [
          ./configuration.nix
          ./noctalia.nix
          chaotic.nixosModules.default # IMPORTANT
          {
            environment.systemPackages = [
              pkgs.quickshell
            ];
          }
          home-manager.nixosModules.home-manager
          {
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.backupFileExtension = "backup";
            home-manager.extraSpecialArgs = {
              inherit
                dankMaterialShell
                niri
                quickshell
                ;
              vicinaeModule = vicinae.homeManagerModules.default;
            };
            home-manager.users.yb = import ./home.nix;

          }
        ];
      };

    };
}

# home.nix

{
  config,
  pkgs,
  lib,
  vicinaeModule,
  dankMaterialShell,
  niri,
  ...
}:

{
  home.username = "yb";
  home.homeDirectory = "/home/yb";
  home.stateVersion = "25.11";

  imports = [
    dankMaterialShell.homeModules.dankMaterialShell.default
    dankMaterialShell.homeModules.dankMaterialShell.niri
    niri.homeModules.niri
    vicinaeModule
  ];
  programs.dankMaterialShell.enable = true;

  home.activation.postActivation = ''
    if [ ! -f "$HOME/.ssh/id_ed25519" ]; then
      echo "Generating SSH key for user $USER..."
      mkdir -p "$HOME/.ssh"
      chmod 700 "$HOME/.ssh"
      ${pkgs.openssh}/bin/ssh-keygen -t ed25519 -f "$HOME/.ssh/id_ed25519" -N "" -C "$USER@$( ${pkgs.hostname}/bin/hostname )"
    fi
  '';

  #programs.niri.enable = true;

  home.packages = with pkgs; [
    fcitx5-configtool
    #    quickshell
    libinput
    openssh
    hostname
    rustscan
    fastfetch
    bottom
    qq
    atuin
    starship
    zoxide
    bat
    jetbrains.rust-rover
    jetbrains.webstorm
    telegram-desktop_git
    netease-cloud-music-gtk
    gnome-keyring
    vscode
    nixfmt-rfc-style

  ];
  services.vicinae = {
    enable = true;
    autoStart = true;
    settings = {
      faviconService = "twenty";
      font.size = 11;
      popToRootOnClose = false;
      rootSearch.searchFiles = false;
      theme.name = "vicinae-dark";
      window = {
        csd = true;
        opacity = 0.95;
        rounding = 10;
      };
    };

  };
}

Configuration Details

Screenshots/Recordings

Image

yebei199 avatar Oct 19 '25 02:10 yebei199

0.2.1 doesn't have it, it's in the unreleased version/latest git.

bbedward avatar Oct 19 '25 02:10 bbedward

0.2.1 doesn't have it, it's in the unreleased version/latest git.

I try to use git version but not useful

# flake.nix
{
  description = "My NixOS configuration";

  inputs = {

    #    nixpkgs.url = "https://mirrors.ustc.edu.cn/nix-channels/nixos-unstable/nixexprs.tar.xz";
    #    nixpkgs.url = "github:NixOS/nixpkgs";
    nixpkgs.url = "nixpkgs/nixos-unstable";

    chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; # IMPORTANT
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    niri = {
      url = "github:sodiboo/niri-flake";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    #    quickshell = {
    #      url = "git+https://git.outfoxxed.me/outfoxxed/quickshell?ref=master&rev=3e2ce40b18af943f9ba370ed73565e9f487663ef";
    #      #      url = "github:outfoxxed/quickshell";
    #      inputs.nixpkgs.follows = "nixpkgs";
    #    };

    quickshell-src = {
      url = "git+https://git.outfoxxed.me/quickshell/quickshell?ref=master";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    noctalia = {
      url = "github:noctalia-dev/noctalia-shell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell-src";
    };

    dgop = {
      url = "github:AvengeMedia/dgop";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dms-cli = {
      url = "github:AvengeMedia/danklinux";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    dankMaterialShell = {
      url = "github:AvengeMedia/DankMaterialShell";
      inputs.nixpkgs.follows = "nixpkgs";
      inputs.quickshell.follows = "quickshell-src";
      inputs.dgop.follows = "dgop";
      inputs.dms-cli.follows = "dms-cli";
    };

    vicinae = {
      url = "github:vicinaehq/vicinae"; # tell Nixos where to get Vicinae
      inputs.nixpkgs.follows = "nixpkgs";
    };

  };

  outputs =
    inputs@{
      self,
      vicinae,
      nixpkgs,
      chaotic,
      quickshell-src,
      home-manager,
      dankMaterialShell,
      niri,
      ...
    }:
    let
      system = "x86_64-linux";
      pkgs = import nixpkgs {
        inherit system;
        overlays = [
          (final: prev: {
            quickshell = prev.quickshell.overrideAttrs (old: {
              version = "unstable-${quickshell-src.rev}";
              src = quickshell-src;
            });
          })
        ];
      };
      lib = pkgs.lib;
    in

    {
      packages.${system}.quickshell = pkgs.quickshell;

      nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
        system = system;
        specialArgs = { inherit inputs; }; # 显式传入
        modules = [
          ./configuration.nix
          #          ./noctalia.nix
          chaotic.nixosModules.default # IMPORTANT
          {
            environment.systemPackages = [
              pkgs.quickshell
            ];
          }
          home-manager.nixosModules.home-manager
          {
            home-manager.useGlobalPkgs = true;
            home-manager.useUserPackages = true;
            home-manager.backupFileExtension = "backup";
            home-manager.extraSpecialArgs = {
              inherit
                dankMaterialShell
                niri
                ;
              vicinaeModule = vicinae.homeManagerModules.default;
            };
            home-manager.users.yb = import ./home.nix;

          }
        ];
      };

    };
}

yebei199 avatar Oct 19 '25 05:10 yebei199

To reference a package like this: xxx.packages.${pkgs.system}.default, for quickshell it would be inputs.quickshell.packages.${pkgs.system}.default.

bokicoder avatar Oct 19 '25 17:10 bokicoder

To reference a package like this: xxx.packages.${pkgs.system}.default, for quickshell it would be inputs.quickshell.packages.${pkgs.system}.default.

Sorry, Could you please provide the full solution so I can understand it completely?I'm new to NixOS and still learning how to use it. I set it up here, but dms still asks for newer

questions/versions:modules = [
  ./configuration.nix
  # ./noctalia.nix
  chaotic.nixosModules.default # IMPORTANT
  {
    environment.systemPackages = [
      inputs.quickshell.packages.${pkgs.system}.default
    ];
  }
];

yebei199 avatar Oct 20 '25 02:10 yebei199